mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
Add self
to the ast_map for provided methods. Closes #8010.
This commit is contained in:
parent
48a682398a
commit
451de33f7b
@ -238,12 +238,18 @@ impl Visitor<()> for Ctx {
|
|||||||
self.map.insert(p.ref_id, node_item(i, item_path));
|
self.map.insert(p.ref_id, node_item(i, item_path));
|
||||||
}
|
}
|
||||||
for tm in methods.iter() {
|
for tm in methods.iter() {
|
||||||
let id = ast_util::trait_method_to_ty_method(tm).id;
|
let ext = { self.extend(i.ident) };
|
||||||
let d_id = ast_util::local_def(i.id);
|
let d_id = ast_util::local_def(i.id);
|
||||||
self.map.insert(id,
|
match *tm {
|
||||||
node_trait_method(@(*tm).clone(),
|
required(ref m) => {
|
||||||
d_id,
|
let entry =
|
||||||
item_path));
|
node_trait_method(@(*tm).clone(), d_id, ext);
|
||||||
|
self.map.insert(m.id, entry);
|
||||||
|
}
|
||||||
|
provided(m) => {
|
||||||
|
self.map_method(d_id, ext, m, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user