mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 15:33:25 +03:00
5d6aeb9799
Do not use ImplDerivedObligationCause for inherent impl method error reporting We were constructing a `TraitRef` out of impl substs, for an *inherent* impl that has no corresponding trait. Instead of doing that, let's construct a meaningful obligation cause code, and instead adjust the error reporting machinery to handle that correctly. Fixes #110131 cc #106702, which introduced this regression