Major rework of how calls to self and super methods work.
Eliminates method_super, method_self, and vtable_self, merging all of them into the param cases. Cloes #4396. Closes #7301.
This commit is contained in:
parent
79f8a7fee5
commit
ffc879c2e4
11 changed files with 121 additions and 293 deletions
|
|
@ -715,10 +715,6 @@ impl Repr for typeck::method_map_entry {
|
|||
impl Repr for typeck::method_origin {
|
||||
fn repr(&self, tcx: ctxt) -> ~str {
|
||||
match self {
|
||||
&typeck::method_super(def_id, n) => {
|
||||
fmt!("method_super(%s, %?)",
|
||||
def_id.repr(tcx), n)
|
||||
}
|
||||
&typeck::method_static(def_id) => {
|
||||
fmt!("method_static(%s)", def_id.repr(tcx))
|
||||
}
|
||||
|
|
@ -729,9 +725,6 @@ impl Repr for typeck::method_origin {
|
|||
fmt!("method_trait(%s, %?, %s)", def_id.repr(tcx), n,
|
||||
st.repr(tcx))
|
||||
}
|
||||
&typeck::method_self(def_id, n) => {
|
||||
fmt!("method_self(%s, %?)", def_id.repr(tcx), n)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue