Register snapshots.

This commit is contained in:
Eduard Burtescu
2014-11-01 19:51:16 +02:00
parent eca8f11315
commit 56dbf3d122
13 changed files with 18 additions and 352 deletions

View File

@@ -1491,13 +1491,7 @@ mod test {
}
}
#[cfg(stage0)]
fn mk_ident (id: &str, is_mod_name: bool) -> token::Token {
token::Ident(str_to_ident(id), is_mod_name)
}
// make the identifier by looking up the string in the interner
#[cfg(not(stage0))]
fn mk_ident(id: &str, style: token::IdentStyle) -> token::Token {
token::Ident(str_to_ident(id), style)
}