-
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: unexpected region in query response: ReError
#109072
Comments
searched nightlies: from nightly-2023-01-01 to nightly-2023-03-11 bisected with cargo-bisect-rustc v0.6.4Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --access github --timeout 30 --start 2023-01-01 --end 2023-03-11 --regress ice |
This is "due" to 7c306f6, but probably |
reduced via treereduce trait Lt<'_> {
type T = ();
}
impl<> Lt<> () {}
fn main() {
let v:<() as Lt<>>::T = ();
} |
I'd argue that repro is worse than the one provided at the top of the issue, even if it's a few bytes shorter. It introduces a bit of superfluous syntax/unnecessary syntax errors. Here's a denser minimization that avoids the syntax errors (except for the one that actually is the root-cause of the issue): trait Lt<'a> {
type T;
}
impl Lt<'missing> for () {
// ^^^^^^^^
type T = ();
}
fn main() {
let v:<() as Lt>::T = ();
} |
haha, the original snipped looked like this #![feature(unboxed_closures)]
trait Lt<'_> {
type T = ();
}
impl<'f> Lt<'unboxed_closures> for () {
type T = ();
}
fn main() {
let v:<() as Lt<'_>>::T = ();
} but I though it looked a little too weird :) |
@rustbot claim |
Sorry for the off-topic comment: In response to this feedback I made a wrapper for treereduce that avoids introducing unrelated issues. It also runs |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: