ParamEnv normalization in dyn-compatibility check rejects projections too eagerly #139280
Labels
C-bug
Category: This is a bug.
F-arbitrary_self_types
`#![feature(arbitrary_self_types)]`
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
This looks like a stable-to-nightly regression.
I tried this code:
I expected to see this happen: it should compile, which is the case with stable
rustc 1.85.0 (4d91de4e4 2025-02-17)
Instead, this happened:
Meta
rustc --version --verbose
:Backtrace
My investigation
rustc_trait_selection::traits::do_normalize_predicates
generate anErrorGuaranteed
even though it should bubble the unnormalized projection up. I am experimenting a fix, which is to perform the "bubbling". Meanwhile, I would like to hear your verdicts on this issue.The text was updated successfully, but these errors were encountered: