diff options
| author | bors <bors@rust-lang.org> | 2013-11-29 11:01:50 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-29 11:01:50 -0800 |
| commit | 08f4d1ff9f2cc0092b307e1f438fb911bbf55185 (patch) | |
| tree | 95f3e2fdb5bf3ec6a28ffc8017c21fb03c4462a9 /src/libsyntax/parse | |
| parent | 631cbd2e11eda1937cefcd7d8ba7831cadec21cf (diff) | |
| parent | c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b (diff) | |
| download | rust-08f4d1ff9f2cc0092b307e1f438fb911bbf55185.tar.gz rust-08f4d1ff9f2cc0092b307e1f438fb911bbf55185.zip | |
auto merge of #10697 : pcwalton/rust/path-new, r=pcwalton
r+ (carrying over from @alexcrichton's review)
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 3e4a421cfba..8263906d925 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4216,10 +4216,10 @@ impl Parser { outer_attrs: &[ast::Attribute], id_sp: Span) -> (ast::item_, ~[ast::Attribute]) { - let mut prefix = Path::new(self.sess.cm.span_to_filename(*self.span)); + let mut prefix = Path::init(self.sess.cm.span_to_filename(*self.span)); prefix.pop(); let mod_path_stack = &*self.mod_path_stack; - let mod_path = Path::new(".").join_many(*mod_path_stack); + let mod_path = Path::init(".").join_many(*mod_path_stack); let dir_path = prefix.join(&mod_path); let file_path = match ::attr::first_attr_value_str_by_name( outer_attrs, "path") { |
