libsyntax: Remove the interner_get function and all uses

This commit is contained in:
Patrick Walton 2014-01-31 16:10:06 -08:00 committed by Huon Wilson
parent a695b62118
commit e5dc347ccf
5 changed files with 13 additions and 34 deletions

View file

@ -4178,7 +4178,8 @@ impl Parser {
outer_attrs, "path") {
Some(d) => dir_path.join(d),
None => {
let mod_name = token::interner_get(id.name).to_owned();
let mod_string = token::get_ident(id.name);
let mod_name = mod_string.get().to_owned();
let default_path_str = mod_name + ".rs";
let secondary_path_str = mod_name + "/mod.rs";
let default_path = dir_path.join(default_path_str.as_slice());