@@ -81,7 +81,7 @@ impl<'tcx> WfCheckingCtxt<'_, 'tcx> {
81
81
self . tcx ( ) ,
82
82
cause,
83
83
param_env,
84
- ty:: Binder :: dummy ( ty:: PredicateKind :: Clause ( ty:: Clause :: WellFormed ( arg) ) ) ,
84
+ ty:: Binder :: dummy ( ty:: PredicateKind :: Clause ( ty:: ClauseKind :: WellFormed ( arg) ) ) ,
85
85
) ) ;
86
86
}
87
87
}
@@ -419,18 +419,17 @@ fn check_gat_where_clauses(tcx: TyCtxt<'_>, associated_items: &[hir::TraitItemRe
419
419
let mut unsatisfied_bounds: Vec < _ > = required_bounds
420
420
. into_iter ( )
421
421
. filter ( |clause| match clause. kind ( ) . skip_binder ( ) {
422
- ty:: PredicateKind :: Clause ( ty:: Clause :: RegionOutlives ( ty:: OutlivesPredicate (
423
- a,
424
- b,
425
- ) ) ) => !region_known_to_outlive (
422
+ ty:: PredicateKind :: Clause ( ty:: ClauseKind :: RegionOutlives (
423
+ ty:: OutlivesPredicate ( a, b) ,
424
+ ) ) => !region_known_to_outlive (
426
425
tcx,
427
426
gat_def_id. def_id ,
428
427
param_env,
429
428
& FxIndexSet :: default ( ) ,
430
429
a,
431
430
b,
432
431
) ,
433
- ty:: PredicateKind :: Clause ( ty:: Clause :: TypeOutlives ( ty:: OutlivesPredicate (
432
+ ty:: PredicateKind :: Clause ( ty:: ClauseKind :: TypeOutlives ( ty:: OutlivesPredicate (
434
433
a,
435
434
b,
436
435
) ) ) => !ty_known_to_outlive (
@@ -574,7 +573,7 @@ fn gather_gat_bounds<'tcx, T: TypeFoldable<TyCtxt<'tcx>>>(
574
573
) ;
575
574
// The predicate we expect to see. (In our example,
576
575
// `Self: 'me`.)
577
- let clause = ty:: PredicateKind :: Clause ( ty:: Clause :: TypeOutlives (
576
+ let clause = ty:: PredicateKind :: Clause ( ty:: ClauseKind :: TypeOutlives (
578
577
ty:: OutlivesPredicate ( ty_param, region_param) ,
579
578
) ) ;
580
579
let clause = tcx. mk_predicate ( ty:: Binder :: dummy ( clause) ) ;
@@ -623,7 +622,7 @@ fn gather_gat_bounds<'tcx, T: TypeFoldable<TyCtxt<'tcx>>>(
623
622
} ,
624
623
) ;
625
624
// The predicate we expect to see.
626
- let clause = ty:: PredicateKind :: Clause ( ty:: Clause :: RegionOutlives (
625
+ let clause = ty:: PredicateKind :: Clause ( ty:: ClauseKind :: RegionOutlives (
627
626
ty:: OutlivesPredicate ( region_a_param, region_b_param) ,
628
627
) ) ;
629
628
let clause = tcx. mk_predicate ( ty:: Binder :: dummy ( clause) ) ;
@@ -1032,7 +1031,7 @@ fn check_type_defn<'tcx>(tcx: TyCtxt<'tcx>, item: &hir::Item<'tcx>, all_sized: b
1032
1031
tcx,
1033
1032
cause,
1034
1033
wfcx. param_env ,
1035
- ty:: Binder :: dummy ( ty:: PredicateKind :: Clause ( ty:: Clause :: ConstEvaluatable (
1034
+ ty:: Binder :: dummy ( ty:: PredicateKind :: Clause ( ty:: ClauseKind :: ConstEvaluatable (
1036
1035
ty:: Const :: from_anon_const ( tcx, discr_def_id. expect_local ( ) ) ,
1037
1036
) ) ) ,
1038
1037
) ) ;
@@ -1876,7 +1875,8 @@ impl<'tcx> WfCheckingCtxt<'_, 'tcx> {
1876
1875
// We lower empty bounds like `Vec<dyn Copy>:` as
1877
1876
// `WellFormed(Vec<dyn Copy>)`, which will later get checked by
1878
1877
// regular WF checking
1879
- if let ty:: PredicateKind :: Clause ( ty:: Clause :: WellFormed ( ..) ) = pred. kind ( ) . skip_binder ( )
1878
+ if let ty:: PredicateKind :: Clause ( ty:: ClauseKind :: WellFormed ( ..) ) =
1879
+ pred. kind ( ) . skip_binder ( )
1880
1880
{
1881
1881
continue ;
1882
1882
}
0 commit comments