diff options
author | Kirill Bulatov <[email protected]> | 2021-03-07 22:25:45 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-08 21:59:20 +0000 |
commit | dccbb38d2e28bfeb53f31c13de3b83e72f1a476c (patch) | |
tree | cf651b25be3c2dd2618e90738aa4f6600077cc9a /crates/hir/src | |
parent | db61d4ea13113cd6c4e0661075ea9b2f739be862 (diff) |
Less lifetines: derive SemanticsScope in place
Diffstat (limited to 'crates/hir/src')
-rw-r--r-- | crates/hir/src/semantics.rs | 2 |
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)] |
778 | pub struct SemanticsScope<'a> { | 778 | pub struct SemanticsScope<'a> { |
779 | pub db: &'a dyn HirDatabase, | 779 | pub db: &'a dyn HirDatabase, |
780 | file_id: HirFileId, | 780 | file_id: HirFileId, |