-
Notifications
You must be signed in to change notification settings - Fork 13k
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: usize
: cannot relate constants of different types', compiler/rustc_middle/src/ty/relate.rs:502:5
#83253
Comments
fn foo<const N: usize>() -> [u8; N] {
bar::<N>()
}
fn bar<const N: u8>() -> [u8; N] {} Neither version ICEs on beta or stable. (const generics aren't stable on 1.50, but after reporting an error for use of unstable features the compiler reports the same errors as beta and doesn't ICE.) @rustbot label A-const-generics regression-from-stable-to-nightly |
Bisected, this is a weird one:
|
@hameerabbasi I've attempted a second bisection using the snippet from the second comment, I got a different result (not sure why, unsure if it helps) searched nightlies: from nightly-2021-02-15 to nightly-2021-03-18 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --preserve --start=2021-02-15 --regress=ice |
I guess that was a lie 🙃 I'm looking into this |
Issue: rust-lang/rust#83253
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: