update uses of extract_if in the compiler
This commit is contained in:
@@ -447,7 +447,7 @@ pub fn normalize_param_env_or_error<'tcx>(
|
||||
// This works fairly well because trait matching does not actually care about param-env
|
||||
// TypeOutlives predicates - these are normally used by regionck.
|
||||
let outlives_predicates: Vec<_> = predicates
|
||||
.extract_if(|predicate| {
|
||||
.extract_if(.., |predicate| {
|
||||
matches!(predicate.kind().skip_binder(), ty::ClauseKind::TypeOutlives(..))
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user