Take ocx by move for pending obligations
This commit is contained in:
parent
d9eb5232b6
commit
92861517aa
3 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue