Use Predicate ConstraintCategory when normalizing
This commit is contained in:
parent
1eb71f0893
commit
e7ca6e1b47
14 changed files with 172 additions and 15 deletions
|
@ -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![] });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue