Stop parsing old operator overloading syntax
This commit is contained in:
parent
2e1b98d34f
commit
6b43c0c1ad
11 changed files with 3 additions and 105 deletions
|
|
@ -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 {
|
||||
@{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue