about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/autoderef.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-01 22:39:49 -0400
committerMichael Goulet <michael@errs.io>2024-05-02 22:03:01 -0400
commit92861517aa7b97aaaeb444fa898dec3ede29f2aa (patch)
treef9c10621c25385b9c7223a381d178ccad9ac5e82 /compiler/rustc_hir_analysis/src/autoderef.rs
parentd9eb5232b6fea1d902650727f71b4c1bbf69079a (diff)
downloadrust-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.rs2
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