aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_impl
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-17 12:08:18 +0000
committerAleksey Kladov <[email protected]>2019-01-19 12:37:26 +0000
commitd48d5b8b6ca59b462b3a84dad9868daff2eddb6d (patch)
tree20f1936ccf07abea463ae81b36132efd76ad4f71 /crates/ra_hir/src/code_model_impl
parent9433a108cfcf3a9c7de9299d6641a5abf9031a17 (diff)
Add initial (flawed) implementation of binding annotations
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r--crates/ra_hir/src/code_model_impl/function/scope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function/scope.rs b/crates/ra_hir/src/code_model_impl/function/scope.rs
index c551e445a..7e8eb7704 100644
--- a/crates/ra_hir/src/code_model_impl/function/scope.rs
+++ b/crates/ra_hir/src/code_model_impl/function/scope.rs
@@ -88,7 +88,7 @@ impl FnScopes {
88 88
89 fn add_bindings(&mut self, body: &Body, scope: ScopeId, pat: PatId) { 89 fn add_bindings(&mut self, body: &Body, scope: ScopeId, pat: PatId) {
90 match &body[pat] { 90 match &body[pat] {
91 Pat::Bind { name } => self.scopes[scope].entries.push(ScopeEntry { 91 Pat::Bind { name, .. } => self.scopes[scope].entries.push(ScopeEntry {
92 name: name.clone(), 92 name: name.clone(),
93 pat, 93 pat,
94 }), 94 }),