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-05-31 01:21:38 +0000
committerMichael Goulet <michael@errs.io>2023-06-06 18:43:20 +0000
commit3d4da98273553b2307d8ce3a03c476e459aa3f45 (patch)
treef0728e73270bdf03a3c42bc2c9d54484feeae711 /compiler/rustc_traits/src/codegen.rs
parentb637048a89654d105a17b6b6f1a060fd8dcfd093 (diff)
downloadrust-3d4da98273553b2307d8ce3a03c476e459aa3f45.tar.gz
rust-3d4da98273553b2307d8ce3a03c476e459aa3f45.zip
Make TraitEngine::new use the right solver, add compare mode
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 ddba03b0b12..5f84acc8a04 100644
--- a/compiler/rustc_traits/src/codegen.rs
+++ b/compiler/rustc_traits/src/codegen.rs
@@ -55,7 +55,7 @@ pub fn codegen_select_candidate<'tcx>(
     // Currently, we use a fulfillment context to completely resolve
     // all nested obligations. This is because they can inform the
     // inference of the impl's type parameters.
-    let mut fulfill_cx = <dyn TraitEngine<'tcx>>::new(tcx);
+    let mut fulfill_cx = <dyn TraitEngine<'tcx>>::new(&infcx);
     let impl_source = selection.map(|predicate| {
         fulfill_cx.register_predicate_obligation(&infcx, predicate);
     });