@@ -249,6 +249,8 @@ pub fn to_string(t: &Token) -> String {
249249 match nt {
250250 & NtExpr ( ref e) => :: print:: pprust:: expr_to_string ( & * * e) ,
251251 & NtMeta ( ref e) => :: print:: pprust:: meta_item_to_string ( & * * e) ,
252+ & NtTy ( ref e) => :: print:: pprust:: ty_to_string ( & * * e) ,
253+ & NtPath ( ref e) => :: print:: pprust:: path_to_string ( & * * e) ,
252254 _ => {
253255 let mut s = "an interpolated " . to_string ( ) ;
254256 match * nt {
@@ -257,10 +259,10 @@ pub fn to_string(t: &Token) -> String {
257259 NtStmt ( ..) => s. push_str ( "statement" ) ,
258260 NtPat ( ..) => s. push_str ( "pattern" ) ,
259261 NtMeta ( ..) => fail ! ( "should have been handled" ) ,
260- NtExpr ( ..) => fail ! ( "should have been handled above " ) ,
261- NtTy ( ..) => s . push_str ( "type ") ,
262+ NtExpr ( ..) => fail ! ( "should have been handled" ) ,
263+ NtTy ( ..) => fail ! ( "should have been handled ") ,
262264 NtIdent ( ..) => s. push_str ( "identifier" ) ,
263- NtPath ( ..) => s . push_str ( "path ") ,
265+ NtPath ( ..) => fail ! ( "should have been handled ") ,
264266 NtTT ( ..) => s. push_str ( "tt" ) ,
265267 NtMatchers ( ..) => s. push_str ( "matcher sequence" )
266268 } ;
0 commit comments