diff options
Diffstat (limited to 'crates/hir_expand/src/eager.rs')
-rw-r--r-- | crates/hir_expand/src/eager.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs index 584ddcf9f..66601f4df 100644 --- a/crates/hir_expand/src/eager.rs +++ b/crates/hir_expand/src/eager.rs | |||
@@ -128,7 +128,7 @@ pub fn expand_eager_macro( | |||
128 | }), | 128 | }), |
129 | kind: MacroCallKind::FnLike { ast_id: call_id, fragment: FragmentKind::Expr }, | 129 | kind: MacroCallKind::FnLike { ast_id: call_id, fragment: FragmentKind::Expr }, |
130 | }); | 130 | }); |
131 | let arg_file_id: MacroCallId = arg_id; | 131 | let arg_file_id = arg_id; |
132 | 132 | ||
133 | let parsed_args = | 133 | let parsed_args = |
134 | diagnostic_sink.result(mbe::token_tree_to_syntax_node(&parsed_args, FragmentKind::Expr))?.0; | 134 | diagnostic_sink.result(mbe::token_tree_to_syntax_node(&parsed_args, FragmentKind::Expr))?.0; |
@@ -177,7 +177,7 @@ fn lazy_expand( | |||
177 | let ast_id = db.ast_id_map(macro_call.file_id).ast_id(¯o_call.value); | 177 | let ast_id = db.ast_id_map(macro_call.file_id).ast_id(¯o_call.value); |
178 | 178 | ||
179 | let fragment = crate::to_fragment_kind(¯o_call.value); | 179 | let fragment = crate::to_fragment_kind(¯o_call.value); |
180 | let id: MacroCallId = def.as_lazy_macro( | 180 | let id = def.as_lazy_macro( |
181 | db, | 181 | db, |
182 | krate, | 182 | krate, |
183 | MacroCallKind::FnLike { ast_id: macro_call.with_value(ast_id), fragment }, | 183 | MacroCallKind::FnLike { ast_id: macro_call.with_value(ast_id), fragment }, |
@@ -207,7 +207,7 @@ fn eager_macro_recur( | |||
207 | .option_with(|| macro_resolver(child.path()?), || err("failed to resolve macro"))?; | 207 | .option_with(|| macro_resolver(child.path()?), || err("failed to resolve macro"))?; |
208 | let insert = match def.kind { | 208 | let insert = match def.kind { |
209 | MacroDefKind::BuiltInEager(..) => { | 209 | MacroDefKind::BuiltInEager(..) => { |
210 | let id: MacroCallId = expand_eager_macro( | 210 | let id = expand_eager_macro( |
211 | db, | 211 | db, |
212 | krate, | 212 | krate, |
213 | curr.with_value(child.clone()), | 213 | curr.with_value(child.clone()), |