diff options
| author | bors <bors@rust-lang.org> | 2015-02-07 02:04:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-07 02:04:47 +0000 |
| commit | 7ebf9bc5c22155d622537ded42b4ebf94238b296 (patch) | |
| tree | b3f937f2f554e961236d3a2048778441ab062c5e /src/libsyntax/parse/parser.rs | |
| parent | d3732a12e896ab98aa27eaffab99a78bbaf837e4 (diff) | |
| parent | a2e01c62d5b6259d55b6688c8b059ac28e5dd03e (diff) | |
| download | rust-7ebf9bc5c22155d622537ded42b4ebf94238b296.tar.gz rust-7ebf9bc5c22155d622537ded42b4ebf94238b296.zip | |
Auto merge of #21505 - GuillaumeGomez:interned_string, r=alexcrichton
It's in order to make the code more homogeneous.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index cae23c5a2cc..3107f47de78 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5133,7 +5133,7 @@ impl<'a> Parser<'a> { outer_attrs, "path") { Some(d) => (dir_path.join(d), true), None => { - let mod_name = mod_string.get().to_string(); + let mod_name = mod_string.to_string(); let default_path_str = format!("{}.rs", mod_name); let secondary_path_str = format!("{}/mod.rs", mod_name); let default_path = dir_path.join(&default_path_str[]); @@ -5145,7 +5145,7 @@ impl<'a> Parser<'a> { self.span_err(id_sp, "cannot declare a new module at this location"); let this_module = match self.mod_path_stack.last() { - Some(name) => name.get().to_string(), + Some(name) => name.to_string(), None => self.root_module_name.as_ref().unwrap().clone(), }; self.span_note(id_sp, @@ -5191,7 +5191,7 @@ impl<'a> Parser<'a> { }; self.eval_src_mod_from_path(file_path, owns_directory, - mod_string.get().to_string(), id_sp) + mod_string.to_string(), id_sp) } fn eval_src_mod_from_path(&mut self, |
