@@ -148,7 +148,7 @@ impl ToAttrTokenStream for LazyAttrTokenStreamImpl {
148
148
for ( range, attr_data) in replace_ranges. into_iter ( ) . rev ( ) {
149
149
assert ! ( !range. is_empty( ) , "Cannot replace an empty range: {range:?}" ) ;
150
150
151
- // Replace the tokens in range with zero or one `FlatToken::AttrTarget `s, plus
151
+ // Replace the tokens in range with zero or one `FlatToken::Attribute `s, plus
152
152
// enough `FlatToken::Empty`s to fill up the rest of the range. This keeps the
153
153
// total length of `tokens` constant throughout the replacement process, allowing
154
154
// us to use all of the `ReplaceRanges` entries without adjusting indices.
@@ -157,7 +157,7 @@ impl ToAttrTokenStream for LazyAttrTokenStreamImpl {
157
157
( range. start as usize ) ..( range. end as usize ) ,
158
158
attr_data
159
159
. into_iter ( )
160
- . map ( |attr_data| ( FlatToken :: AttrTarget ( attr_data) , Spacing :: Alone ) )
160
+ . map ( |attr_data| ( FlatToken :: Attributes ( attr_data) , Spacing :: Alone ) )
161
161
. chain (
162
162
iter:: repeat ( ( FlatToken :: Empty , Spacing :: Alone ) )
163
163
. take ( range. len ( ) - attr_data_len) ,
@@ -414,7 +414,7 @@ fn make_attr_token_stream(
414
414
. expect ( "Bottom token frame is missing!" )
415
415
. inner
416
416
. push ( AttrTokenTree :: Token ( token, spacing) ) ,
417
- FlatToken :: AttrTarget ( data) => stack
417
+ FlatToken :: Attributes ( data) => stack
418
418
. last_mut ( )
419
419
. expect ( "Bottom token frame is missing!" )
420
420
. inner
0 commit comments