Use Predicate ConstraintCategory when normalizing

This commit is contained in:
Jack Huey 2022-08-30 21:50:22 -04:00
parent 1eb71f0893
commit e7ca6e1b47
14 changed files with 172 additions and 15 deletions

View file

@ -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![] });