about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2022-02-11 18:20:47 +0000
committerMatthew Jasper <mjjasper1@gmail.com>2022-02-12 13:39:52 +0000
commit030c50824c670da9fecd3ccdaec4d75d3dab1268 (patch)
treecb16e364012738ae2c0a3eda0006606601ec88dd /compiler/rustc_trait_selection/src
parentf718b516900105ccfce2b32c915b3c3b1a136a1c (diff)
Address review comment
canonicalize_chalk_query -> canonicalize_query_preserving_universes
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/chalk_fulfill.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/chalk_fulfill.rs b/compiler/rustc_trait_selection/src/traits/chalk_fulfill.rs
index 28b0ce9a171..93c2f202545 100644
--- a/compiler/rustc_trait_selection/src/traits/chalk_fulfill.rs
+++ b/compiler/rustc_trait_selection/src/traits/chalk_fulfill.rs
@@ -95,7 +95,8 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx> {
                     continue;
                 }
 
-                let canonical_goal = infcx.canonicalize_chalk_query(goal, &mut orig_values);
+                let canonical_goal =
+                    infcx.canonicalize_query_preserving_universes(goal, &mut orig_values);
 
                 match infcx.tcx.evaluate_goal(canonical_goal) {
                     Ok(response) => {