-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: type_of.rs:115:26: unexpected anon const res PrimTy(Uint(Usize)) in path #78005
Comments
Reduced: fn main() {
let x: usize<main>;
} |
This doesn't ICE on 1.46. @rustbot modify labels: +regression-from-stable-to-stable |
We decided to label this |
Line triggered the ICE: rust/compiler/rustc_typeck/src/collect/type_of.rs Lines 115 to 120 in 95b4a4f
Regressed in #74113, cc @lcnr fyi Note that the snippet doesn't have to contain fn foo() {
let x: usize<foo>;
} bisected with cargo-bisect-rustc v0.5.2Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc 2020-07-01 --end 2020-08-01 --preserve --regress=ice --without-cargo -- check |
Will look into this in a few weeks so I am claiming this for now so I don't forget. @rustbot claim If anyone else wants to work on this before that feel free to do so, don't have much time rn |
The solution might be as simple as merging the linked match arm with the previous error one, making this a delay_span_bug and ignoring it. |
I just saw this issue and thought the same thing. I'm testing the fix now. |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: