aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-03-07 22:25:45 +0000
committerKirill Bulatov <[email protected]>2021-03-08 21:59:20 +0000
commitdccbb38d2e28bfeb53f31c13de3b83e72f1a476c (patch)
treecf651b25be3c2dd2618e90738aa4f6600077cc9a /crates/hir/src
parentdb61d4ea13113cd6c4e0661075ea9b2f739be862 (diff)
Less lifetines: derive SemanticsScope in place
Diffstat (limited to 'crates/hir/src')
-rw-r--r--crates/hir/src/semantics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs
index 69370ef3d..945638cc5 100644
--- a/crates/hir/src/semantics.rs
+++ b/crates/hir/src/semantics.rs
@@ -774,7 +774,7 @@ fn find_root(node: &SyntaxNode) -> SyntaxNode {
774/// 774///
775/// Note that if you are wondering "what does this specific existing name mean?", 775/// Note that if you are wondering "what does this specific existing name mean?",
776/// you'd better use the `resolve_` family of methods. 776/// you'd better use the `resolve_` family of methods.
777#[derive(Debug, Clone)] 777#[derive(Debug)]
778pub struct SemanticsScope<'a> { 778pub struct SemanticsScope<'a> {
779 pub db: &'a dyn HirDatabase, 779 pub db: &'a dyn HirDatabase,
780 file_id: HirFileId, 780 file_id: HirFileId,