diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-25 10:22:19 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-03-11 12:05:02 +0000 |
| commit | 43e39260f9bc02e79891b87f346b456a069967f5 (patch) | |
| tree | 32b5e0dd6c92d26b7ee09cb2e15fb8ddb427bfc1 /compiler | |
| parent | 3e4e65ee8b8c5d7a1916fd6377901416f06dca4d (diff) | |
Keep items around even if builtin macros on them fail to parse
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_expand/src/expand.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index c523bcece72..87f01be26c2 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -780,8 +780,8 @@ impl<'a, 'b> MacroExpander<'a, 'b> { } } Err(err) => { - let guar = err.emit(); - fragment_kind.dummy(span, guar) + let _guar = err.emit(); + fragment_kind.expect_from_annotatables(iter::once(item)) } } } |
