Michael Goulet 90e51f110c
Rollup merge of #112537 - compiler-errors:dont-record-adjustments-twice, r=cjgillot
Don't record adjustments twice in `note_source_of_type_mismatch_constraint`

We call `lookup_method` a few times in `note_source_of_type_mismatch_constraint`, but that function has side-effects to the typeck results. Replace it with a less side-effect-y variant of the function for use in diagnostics.

Specifically the ICE in #112532 happens because we're recording deref adjustments twice for a call receiver, which causes `ExprUseVisitor` to be angry.

Fixes #112532
2023-06-18 13:17:05 -07:00
..
2023-06-12 20:24:48 +08:00
2023-05-30 12:40:35 +02:00
2023-05-30 13:03:40 +02:00
2023-06-12 20:24:48 +08:00
2023-06-13 21:54:11 +00:00
2023-06-10 14:46:11 -04:00
2023-06-12 20:24:48 +08:00
2023-06-15 06:50:56 -04:00
2023-06-15 01:55:37 +00:00
2023-06-12 20:24:48 +08:00
2023-06-06 18:43:20 +00:00
2023-06-05 21:00:08 +00:00
2023-05-29 12:07:41 -03:00
2023-06-12 20:24:48 +08:00