This commit is contained in:
Jana Dönszelmann
2025-02-25 16:53:10 +01:00
parent ad27045c31
commit 4bf66c57fa
8 changed files with 87 additions and 6 deletions

View File

@@ -333,7 +333,10 @@ impl<'sess> AttributeParser<'sess> {
{
lit
} else {
let guar = self.dcx().has_errors().unwrap();
let guar = self.dcx().span_delayed_bug(
args.span().unwrap_or(DUMMY_SP),
"expr in place where literal is expected (builtin attr parsing)",
);
ast::MetaItemLit {
symbol: kw::Empty,
suffix: None,