]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/print/pprust.rs
rollup merge of #20482: kmcallister/macro-reform
[rust.git] / src / libsyntax / print / pprust.rs
index 553e717f6921dcdbd60d959cb1390b10db3e4139..402583b60fae5387e6c89055f875408341539c5e 100644 (file)
@@ -272,6 +272,8 @@ pub fn token_to_string(tok: &Token) -> String {
         token::Comment              => "/* */".to_string(),
         token::Shebang(s)           => format!("/* shebang: {}*/", s.as_str()),
 
+        token::SpecialVarNt(var)    => format!("${}", var.as_str()),
+
         token::Interpolated(ref nt) => match *nt {
             token::NtExpr(ref e)  => expr_to_string(&**e),
             token::NtMeta(ref e)  => meta_item_to_string(&**e),