1
Fork 0

Remove DefId from ConstraintCategory::Predicate

This shirnks the size of `ConstraintCategory`, hopefully
fixing a performance regression.
This commit is contained in:
Aaron Hill 2021-09-27 10:45:34 -05:00
parent 93ab12eeab
commit 41ad383e11
No known key found for this signature in database
GPG key ID: B4087E510E98B164
4 changed files with 20 additions and 9 deletions

View file

@ -40,7 +40,7 @@ impl ConstraintDescription for ConstraintCategory {
ConstraintCategory::OpaqueType => "opaque type ",
ConstraintCategory::ClosureUpvar(_) => "closure capture ",
ConstraintCategory::Usage => "this usage ",
ConstraintCategory::Predicate(_, _)
ConstraintCategory::Predicate(_)
| ConstraintCategory::Boring
| ConstraintCategory::BoringNoLocation
| ConstraintCategory::Internal => "",