Refactor the self-info so that the def-id is carried in ty_self()

and the fn_ctxt doesn't need any self_info field at all.

Step towards fixing `fn(&self)` (cc #4846) to have a distinct
lifetime.
This commit is contained in:
Niko Matsakis
2013-03-19 10:36:02 -04:00
parent db4dc1ffe2
commit 00f97b9fb0
12 changed files with 34 additions and 38 deletions

View File

@@ -185,7 +185,7 @@ pub enum def {
/* trait */ Option<def_id>,
purity),
def_self(node_id, bool /* is_implicit */),
def_self_ty(node_id),
def_self_ty(/* trait id */ node_id),
def_mod(def_id),
def_foreign_mod(def_id),
def_const(def_id),