Skip to content

Commit 9bf13e4

Browse files
committed
Change name
1 parent d307dcd commit 9bf13e4

File tree

26 files changed

+34
-34
lines changed

26 files changed

+34
-34
lines changed

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ pub(super) fn assert_only_contains_predicates_from<'tcx>(
747747
ty::ClauseKind::RegionOutlives(_)
748748
| ty::ClauseKind::ConstArgHasType(_, _)
749749
| ty::ClauseKind::WellFormed(_)
750-
| ty::ClauseKind::UnstableImpl
750+
| ty::ClauseKind::UnstableFeature
751751
| ty::ClauseKind::ConstEvaluatable(_) => {
752752
bug!(
753753
"unexpected non-`Self` predicate when computing \
@@ -775,7 +775,7 @@ pub(super) fn assert_only_contains_predicates_from<'tcx>(
775775
| ty::ClauseKind::ConstArgHasType(_, _)
776776
| ty::ClauseKind::WellFormed(_)
777777
| ty::ClauseKind::ConstEvaluatable(_)
778-
| ty::ClauseKind::UnstableImpl
778+
| ty::ClauseKind::UnstableFeature
779779
| ty::ClauseKind::HostEffect(..) => {
780780
bug!(
781781
"unexpected non-`Self` predicate when computing \

compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ fn trait_specialization_kind<'tcx>(
496496
| ty::ClauseKind::ConstArgHasType(..)
497497
| ty::ClauseKind::WellFormed(_)
498498
| ty::ClauseKind::ConstEvaluatable(..)
499-
| ty::ClauseKind::UnstableImpl
499+
| ty::ClauseKind::UnstableFeature
500500
| ty::ClauseKind::HostEffect(..) => None,
501501
}
502502
}

compiler/rustc_hir_analysis/src/outlives/explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'tcx> ExplicitPredicatesMap<'tcx> {
5454
| ty::ClauseKind::ConstArgHasType(_, _)
5555
| ty::ClauseKind::WellFormed(_)
5656
| ty::ClauseKind::ConstEvaluatable(_)
57-
| ty::ClauseKind::UnstableImpl
57+
| ty::ClauseKind::UnstableFeature
5858
| ty::ClauseKind::HostEffect(..) => {}
5959
}
6060
}

compiler/rustc_hir_typeck/src/fn_ctxt/inspect_obligations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
5353
| ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..))
5454
| ty::PredicateKind::ConstEquate(..)
5555
| ty::PredicateKind::Clause(ty::ClauseKind::HostEffect(..))
56-
| ty::PredicateKind::Clause(ty::ClauseKind::UnstableImpl)
56+
| ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature)
5757
| ty::PredicateKind::Ambiguous => false,
5858
}
5959
}

compiler/rustc_hir_typeck/src/method/probe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
926926
| ty::ClauseKind::ConstArgHasType(_, _)
927927
| ty::ClauseKind::WellFormed(_)
928928
| ty::ClauseKind::ConstEvaluatable(_)
929-
| ty::ClauseKind::UnstableImpl
929+
| ty::ClauseKind::UnstableFeature
930930
| ty::ClauseKind::HostEffect(..) => None,
931931
}
932932
});

compiler/rustc_lint/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
15611561
ClauseKind::TypeOutlives(..) |
15621562
ClauseKind::RegionOutlives(..) => "lifetime",
15631563

1564-
ClauseKind::UnstableImpl
1564+
ClauseKind::UnstableFeature
15651565
// `ConstArgHasType` is never global as `ct` is always a param
15661566
| ClauseKind::ConstArgHasType(..)
15671567
// Ignore projections, as they can only be global

compiler/rustc_middle/src/ty/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl FlagComputation {
309309
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(arg)) => {
310310
self.add_args(slice::from_ref(&arg));
311311
}
312-
ty::PredicateKind::Clause(ty::ClauseKind::UnstableImpl) => {}
312+
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature) => {}
313313
ty::PredicateKind::DynCompatible(_def_id) => {}
314314
ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(uv)) => {
315315
self.add_const(uv);

compiler/rustc_middle/src/ty/predicate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<'tcx> Predicate<'tcx> {
132132
| PredicateKind::Clause(ClauseKind::TypeOutlives(_))
133133
| PredicateKind::Clause(ClauseKind::Projection(_))
134134
| PredicateKind::Clause(ClauseKind::ConstArgHasType(..))
135-
| PredicateKind::Clause(ClauseKind::UnstableImpl)
135+
| PredicateKind::Clause(ClauseKind::UnstableFeature)
136136
| PredicateKind::DynCompatible(_)
137137
| PredicateKind::Subtype(_)
138138
| PredicateKind::Coerce(_)
@@ -648,7 +648,7 @@ impl<'tcx> Predicate<'tcx> {
648648
PredicateKind::Clause(ClauseKind::Projection(..))
649649
| PredicateKind::Clause(ClauseKind::HostEffect(..))
650650
| PredicateKind::Clause(ClauseKind::ConstArgHasType(..))
651-
| PredicateKind::Clause(ClauseKind::UnstableImpl)
651+
| PredicateKind::Clause(ClauseKind::UnstableFeature)
652652
| PredicateKind::NormalizesTo(..)
653653
| PredicateKind::AliasRelate(..)
654654
| PredicateKind::Subtype(..)
@@ -670,7 +670,7 @@ impl<'tcx> Predicate<'tcx> {
670670
PredicateKind::Clause(ClauseKind::Trait(..))
671671
| PredicateKind::Clause(ClauseKind::HostEffect(..))
672672
| PredicateKind::Clause(ClauseKind::ConstArgHasType(..))
673-
| PredicateKind::Clause(ClauseKind::UnstableImpl)
673+
| PredicateKind::Clause(ClauseKind::UnstableFeature)
674674
| PredicateKind::NormalizesTo(..)
675675
| PredicateKind::AliasRelate(..)
676676
| PredicateKind::Subtype(..)

compiler/rustc_middle/src/ty/print/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3251,7 +3251,7 @@ define_print! {
32513251
ty::ClauseKind::ConstEvaluatable(ct) => {
32523252
p!("the constant `", print(ct), "` can be evaluated")
32533253
}
3254-
ty::ClauseKind::UnstableImpl => p!("unstable impl"),
3254+
ty::ClauseKind::UnstableFeature => p!("unstable impl"),
32553255
}
32563256
}
32573257

compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ where
557557
ty::PredicateKind::Clause(ty::ClauseKind::ConstArgHasType(ct, ty)) => {
558558
self.compute_const_arg_has_type_goal(Goal { param_env, predicate: (ct, ty) })
559559
}
560-
ty::PredicateKind::Clause(ty::ClauseKind::UnstableImpl) => todo!(),
560+
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature) => todo!(),
561561
ty::PredicateKind::Subtype(predicate) => {
562562
self.compute_subtype_goal(Goal { param_env, predicate })
563563
}

0 commit comments

Comments
 (0)