-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 after cast to *const _
#99122
Comments
@rustbot modify labels: +regression-from-stable-to-beta |
searched nightlies: from nightly-2022-03-01 to nightly-2022-07-02 bisected with cargo-bisect-rustc v0.6.3Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start 2022-03-01 --regress ice |
Anyways I put up a fix in #99124. |
Fix sized check ICE in asm check Fixes (beta nominated, so doesn't close) rust-lang#99122
Fix sized check ICE in asm check Fixes (beta nominated, so doesn't close) rust-lang#99122
Fix sized check ICE in asm check Fixes (beta nominated, so doesn't close) rust-lang#99122 1. Moves a check for unresolved inference variables to _before_ other checks that could possibly ICE. We're not changing behavior here, just doing the same thing earlier in the function. 2. Erases region variables in sized check (which are not resolved at this point) because rustc will also ICE when region vars are passed to a query which does not canonicalize them.
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
This was merged into beta so I will close it now. Expect it to be fixed next beta release :) |
Code
https://godbolt.org/z/dYEEEMddq
Meta
rustc --version --verbose
:Also happens with nightly, but not with stable (1.62.0)
Error output
Backtrace
The text was updated successfully, but these errors were encountered: