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

@ -503,7 +503,8 @@ type ty_field = spanned<ty_field_>;
#[auto_serialize]
type ty_method = {ident: ident, attrs: ~[attribute],
decl: fn_decl, tps: ~[ty_param], span: span};
decl: fn_decl, tps: ~[ty_param], self_ty: self_ty,
span: span};
#[auto_serialize]
// A trait method is either required (meaning it doesn't have an