Stop parsing old operator overloading syntax

This commit is contained in:
Brian Anderson 2012-08-13 17:42:06 -07:00
parent 2e1b98d34f
commit 6b43c0c1ad
11 changed files with 3 additions and 105 deletions

View file

@ -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 {
@{