Explicitly store self_ids use for self locals in methods
This makes it possible to move them between crates without confusion, and to instantiate them at a point where the monomorphizing substitutions are known. Issue #1944
This commit is contained in:
@@ -41,7 +41,7 @@ fn def_id_of_def(d: def) -> def_id {
|
||||
def_use(id) |
|
||||
def_class(id) | def_class_field(_, id) | def_class_method(_, id) { id }
|
||||
|
||||
def_self(id) | def_arg(id, _) | def_local(id, _) |
|
||||
def_arg(id, _) | def_local(id, _) | def_self(id) |
|
||||
def_upvar(id, _, _) | def_binding(id) {
|
||||
local_def(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user