@@ -2080,25 +2080,22 @@ impl<'tcx> RegionInferenceContext<'tcx> {
20802080 | ConstraintCategory :: CallArgument ( _)
20812081 | ConstraintCategory :: CopyBound
20822082 | ConstraintCategory :: SizedBound
2083- | ConstraintCategory :: Assignment { has_interesting_ty : true }
2083+ | ConstraintCategory :: Assignment
20842084 | ConstraintCategory :: Usage
20852085 | 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 ,
20892086 // Generic arguments are unlikely to be what relates regions together
2090- ConstraintCategory :: TypeAnnotation ( AnnotationSource :: GenericArg ) => 4 ,
2087+ ConstraintCategory :: TypeAnnotation ( AnnotationSource :: GenericArg ) => 3 ,
20912088 // We handle predicates and opaque types specially; don't prioritize them here.
2092- ConstraintCategory :: Predicate ( _) | ConstraintCategory :: OpaqueType => 5 ,
2089+ ConstraintCategory :: Predicate ( _) | ConstraintCategory :: OpaqueType => 4 ,
20932090 // `Boring` constraints can correspond to user-written code and have useful spans,
20942091 // but don't provide any other useful information for diagnostics.
2095- ConstraintCategory :: Boring => 6 ,
2092+ ConstraintCategory :: Boring => 5 ,
20962093 // `BoringNoLocation` constraints can point to user-written code, but are less
20972094 // specific, and are not used for relations that would make sense to blame.
2098- ConstraintCategory :: BoringNoLocation => 7 ,
2095+ ConstraintCategory :: BoringNoLocation => 6 ,
20992096 // Do not blame internal constraints.
2100- ConstraintCategory :: Internal => 8 ,
2101- ConstraintCategory :: IllegalUniverse => 9 ,
2097+ ConstraintCategory :: Internal => 7 ,
2098+ ConstraintCategory :: IllegalUniverse => 8 ,
21022099 }
21032100 } ;
21042101
0 commit comments