Fix another ICE in point_at_expr_source_of_inferred_type
This commit is contained in:
parent
31f858d9a5
commit
4b01a1a07a
3 changed files with 27 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue