Revert "Use Predicate ConstraintCategory when normalizing"

This reverts commit aae37f8763.
This commit is contained in:
Jack Huey 2022-09-16 09:01:28 -04:00
parent df34db9b03
commit bba514b7b4
14 changed files with 15 additions and 172 deletions

View file

@ -48,11 +48,10 @@ impl<'cx, 'tcx> AtExt<'tcx> for At<'cx, 'tcx> {
T: TypeFoldable<'tcx>,
{
debug!(
"normalize::<{}>(value={:?}, param_env={:?}, cause={:?})",
"normalize::<{}>(value={:?}, param_env={:?})",
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![] });