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

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