-
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
Regression ICE with const generics when updating from 7c3872e6b 2021-06-24
to 7a16cfcff 2021-07-11
#87076
Comments
Does not occur on
Does occur on
|
I'm not the most familiar with the compiler but I think the issue lies here commit. |
Also similar to #86961 |
7c3872e6b 2021-06-24
to 7a16cfcff 2021-07-11
7c3872e6b 2021-06-24
to 7a16cfcff 2021-07-11
One thing to mention: you are asked to provide your rust version and you provided the stable version, but in your command you are using |
MCVE:
#![feature(const_generics)]
#[derive(PartialEq, Eq)]
pub struct UnitDims {
pub time: u8,
pub length: u8,
}
pub struct UnitValue<const DIMS: UnitDims>;
impl<const DIMS: UnitDims> UnitValue<DIMS> {
fn crash() {}
}
fn main() {
UnitValue::<{ UnitDims { time: 1, length: 2 } }>::crash();
} @rustbot modify labels: requires-nightly A-const-generics |
Error: Label needs-nightly can only be set by Rust team members Please let |
searched nightlies: from nightly-2021-06-26 to nightly-2021-07-11 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --access=github --regress=ice --without-cargo -- build |
Fixed as of
|
using rust-lang#87076 (comment) as testcase
Compiled fine on
7c3872e6b 2021-06-24
, updated to7a16cfcff 2021-07-11
and got ICE.Using const generic features.
Code
Github link
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: