-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Using a proc_macro crate with more than 9 macros causes an ICE #52370
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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. |
Uh oh!
There was an error while loading. Please reload this page.
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: