mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Partially support "overloaded deref" MIR lowering
This commit is contained in:
parent
bf0f99f15d
commit
af90ec8096
14 changed files with 546 additions and 297 deletions
|
@ -422,13 +422,6 @@ impl Body {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn walk_child_bindings(&self, pat: PatId, f: &mut impl FnMut(BindingId)) {
|
||||
if let Pat::Bind { id, .. } = self[pat] {
|
||||
f(id)
|
||||
}
|
||||
self[pat].walk_child_pats(|p| self.walk_child_bindings(p, f));
|
||||
}
|
||||
|
||||
pub fn pretty_print(&self, db: &dyn DefDatabase, owner: DefWithBodyId) -> String {
|
||||
pretty::print_body_hir(db, self, owner)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue