mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Add initial (flawed) implementation of binding annotations
This commit is contained in:
parent
9433a108cf
commit
d48d5b8b6c
7 changed files with 97 additions and 5 deletions
|
@ -88,7 +88,7 @@ impl FnScopes {
|
|||
|
||||
fn add_bindings(&mut self, body: &Body, scope: ScopeId, pat: PatId) {
|
||||
match &body[pat] {
|
||||
Pat::Bind { name } => self.scopes[scope].entries.push(ScopeEntry {
|
||||
Pat::Bind { name, .. } => self.scopes[scope].entries.push(ScopeEntry {
|
||||
name: name.clone(),
|
||||
pat,
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue