-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 assertion failed: !ty.needs_infer()
#110161
Comments
See also #109204 , but while 109204 only reproduces with rustdoc, this one only repros with rustc and not rustdoc 🤔 |
searched nightlies: from nightly-2023-01-01 to nightly-2023-04-11 bisected with cargo-bisect-rustc v0.6.6Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --regress=ice --start 2023-01-01 |
@rustbot claim I'll have a go at this, no idea if I'll be able to do it. |
This is an ICE on invalid code. Minimized: trait Trait {
type Ty;
}
// erroneous `Ty` impl
impl Trait for () {
// missing `Ty` impl
}
// `'lt` is not constrained by the erroneous `Ty`
impl<'lt, T> Trait for Box<T>
where
T: Trait<Ty = &'lt ()>,
{
type Ty = &'lt ();
}
// unconstrained lifetime appears in implied bounds
fn test(_: <Box<()> as Trait>::Ty) {} @Ezrashaw this can be fixed by replacing the assertion with |
btw, you should update your cargo-bisect-rustc to make it bisect the contents of rollups as well. |
It is, unfortunately the regression is old enough that perf artifacts are gone :( |
It's not old, but I remember now, this was my cursed rollup that didn't get unrolled perf builds. It also was a perf regression which made it pretty annoying :D |
…unds, r=aliemjay fix: skip implied bounds if unconstrained lifetime exists Fixes rust-lang#110161 r? `@aliemjay`
…unds, r=aliemjay fix: skip implied bounds if unconstrained lifetime exists Fixes rust-lang#110161 r? ``@aliemjay``
…unds, r=aliemjay fix: skip implied bounds if unconstrained lifetime exists Fixes rust-lang#110161 r? ```@aliemjay```
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: