diff options
| author | bors <bors@rust-lang.org> | 2013-05-27 12:38:12 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-27 12:38:12 -0700 |
| commit | b0f3686515410c013f6cd12ce4fc5236e3dee3f2 (patch) | |
| tree | d8c26fa0f1db08519245c29c5c8d9775fa00cf73 /src/libsyntax/parse/parser.rs | |
| parent | d98cc9995fb5c87230f57eeffb8061df25d85190 (diff) | |
| parent | 8f80323f09ef150efc5cf729100f99981afc96e1 (diff) | |
| download | rust-b0f3686515410c013f6cd12ce4fc5236e3dee3f2.tar.gz rust-b0f3686515410c013f6cd12ce4fc5236e3dee3f2.zip | |
auto merge of #6703 : sanxiyn/rust/allocation-lint, r=sanxiyn
Fix #6145. In particular, handle operator overloading.
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 e8b200439d6..1af0cfab273 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3584,7 +3584,7 @@ pub impl Parser { let prefix = prefix.dir_path(); let mod_path_stack = &*self.mod_path_stack; let mod_path = Path(".").push_many(*mod_path_stack); - let default_path = *self.sess.interner.get(id) + ~".rs"; + let default_path = *self.sess.interner.get(id) + ".rs"; let file_path = match ::attr::first_attr_value_str_by_name( outer_attrs, "path") { Some(d) => { @@ -4213,8 +4213,8 @@ pub impl Parser { // FAILURE TO PARSE ITEM if visibility != inherited { let mut s = ~"unmatched visibility `"; - s += if visibility == public { ~"pub" } else { ~"priv" }; - s += ~"`"; + s += if visibility == public { "pub" } else { "priv" }; + s += "`"; self.span_fatal(*self.last_span, s); } return iovi_none; |
