-
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
ICE: broken mir #110683
Comments
trait Trait<T> {}
fn foo<T>() -> dyn Trait<T>
where
dyn Trait<T>: Sized,
{
42
} |
almost exactly 3 years old 🍰 🥳 🪅 searched toolchains nightly-2020-04-17 through nightly-2023-04-22 Regression in nightly-2020-04-23 found 7 bors merge commits in the specified range probably #71170 ? cc @spastorino |
I feel like i've seen this before -- probably a dupe? Or at least I think I've chatted with @JakobDegen about this. |
Could be :D probably 90% of the ICEs I am seeing are already reported in some way or another and sometimes one might slip through |
different stacktrace with debug assertions:
|
…, r=cjgillot only suppress coercion error if type is definitely unsized we previously suppressed coercion errors when the return type was `dyn Trait` because we expect a far more descriptive `Sized` trait error to be emitted instead, however the code that does this suppression does not consider where-clause predicates since it just looked at the HIR. let's do that instead by creating an obligation and checking if it may hold. fixes rust-lang#110683 fixes rust-lang#112208
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: