1
Fork 0

Fix another ICE in point_at_expr_source_of_inferred_type

This commit is contained in:
Michael Goulet 2023-03-02 18:27:06 +00:00
parent 31f858d9a5
commit 4b01a1a07a
3 changed files with 27 additions and 1 deletions

View file

@ -315,7 +315,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
probe::ProbeScope::TraitsInScope,
None,
) {
Ok(pick) => pick.self_ty,
Ok(pick) => eraser.fold_ty(pick.self_ty),
Err(_) => rcvr_ty,
};
// Remove one layer of references to account for `&mut self` and