about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-04 01:18:31 +0000
committerMichael Goulet <michael@errs.io>2023-07-06 16:50:12 +0000
commit3f8919c09bbf78b6d1d48fbbacbd63ad5a78cf7a (patch)
tree2e4bf24b0c2cf8f07ca01de73f901358015b3cd9 /compiler/rustc_ty_utils/src
parent018c3e2c092d73d18169729c4dde92c29924d9d8 (diff)
downloadrust-3f8919c09bbf78b6d1d48fbbacbd63ad5a78cf7a.tar.gz
rust-3f8919c09bbf78b6d1d48fbbacbd63ad5a78cf7a.zip
get rid of a bit more calls to poly_select
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/instance.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs
index 2d75862014d..1d93a79e591 100644
--- a/compiler/rustc_ty_utils/src/instance.rs
+++ b/compiler/rustc_ty_utils/src/instance.rs
@@ -80,7 +80,7 @@ fn resolve_associated_item<'tcx>(
 
     let trait_ref = ty::TraitRef::from_method(tcx, trait_id, rcvr_substs);
 
-    let vtbl = match tcx.codegen_select_candidate((param_env, ty::Binder::dummy(trait_ref))) {
+    let vtbl = match tcx.codegen_select_candidate((param_env, trait_ref)) {
         Ok(vtbl) => vtbl,
         Err(CodegenObligationError::Ambiguity) => {
             let reported = tcx.sess.delay_span_bug(