aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_editor/src')
-rw-r--r--crates/ra_editor/src/scope/fn_scope.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_editor/src/scope/fn_scope.rs b/crates/ra_editor/src/scope/fn_scope.rs
index f10bdf657..f5c113fd9 100644
--- a/crates/ra_editor/src/scope/fn_scope.rs
+++ b/crates/ra_editor/src/scope/fn_scope.rs
@@ -83,6 +83,7 @@ impl FnScopes {
83 } 83 }
84} 84}
85 85
86#[derive(PartialEq, Eq)]
86pub struct ScopeEntry { 87pub struct ScopeEntry {
87 syntax: SyntaxNode, 88 syntax: SyntaxNode,
88} 89}
@@ -251,7 +252,7 @@ fn compute_expr_scopes(expr: ast::Expr, scopes: &mut FnScopes, scope: ScopeId) {
251 } 252 }
252} 253}
253 254
254#[derive(Debug)] 255#[derive(Debug, PartialEq, Eq)]
255struct ScopeData { 256struct ScopeData {
256 parent: Option<ScopeId>, 257 parent: Option<ScopeId>,
257 entries: Vec<ScopeEntry>, 258 entries: Vec<ScopeEntry>,