Rustc panic caused by invalid identifier in proc-macro #78737
Labels
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Brief
The panic is generated when I output a new struct in a proc macro that has an invalid identifier via the Quote crate.
In this case the proc-macro will panic, and in turn rustc panics as well.
I setup up a repository to reproduce the issue.
I also set up GitHub Actions to test a couple variations here.
The panic only seems to happen on Windowns and MacOS
Code
Meta
rustc --version --verbose
:Error output
Setting
RUST_BACKTRACE
to1
produces no backtrace on Windows, but does procude backtrace on MacOS.Backtrace
The text was updated successfully, but these errors were encountered: