-
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
E0477 triggered with current nightly #101951
Comments
The error message behaves funny, too, with the The problem seems to be related to the question whether or not there's an outlives-relation between the two elided lifetimes in Should be nightly regression, judging by the regressing commit, @rustbot label -regression-untriaged, +regression-from-stable-to-nightly. Some more labels, @rustbot label A-lifetimes, A-traits, T-compiler |
CC @lcnr as the author of the relevant PR. |
it's caused by this line:
going to look into this a bit deeper now |
my previous understanding was wrong 😅 fixed the issue in #102016 |
Assigning priority in accordance with the discussion of the Prioritization Working Group. |
…jackh726 implied_bounds: deal with inference vars fixes rust-lang#101951 while computing implied bounds for `<<T as ConstructionFirm>::Builder as BuilderFn<'_>>::Output` normalization replaces a projection with an inference var (adding a `Projection` obligation). Until we prove that obligation, this inference var remains unknown, which caused us to miss an implied bound necessary to prove that the unnormalized projection from the trait method signature is wf. r? types
I discovered that some code I had previously been using no longer compiles with the current nightly. It gives E0477 which, as other issues have pointed out, is incorrectly described as "no longer emitted by the compiler".
Code
Link to Playground
I expected to see this happen: The code compiles successfully
Instead, this happened: I get this compiler error:
Result of cargo-bisect-rustc
searched nightlies: from nightly-2022-08-08 to nightly-2022-09-17
regressed nightly: nightly-2022-08-10
searched commit range: f03ce30...34a6cae
regressed commit: 63e4312
bisected with cargo-bisect-rustc v0.6.4
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
The text was updated successfully, but these errors were encountered: