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:
parent
567f881fdf
commit
2cfe8fb357
11 changed files with 181 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue