Take ocx by move for pending obligations

This commit is contained in:
Michael Goulet 2024-05-01 22:39:49 -04:00
parent d9eb5232b6
commit 92861517aa
3 changed files with 11 additions and 4 deletions

View file

@ -188,7 +188,7 @@ impl<'a, 'tcx> Autoderef<'a, 'tcx> {
return None;
}
Some((normalized_ty, ocx.pending_obligations()))
Some((normalized_ty, ocx.into_pending_obligations()))
}
/// Returns the final type we ended up with, which may be an inference