aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/descriptors/function/scope.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-11-27 11:23:29 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-11-27 11:23:29 +0000
commit8e37208040a456d4e481472f69b3b584655ee90f (patch)
treed7c7674e657443a104cc06a24c1254e8396ca286 /crates/ra_analysis/src/descriptors/function/scope.rs
parent7adbea9c425847ee7193d3eaba2bef5ba4f0d4bd (diff)
parented023929d5f3a53a3989371452291176d3ce543c (diff)
Merge #244
244: Switch to id-arena r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_analysis/src/descriptors/function/scope.rs')
-rw-r--r--crates/ra_analysis/src/descriptors/function/scope.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/descriptors/function/scope.rs b/crates/ra_analysis/src/descriptors/function/scope.rs
index 54d7fa456..5307a0a8e 100644
--- a/crates/ra_analysis/src/descriptors/function/scope.rs
+++ b/crates/ra_analysis/src/descriptors/function/scope.rs
@@ -58,13 +58,13 @@ impl FnScopes {
58 }) 58 })
59 } 59 }
60 fn root_scope(&mut self) -> ScopeId { 60 fn root_scope(&mut self) -> ScopeId {
61 self.scopes.push(ScopeData { 61 self.scopes.alloc(ScopeData {
62 parent: None, 62 parent: None,
63 entries: vec![], 63 entries: vec![],
64 }) 64 })
65 } 65 }
66 fn new_scope(&mut self, parent: ScopeId) -> ScopeId { 66 fn new_scope(&mut self, parent: ScopeId) -> ScopeId {
67 self.scopes.push(ScopeData { 67 self.scopes.alloc(ScopeData {
68 parent: Some(parent), 68 parent: Some(parent),
69 entries: vec![], 69 entries: vec![],
70 }) 70 })