rustc: Check self types in method lookup; allow required trait methods to have self types; write self types into metadata

This commit is contained in:
Patrick Walton 2012-07-31 16:32:37 -07:00
parent 567f881fdf
commit 2cfe8fb357
11 changed files with 181 additions and 22 deletions

View file

@ -286,6 +286,7 @@ class parser {
// methods are ignored; this could change.
required({ident: ident, attrs: attrs,
decl: {purity: pur with d}, tps: tps,
self_ty: self_ty,
span: mk_sp(lo, hi)})
}
token::LBRACE {