Keep items around even if builtin macros on them fail to parse

This commit is contained in:
Oli Scherer 2025-02-25 10:22:19 +00:00
parent 3e4e65ee8b
commit 43e39260f9
3 changed files with 3 additions and 11 deletions

View file

@ -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))
}
}
}