@@ -1055,10 +1055,10 @@ impl CommentedTokenTree {
10551055 Self :: Tree ( commented_tt) => commented_tt,
10561056 } ;
10571057 let tt = match commented_tt {
1058- GenericTokenTree :: Punct ( punct) => punct. into ( ) ,
1059- GenericTokenTree :: Ident ( ident) => ident. into ( ) ,
1060- GenericTokenTree :: Group ( group) => group. strip_comments ( ) . into ( ) ,
1061- GenericTokenTree :: Literal ( lit) => lit. into ( ) ,
1058+ CommentedTree :: Punct ( punct) => punct. into ( ) ,
1059+ CommentedTree :: Ident ( ident) => ident. into ( ) ,
1060+ CommentedTree :: Group ( group) => group. strip_comments ( ) . into ( ) ,
1061+ CommentedTree :: Literal ( lit) => lit. into ( ) ,
10621062 } ;
10631063 Some ( tt)
10641064 }
@@ -1090,7 +1090,7 @@ impl Spanned for CommentedTokenStream {
10901090
10911091#[ cfg( test) ]
10921092mod tests {
1093- use super :: { lex_commented, CommentedTokenTree , GenericTokenTree } ;
1093+ use super :: { lex_commented, CommentedTokenTree , CommentedTree } ;
10941094 use crate :: priv_prelude:: * ;
10951095 use std:: sync:: Arc ;
10961096
@@ -1118,7 +1118,7 @@ mod tests {
11181118 assert_eq ! ( tts. next( ) . unwrap( ) . span( ) . as_str( ) , "Foo" ) ;
11191119 {
11201120 let group = match tts. next ( ) {
1121- Some ( CommentedTokenTree :: Tree ( GenericTokenTree :: Group ( group) ) ) => group,
1121+ Some ( CommentedTokenTree :: Tree ( CommentedTree :: Group ( group) ) ) => group,
11221122 _ => panic ! ( "expected group" ) ,
11231123 } ;
11241124 let mut tts = group. token_stream . token_trees ( ) . iter ( ) ;
0 commit comments