replace idents with names

This commit is contained in:
John Clements 2014-07-06 16:02:48 -07:00
parent c1b8b3c35c
commit 6007797ed6
2 changed files with 15 additions and 8 deletions

View file

@ -405,6 +405,11 @@ macro_rules! declare_special_idents_and_keywords {(
$( pub static $si_static: Ident = Ident { name: $si_name, ctxt: 0 }; )*
}
pub mod special_names {
use ast::Name;
$( pub static $si_static: Name = $si_name; )*
}
/**
* All the valid words that have meaning in the Rust language.
*