librustc: Rewrite reachability and forbid duplicate methods in type implementations.

This should allow fewer symbols to be exported.
This commit is contained in:
Patrick Walton
2013-06-14 18:21:47 -07:00
committed by Corey Richardson
parent a1531ed946
commit 03ab6351cc
30 changed files with 1331 additions and 961 deletions

View File

@@ -59,7 +59,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_static(id, _) |
def_variant(_, id) | def_ty(id) | def_ty_param(id, _) |
def_use(id) | def_struct(id) | def_trait(id) => {
def_use(id) | def_struct(id) | def_trait(id) | def_method(id, _) => {
id
}
def_arg(id, _) | def_local(id, _) | def_self(id, _) | def_self_ty(id)