@@ -2080,25 +2080,22 @@ impl<'tcx> RegionInferenceContext<'tcx> {
2080
2080
| ConstraintCategory :: CallArgument ( _)
2081
2081
| ConstraintCategory :: CopyBound
2082
2082
| ConstraintCategory :: SizedBound
2083
- | ConstraintCategory :: Assignment { has_interesting_ty : true }
2083
+ | ConstraintCategory :: Assignment
2084
2084
| ConstraintCategory :: Usage
2085
2085
| ConstraintCategory :: ClosureUpvar ( _) => 2 ,
2086
- // Give assignments a lower priority when flagged as less likely to be interesting.
2087
- // In particular, de-prioritize MIR assignments lowered from argument patterns.
2088
- ConstraintCategory :: Assignment { has_interesting_ty : false } => 3 ,
2089
2086
// Generic arguments are unlikely to be what relates regions together
2090
- ConstraintCategory :: TypeAnnotation ( AnnotationSource :: GenericArg ) => 4 ,
2087
+ ConstraintCategory :: TypeAnnotation ( AnnotationSource :: GenericArg ) => 3 ,
2091
2088
// We handle predicates and opaque types specially; don't prioritize them here.
2092
- ConstraintCategory :: Predicate ( _) | ConstraintCategory :: OpaqueType => 5 ,
2089
+ ConstraintCategory :: Predicate ( _) | ConstraintCategory :: OpaqueType => 4 ,
2093
2090
// `Boring` constraints can correspond to user-written code and have useful spans,
2094
2091
// but don't provide any other useful information for diagnostics.
2095
- ConstraintCategory :: Boring => 6 ,
2092
+ ConstraintCategory :: Boring => 5 ,
2096
2093
// `BoringNoLocation` constraints can point to user-written code, but are less
2097
2094
// specific, and are not used for relations that would make sense to blame.
2098
- ConstraintCategory :: BoringNoLocation => 7 ,
2095
+ ConstraintCategory :: BoringNoLocation => 6 ,
2099
2096
// Do not blame internal constraints.
2100
- ConstraintCategory :: Internal => 8 ,
2101
- ConstraintCategory :: IllegalUniverse => 9 ,
2097
+ ConstraintCategory :: Internal => 7 ,
2098
+ ConstraintCategory :: IllegalUniverse => 8 ,
2102
2099
}
2103
2100
} ;
2104
2101
0 commit comments