Skip to content

Commit 0947070

Browse files
committed
consistently use "next solver" instead of "new solver"
1 parent 11d16c4 commit 0947070

File tree

168 files changed

+16
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+16
-16
lines changed

compiler/rustc_borrowck/src/type_check/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1006,13 +1006,13 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10061006
// FIXME(-Znext-solver): A bit dubious that we're only registering
10071007
// predefined opaques in the typeck root.
10081008
if infcx.next_trait_solver() && !infcx.tcx.is_typeck_child(body.source.def_id()) {
1009-
checker.register_predefined_opaques_in_new_solver();
1009+
checker.register_predefined_opaques_for_next_solver();
10101010
}
10111011

10121012
checker
10131013
}
10141014

1015-
pub(super) fn register_predefined_opaques_in_new_solver(&mut self) {
1015+
pub(super) fn register_predefined_opaques_for_next_solver(&mut self) {
10161016
// OK to use the identity arguments for each opaque type key, since
10171017
// we remap opaques from HIR typeck back to their definition params.
10181018
let opaques: Vec<_> = self

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
378378
//
379379
// This assert was removed as it did not hold for goals constraining
380380
// an inference variable to a recursive alias, e.g. in
381-
// tests/ui/traits/new-solver/overflow/recursive-self-normalization.rs.
381+
// tests/ui/traits/next-solver/overflow/recursive-self-normalization.rs.
382382
//
383383
// Once we have decided on how to handle trait-system-refactor-initiative#75,
384384
// we should re-add an assert here.

compiler/rustc_trait_selection/src/solve/search_graph.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct StackEntry<'tcx> {
3838
/// If we were to use that result when later trying to prove another cycle
3939
/// participant, we can end up with unstable query results.
4040
///
41-
/// See tests/ui/new-solver/coinduction/incompleteness-unstable-result.rs for
41+
/// See tests/ui/next-solver/coinduction/incompleteness-unstable-result.rs for
4242
/// an example of where this is needed.
4343
cycle_participants: FxHashSet<CanonicalInput<'tcx>>,
4444
}
@@ -237,7 +237,7 @@ impl<'tcx> SearchGraph<'tcx> {
237237
// in unstable results due to incompleteness.
238238
//
239239
// However, a test for this would be an even more complex version of
240-
// tests/ui/traits/new-solver/coinduction/incompleteness-unstable-result.rs.
240+
// tests/ui/traits/next-solver/coinduction/incompleteness-unstable-result.rs.
241241
// I did not bother to write such a test and we have no regression test
242242
// for this. It would be good to have such a test :)
243243
#[allow(rustc::potential_query_instability)]
@@ -248,7 +248,7 @@ impl<'tcx> SearchGraph<'tcx> {
248248
// until we reach a fixpoint. It is not enough to simply retry the
249249
// `root` goal of this cycle.
250250
//
251-
// See tests/ui/traits/new-solver/cycles/fixpoint-rerun-all-cycle-heads.rs
251+
// See tests/ui/traits/next-solver/cycles/fixpoint-rerun-all-cycle-heads.rs
252252
// for an example.
253253
self.stack[stack_depth].has_been_used = true;
254254
return if let Some(result) = self.stack[stack_depth].provisional_result {

compiler/rustc_trait_selection/src/traits/query/type_op/ascribe_user_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl<'tcx> super::QueryTypeOp<'tcx> for AscribeUserType<'tcx> {
2626
tcx.type_op_ascribe_user_type(canonicalized)
2727
}
2828

29-
fn perform_locally_in_new_solver(
29+
fn perform_locally_with_next_solver(
3030
ocx: &ObligationCtxt<'_, 'tcx>,
3131
key: ParamEnvAnd<'tcx, Self>,
3232
) -> Result<Self::QueryResponse, NoSolution> {

compiler/rustc_trait_selection/src/traits/query/type_op/eq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl<'tcx> super::QueryTypeOp<'tcx> for Eq<'tcx> {
2323
tcx.type_op_eq(canonicalized)
2424
}
2525

26-
fn perform_locally_in_new_solver(
26+
fn perform_locally_with_next_solver(
2727
ocx: &ObligationCtxt<'_, 'tcx>,
2828
key: ParamEnvAnd<'tcx, Self>,
2929
) -> Result<Self::QueryResponse, NoSolution> {

compiler/rustc_trait_selection/src/traits/query/type_op/implied_outlives_bounds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<'tcx> super::QueryTypeOp<'tcx> for ImpliedOutlivesBounds<'tcx> {
5050
tcx.implied_outlives_bounds(canonicalized)
5151
}
5252

53-
fn perform_locally_in_new_solver(
53+
fn perform_locally_with_next_solver(
5454
ocx: &ObligationCtxt<'_, 'tcx>,
5555
key: ParamEnvAnd<'tcx, Self>,
5656
) -> Result<Self::QueryResponse, NoSolution> {

compiler/rustc_trait_selection/src/traits/query/type_op/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub trait QueryTypeOp<'tcx>: fmt::Debug + Copy + TypeFoldable<TyCtxt<'tcx>> + 't
8989
/// make sure to feed it predefined opaque types and the defining anchor
9090
/// and that would require duplicating all of the tcx queries. Instead,
9191
/// just perform these ops locally.
92-
fn perform_locally_in_new_solver(
92+
fn perform_locally_with_next_solver(
9393
ocx: &ObligationCtxt<'_, 'tcx>,
9494
key: ParamEnvAnd<'tcx, Self>,
9595
) -> Result<Self::QueryResponse, NoSolution>;
@@ -149,7 +149,7 @@ where
149149
if infcx.next_trait_solver() {
150150
return Ok(scrape_region_constraints(
151151
infcx,
152-
|ocx| QueryTypeOp::perform_locally_in_new_solver(ocx, self),
152+
|ocx| QueryTypeOp::perform_locally_with_next_solver(ocx, self),
153153
"query type op",
154154
span,
155155
)?

compiler/rustc_trait_selection/src/traits/query/type_op/normalize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525
T::type_op_method(tcx, canonicalized)
2626
}
2727

28-
fn perform_locally_in_new_solver(
28+
fn perform_locally_with_next_solver(
2929
ocx: &ObligationCtxt<'_, 'tcx>,
3030
key: ParamEnvAnd<'tcx, Self>,
3131
) -> Result<Self::QueryResponse, NoSolution> {

compiler/rustc_trait_selection/src/traits/query/type_op/outlives.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<'tcx> super::QueryTypeOp<'tcx> for DropckOutlives<'tcx> {
4242
tcx.dropck_outlives(canonicalized)
4343
}
4444

45-
fn perform_locally_in_new_solver(
45+
fn perform_locally_with_next_solver(
4646
ocx: &ObligationCtxt<'_, 'tcx>,
4747
key: ParamEnvAnd<'tcx, Self>,
4848
) -> Result<Self::QueryResponse, NoSolution> {

compiler/rustc_trait_selection/src/traits/query/type_op/prove_predicate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<'tcx> super::QueryTypeOp<'tcx> for ProvePredicate<'tcx> {
4040
tcx.type_op_prove_predicate(canonicalized)
4141
}
4242

43-
fn perform_locally_in_new_solver(
43+
fn perform_locally_with_next_solver(
4444
ocx: &ObligationCtxt<'_, 'tcx>,
4545
key: ParamEnvAnd<'tcx, Self>,
4646
) -> Result<Self::QueryResponse, NoSolution> {

compiler/rustc_trait_selection/src/traits/query/type_op/subtype.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl<'tcx> super::QueryTypeOp<'tcx> for Subtype<'tcx> {
2020
tcx.type_op_subtype(canonicalized)
2121
}
2222

23-
fn perform_locally_in_new_solver(
23+
fn perform_locally_with_next_solver(
2424
ocx: &ObligationCtxt<'_, 'tcx>,
2525
key: ParamEnvAnd<'tcx, Self>,
2626
) -> Result<Self::QueryResponse, NoSolution> {

tests/ui/traits/new-solver/tait-eq-proj-2.rs renamed to tests/ui/traits/next-solver/tait-eq-proj-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#![feature(type_alias_impl_trait)]
55

6-
// Similar to tests/ui/traits/new-solver/tait-eq-proj.rs
6+
// Similar to tests/ui/traits/next-solver/tait-eq-proj.rs
77
// but check the alias-sub relation in the other direction.
88

99
type Tait = impl Iterator<Item = impl Sized>;

0 commit comments

Comments
 (0)