@@ -287,19 +287,19 @@ pub fn token_to_string(tok: &Token) -> String {
287287 token:: SpecialVarNt ( var) => format ! ( "${}" , var. as_str( ) ) ,
288288
289289 token:: Interpolated ( ref nt) => match * nt {
290- token:: NtExpr ( ref e) => expr_to_string ( & * * e) ,
291- token:: NtMeta ( ref e) => meta_item_to_string ( & * * e) ,
292- token:: NtTy ( ref e) => ty_to_string ( & * * e) ,
293- token:: NtPath ( ref e) => path_to_string ( & * * e) ,
294- token:: NtItem ( .. ) => "an interpolated item" . to_string ( ) ,
295- token:: NtBlock ( .. ) => "an interpolated block" . to_string ( ) ,
296- token:: NtStmt ( .. ) => "an interpolated statement" . to_string ( ) ,
297- token:: NtPat ( .. ) => "an interpolated pattern" . to_string ( ) ,
298- token:: NtIdent ( .. ) => "an interpolated identifier" . to_string ( ) ,
299- token:: NtTT ( .. ) => "an interpolated tt" . to_string ( ) ,
300- token:: NtArm ( .. ) => "an interpolated arm" . to_string ( ) ,
301- token:: NtImplItem ( .. ) => "an interpolated impl item" . to_string ( ) ,
302- token:: NtTraitItem ( .. ) => "an interpolated trait item" . to_string ( ) ,
290+ token:: NtExpr ( ref e) => expr_to_string ( & * * e) ,
291+ token:: NtMeta ( ref e) => meta_item_to_string ( & * * e) ,
292+ token:: NtTy ( ref e) => ty_to_string ( & * * e) ,
293+ token:: NtPath ( ref e) => path_to_string ( & * * e) ,
294+ token:: NtItem ( ref e ) => item_to_string ( & * * e ) ,
295+ token:: NtBlock ( ref e ) => block_to_string ( & * * e ) ,
296+ token:: NtStmt ( ref e ) => stmt_to_string ( & * * e ) ,
297+ token:: NtPat ( ref e ) => pat_to_string ( & * * e ) ,
298+ token:: NtIdent ( ref e ) => ident_to_string ( & * * e ) ,
299+ token:: NtTT ( ref e ) => tt_to_string ( & * * e ) ,
300+ token:: NtArm ( ref e ) => arm_to_string ( & * * e ) ,
301+ token:: NtImplItem ( ref e ) => impl_item_to_string ( & * * e ) ,
302+ token:: NtTraitItem ( ref e ) => trait_item_to_string ( & * * e ) ,
303303 }
304304 }
305305}
0 commit comments