-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ICE with new asm! macro and incremental compilation #72386
Comments
cc @Amanieu |
@Amanieu: It looks like you're missing the rust/src/librustc_hir/arena.rs Lines 17 to 18 in 8858a43
|
That doesn't seem to work since |
@Amanieu: It looks like it's nececessary to declare Do you want to use your apporach, or should I open a PR with the arena changes? |
Fixes rust-lang#72386 This type also needs to get allocated on the `librustc_middle` arena when we deserialize MIR.
Add missing ASM arena declarations to librustc_middle Fixes rust-lang#72386 These types also need to get allocated on the `librustc_middle` arena when we deserialize MIR. @Amanieu: If we end up using your approach in rust-lang#72392 instead, feel free to copy the test I added over to your PR.
Add missing ASM arena declarations to librustc_middle Fixes rust-lang#72386 These types also need to get allocated on the `librustc_middle` arena when we deserialize MIR. @Amanieu: If we end up using your approach in rust-lang#72392 instead, feel free to copy the test I added over to your PR.
Add missing ASM arena declarations to librustc_middle Fixes rust-lang#72386 These types also need to get allocated on the `librustc_middle` arena when we deserialize MIR. @Amanieu: If we end up using your approach in rust-lang#72392 instead, feel free to copy the test I added over to your PR.
I'm getting an ICE even after
Is this caused by the same thing or do I submit a bug report? |
It's the same issue. |
Add missing ASM arena declarations to librustc_middle Fixes rust-lang#72386 These types also need to get allocated on the `librustc_middle` arena when we deserialize MIR. @Amanieu: If we end up using your approach in rust-lang#72392 instead, feel free to copy the test I added over to your PR.
Discovered when playing with new asm! macro #69171
How to reproduce
cargo run
with following code:building will result in error, because this is invalid register name ( this is 100% correct)
asm!("nop")
(same code as in 1)build will result with ICE:
Workarounds
cargo clean
Meta
rustc --version --verbose
:also fails on x86_64-pc-windows-gnu
The text was updated successfully, but these errors were encountered: