about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-08-30 21:50:22 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-09-13 20:18:49 -0400
commitaae37f87632dd74856d55c0cd45d2c192379c990 (patch)
treef0547b334b687b6ad47d2eedbbab3ea4e85dd21a /compiler/rustc_trait_selection
parentc75817b0a75d4b6b01ee10900ba5d01d4915e6a8 (diff)
downloadrust-aae37f87632dd74856d55c0cd45d2c192379c990.tar.gz
rust-aae37f87632dd74856d55c0cd45d2c192379c990.zip
Use Predicate ConstraintCategory when normalizing
Diffstat (limited to 'compiler/rustc_trait_selection')
-rw-r--r--compiler/rustc_trait_selection/src/traits/query/normalize.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/query/normalize.rs b/compiler/rustc_trait_selection/src/traits/query/normalize.rs
index f65fc5bad0d..a3f8f4e2ed0 100644
--- a/compiler/rustc_trait_selection/src/traits/query/normalize.rs
+++ b/compiler/rustc_trait_selection/src/traits/query/normalize.rs
@@ -48,10 +48,11 @@ impl<'cx, 'tcx> AtExt<'tcx> for At<'cx, 'tcx> {
         T: TypeFoldable<'tcx>,
     {
         debug!(
-            "normalize::<{}>(value={:?}, param_env={:?})",
+            "normalize::<{}>(value={:?}, param_env={:?}, cause={:?})",
             std::any::type_name::<T>(),
             value,
             self.param_env,
+            self.cause,
         );
         if !needs_normalization(&value, self.param_env.reveal()) {
             return Ok(Normalized { value, obligations: vec![] });