Rather than storing a list of ty::method per trait, store one ty::method

per method and list of def-ids per trait.
This commit is contained in:
Niko Matsakis
2013-03-27 10:26:57 -04:00
parent d94830830f
commit 007abe9352
24 changed files with 412 additions and 321 deletions

View File

@@ -61,7 +61,7 @@ pub fn def_id_of_def(d: def) -> def_id {
def_fn(id, _) | def_static_method(id, _, _) | def_mod(id) |
def_foreign_mod(id) | def_const(id) |
def_variant(_, id) | def_ty(id) | def_ty_param(id, _) |
def_use(id) | def_struct(id) => {
def_use(id) | def_struct(id) | def_trait(id) => {
id
}
def_arg(id, _, _) | def_local(id, _) | def_self(id, _) | def_self_ty(id)