ICE when using cfg_if and defining a macro with macro_rules twice. #58490
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
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.
Compiler crash when using cfg_if and defining a macro with macro_rules twice.
I tried this code:
In a repo: https://github.com/theypsilon/rust-bug-crash-cfg-if-macro
I expected to see this happen:
error: a macro named
foohas already been exported
Instead, this happened:
error: internal compiler error: unexpected panic
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: