Keep items around even if builtin macros on them fail to parse
This commit is contained in:
parent
3e4e65ee8b
commit
43e39260f9
3 changed files with 3 additions and 11 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue