about summary refs log tree commit diff
path: root/compiler/rustc_traits/src/codegen.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-03 22:23:37 +0000
committerMichael Goulet <michael@errs.io>2023-07-06 16:50:12 +0000
commit52f738499534a2d048a418c37cf4639b8b235bdb (patch)
tree78f03b1273bf10640ae79632a2875601d958354f /compiler/rustc_traits/src/codegen.rs
parent36453456cb2d9d1630aa0a5c68dc7ed9243b5ed4 (diff)
downloadrust-52f738499534a2d048a418c37cf4639b8b235bdb.tar.gz
rust-52f738499534a2d048a418c37cf4639b8b235bdb.zip
Separate select calls that don't need a binder
Diffstat (limited to 'compiler/rustc_traits/src/codegen.rs')
-rw-r--r--compiler/rustc_traits/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/codegen.rs b/compiler/rustc_traits/src/codegen.rs
index ef50fa23caf..aba453e4a1d 100644
--- a/compiler/rustc_traits/src/codegen.rs
+++ b/compiler/rustc_traits/src/codegen.rs
@@ -35,7 +35,7 @@ pub fn codegen_select_candidate<'tcx>(
     let obligation_cause = ObligationCause::dummy();
     let obligation = Obligation::new(tcx, obligation_cause, param_env, trait_ref);
 
-    let selection = match selcx.select(&obligation) {
+    let selection = match selcx.poly_select(&obligation) {
         Ok(Some(selection)) => selection,
         Ok(None) => return Err(CodegenObligationError::Ambiguity),
         Err(Unimplemented) => return Err(CodegenObligationError::Unimplemented),