-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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: region constraints already solved
#136335
Comments
reduction with fewer errors: pub struct Query<'a>(&'a u8);
pub trait SystemParam {
type State;
}
impl SystemParam for Query {
type State = ();
}
pub struct ParamSet<T: SystemParam>(T)
where
T::State: Sized;
fn ref_handler(_: ParamSet<Query>) {} |
searched nightlies: from nightly-2025-01-30 to nightly-2025-01-31 bisected with cargo-bisect-rustc v0.6.9Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2025-01-30 --script=run.sh #136038 cc @compiler-errors |
Notably, this ICEs only if the ident of the second struct contains the substring |
cc #119956 probably? |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
@rustbot label +I-ICE +P-medium +A-borrow-checker +T-compiler +C-bug +S-has-mcve +S-has-bisection |
Since this is related to the |
@rustbot label -I-prioritize |
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_infer/src/infer/mod.rs
Lines 221 to 233 in 6c1d960
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: