diff options
Diffstat (limited to 'crates/ra_hir_expand/src/eager.rs')
-rw-r--r-- | crates/ra_hir_expand/src/eager.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_expand/src/eager.rs b/crates/ra_hir_expand/src/eager.rs index 2e6dd3dd8..4cbce4df5 100644 --- a/crates/ra_hir_expand/src/eager.rs +++ b/crates/ra_hir_expand/src/eager.rs | |||
@@ -30,7 +30,7 @@ use ra_syntax::{algo::replace_descendants, SyntaxElement, SyntaxNode}; | |||
30 | use std::{collections::HashMap, sync::Arc}; | 30 | use std::{collections::HashMap, sync::Arc}; |
31 | 31 | ||
32 | pub fn expand_eager_macro( | 32 | pub fn expand_eager_macro( |
33 | db: &impl AstDatabase, | 33 | db: &dyn AstDatabase, |
34 | macro_call: InFile<ast::MacroCall>, | 34 | macro_call: InFile<ast::MacroCall>, |
35 | def: MacroDefId, | 35 | def: MacroDefId, |
36 | resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>, | 36 | resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>, |
@@ -78,7 +78,7 @@ fn to_subtree(node: &SyntaxNode) -> Option<tt::Subtree> { | |||
78 | } | 78 | } |
79 | 79 | ||
80 | fn lazy_expand( | 80 | fn lazy_expand( |
81 | db: &impl AstDatabase, | 81 | db: &dyn AstDatabase, |
82 | def: &MacroDefId, | 82 | def: &MacroDefId, |
83 | macro_call: InFile<ast::MacroCall>, | 83 | macro_call: InFile<ast::MacroCall>, |
84 | ) -> Option<InFile<SyntaxNode>> { | 84 | ) -> Option<InFile<SyntaxNode>> { |
@@ -91,7 +91,7 @@ fn lazy_expand( | |||
91 | } | 91 | } |
92 | 92 | ||
93 | fn eager_macro_recur( | 93 | fn eager_macro_recur( |
94 | db: &impl AstDatabase, | 94 | db: &dyn AstDatabase, |
95 | curr: InFile<SyntaxNode>, | 95 | curr: InFile<SyntaxNode>, |
96 | macro_resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>, | 96 | macro_resolver: &dyn Fn(ast::Path) -> Option<MacroDefId>, |
97 | ) -> Option<SyntaxNode> { | 97 | ) -> Option<SyntaxNode> { |