about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-01-26 14:47:03 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-02-02 15:40:11 +0000
commit38f50d1ecb2adf9f9e6305b22cdee96bd65f9cbe (patch)
treedc6c1a79606c3f72d01698198e02466c676f6242 /compiler/rustc_trait_selection
parenta745797142f932877695a0a3cd1b452ab67e59df (diff)
Eagerly merge hidden types.
Diffstat (limited to 'compiler/rustc_trait_selection')
-rw-r--r--compiler/rustc_trait_selection/src/traits/fulfill.rs2
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/fulfill.rs b/compiler/rustc_trait_selection/src/traits/fulfill.rs
index 68dd1cd2616..274f8a3ef79 100644
--- a/compiler/rustc_trait_selection/src/traits/fulfill.rs
+++ b/compiler/rustc_trait_selection/src/traits/fulfill.rs
@@ -652,7 +652,7 @@ impl<'a, 'b, 'tcx> FulfillProcessor<'a, 'b, 'tcx> {
                         &obligation.cause,
                         obligation.param_env,
                     ) {
-                        Ok(value) => ProcessResult::Changed(mk_pending(value)),
+                        Ok(value) => ProcessResult::Changed(mk_pending(value.obligations)),
                         Err(err) => ProcessResult::Error(FulfillmentErrorCode::CodeSubtypeError(
                             ExpectedFound::new(true, a, b),
                             err,
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index 3b99183d8eb..35818786cbb 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -705,8 +705,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
                         &obligation.cause,
                         obligation.param_env,
                     ) {
-                        Ok(obligations) => {
-                            self.evaluate_predicates_recursively(previous_stack, obligations)
+                        Ok(res) => {
+                            self.evaluate_predicates_recursively(previous_stack, res.obligations)
                         }
                         Err(_) => Ok(EvaluatedToErr),
                     }