diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-01 22:39:49 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-02 22:03:01 -0400 |
| commit | 92861517aa7b97aaaeb444fa898dec3ede29f2aa (patch) | |
| tree | f9c10621c25385b9c7223a381d178ccad9ac5e82 /compiler/rustc_hir_analysis/src/autoderef.rs | |
| parent | d9eb5232b6fea1d902650727f71b4c1bbf69079a (diff) | |
| download | rust-92861517aa7b97aaaeb444fa898dec3ede29f2aa.tar.gz rust-92861517aa7b97aaaeb444fa898dec3ede29f2aa.zip | |
Take ocx by move for pending obligations
Diffstat (limited to 'compiler/rustc_hir_analysis/src/autoderef.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/autoderef.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/autoderef.rs b/compiler/rustc_hir_analysis/src/autoderef.rs index 4e85045ef49..f101c595bdf 100644 --- a/compiler/rustc_hir_analysis/src/autoderef.rs +++ b/compiler/rustc_hir_analysis/src/autoderef.rs @@ -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 |
