about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-13 17:42:06 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-13 18:59:17 -0700
commit6b43c0c1add8d2caaa3c391d8d8daca2c609047e (patch)
tree2223eb0347d5dd4084afaed19120874fd2a03c7b /src/libsyntax/ast.rs
parent2e1b98d34f105f4632b30bcd5c51e40cb7a1b637 (diff)
downloadrust-6b43c0c1add8d2caaa3c391d8d8daca2c609047e.tar.gz
rust-6b43c0c1add8d2caaa3c391d8d8daca2c609047e.zip
Stop parsing old operator overloading syntax
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 8f4eb98fa7b..57795e5d21c 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -821,34 +821,12 @@ pure fn empty_span() -> span {
 
 // Convenience implementations
 
-// Remove after snapshot!
-trait path_concat {
-    pure fn +(&&id: ident) -> @path;
-}
-
-// Remove after snapshot!
-impl ident: path_concat {
-    pure fn +(&&id: ident) -> @path {
-        simple_path(self, empty_span()) + id
-    }
-}
-
 impl ident: ops::add<ident,@path> {
     pure fn add(&&id: ident) -> @path {
         simple_path(self, empty_span()) + id
     }
 }
 
-// Remove after snapshot!
-impl @path: path_concat {
-    pure fn +(&&id: ident) -> @path {
-        @{
-            idents: vec::append_one(self.idents, id)
-            with *self
-        }
-    }
-}
-
 impl @path: ops::add<ident,@path> {
     pure fn add(&&id: ident) -> @path {
         @{