Matthias Krüger 5d6aeb9799
Rollup merge of - compiler-errors:issue-110131, r=petrochenkov
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 
cc , which introduced this regression
2023-04-12 22:04:34 +02:00
..
2023-04-09 23:22:14 +02:00
2023-04-09 22:29:56 +02:00
2023-04-09 23:22:14 +02:00
2023-04-09 23:22:14 +02:00
2023-04-09 23:22:14 +02:00
2023-04-09 23:22:14 +02:00
2023-04-09 23:22:14 +02:00
2023-04-09 23:22:14 +02:00
2023-04-06 09:34:16 +01:00
2023-04-09 23:22:14 +02:00