Stop parsing old operator overloading syntax
This commit is contained in:
parent
2e1b98d34f
commit
6b43c0c1ad
11 changed files with 3 additions and 105 deletions
|
|
@ -42,16 +42,6 @@ type doc = {data: @~[u8], start: uint, end: uint};
|
|||
|
||||
type tagged_doc = {tag: uint, doc: doc};
|
||||
|
||||
trait get_doc {
|
||||
fn [](tag: uint) -> doc;
|
||||
}
|
||||
|
||||
impl doc: get_doc {
|
||||
fn [](tag: uint) -> doc {
|
||||
get_doc(self, tag)
|
||||
}
|
||||
}
|
||||
|
||||
impl doc: ops::index<uint,doc> {
|
||||
pure fn index(&&tag: uint) -> doc {
|
||||
unchecked {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue