about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-01-31 16:10:06 -0800
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-02 01:44:49 +1100
commite5dc347ccfe92d9d1dd23f0b4a257a1cb3532462 (patch)
treec6540425182aabfc4fde8e45564c4f50c796c7e5 /src/libsyntax/parse/parser.rs
parenta695b62118ffd1ed1df5e4898cb34d7d58b91bc1 (diff)
downloadrust-e5dc347ccfe92d9d1dd23f0b4a257a1cb3532462.tar.gz
rust-e5dc347ccfe92d9d1dd23f0b4a257a1cb3532462.zip
libsyntax: Remove the `interner_get` function and all uses
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 34080ffb624..86913711801 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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());