diff options
Diffstat (limited to 'crates/hir_def/src/nameres/collector.rs')
-rw-r--r-- | crates/hir_def/src/nameres/collector.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs index 81cf652b0..d73f895b7 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs | |||
@@ -1469,7 +1469,9 @@ impl ModCollector<'_, '_> { | |||
1469 | ) | 1469 | ) |
1470 | }) | 1470 | }) |
1471 | }, | 1471 | }, |
1472 | &mut |err| error = Some(err), | 1472 | &mut |err| { |
1473 | error.get_or_insert(err); | ||
1474 | }, | ||
1473 | ) { | 1475 | ) { |
1474 | Ok(Ok(macro_call_id)) => { | 1476 | Ok(Ok(macro_call_id)) => { |
1475 | self.def_collector.unexpanded_macros.push(MacroDirective { | 1477 | self.def_collector.unexpanded_macros.push(MacroDirective { |