about summary refs log tree commit diff
path: root/src/comp/syntax/parse/parser.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-01-30 11:36:18 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-01-30 11:37:52 +0100
commit964bd485c6837fa08212451f45878746c9d3d308 (patch)
treeb0c7848e98af74f15fce91804989f3d8d3e43ed7 /src/comp/syntax/parse/parser.rs
parent98c3396ab68551156021b490cf0ffed9cf3a40e3 (diff)
downloadrust-964bd485c6837fa08212451f45878746c9d3d308.tar.gz
rust-964bd485c6837fa08212451f45878746c9d3d308.zip
Revert self types
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
-rw-r--r--src/comp/syntax/parse/parser.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index a7bbddfee39..e6b278d5168 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1850,10 +1850,9 @@ fn parse_method(p: parser) -> @ast::method {
 
 fn parse_item_iface(p: parser, attrs: [ast::attribute]) -> @ast::item {
     let lo = p.last_span.lo, ident = parse_ident(p),
-        tps = parse_ty_params(p), meths = parse_ty_methods(p),
-        self_tp = {ident: "self", id: p.get_id(), bounds: @[]};
+        tps = parse_ty_params(p), meths = parse_ty_methods(p);
     ret mk_item(p, lo, p.last_span.hi, ident,
-                ast::item_iface(tps + [self_tp], meths), attrs);
+                ast::item_iface(tps, meths), attrs);
 }
 
 // Parses three variants (with the initial params always optional):