-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a proc_macro crate with more than 9 macros causes an ICE #52370
Comments
assigning to self for further investigation. |
(note we may downgrade priority to something less drastic than P-high) |
Can't reproduce on yesterday's master (but I also have incremental + debug asserts on)
|
@oli-obk My bad. Should have clarified that the ICE only occurs when actually using the proc-macro crate ( |
Ah indeed. Unfortunately I'm running into stack overflows now :/
|
But the stacktrace is still helpful: rust/src/librustc/hir/map/definitions.rs Line 89 in 4d1a30c
|
Isn't this a duplicate of #49482 (and therefore, fixed on nightly)? |
@arielb1 Yup, it's fixed. |
Minimal repro: https://github.com/Bobo1239/proc_macro_limit
proc_macro_limit
defines 10 macros.cargo test
results in an ICE (the test just containsextern crate proc_macro_limit
). The ICE doesn't occur when any macro is removed.edit: The ICE only manifest when using the proc-macro crate via
extern crate proc_macro_limit;
. So in the repro cratecargo build
succeeds butcargo test
fails with the ICE.rustc -Vv
:Backtrace:
The text was updated successfully, but these errors were encountered: