Skip to content

Commit aea630b

Browse files
committed
update use of feature flags
1 parent e385dfc commit aea630b

File tree

216 files changed

+225
-226
lines changed

Some content is hidden

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

216 files changed

+225
-226
lines changed

compiler/rustc_borrowck/src/region_infer/opaque_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ fn check_opaque_type_well_formed<'tcx>(
315315
parent_def_id = tcx.local_parent(parent_def_id);
316316
}
317317

318-
// FIXME(-Ztrait-solver=next): We probably should use `DefiningAnchor::Error`
318+
// FIXME(-Znext-solver): We probably should use `DefiningAnchor::Error`
319319
// and prepopulate this `InferCtxt` with known opaque values, rather than
320320
// using the `Bind` anchor here. For now it's fine.
321321
let infcx = tcx

compiler/rustc_borrowck/src/type_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10041004
reported_errors: Default::default(),
10051005
};
10061006

1007-
// FIXME(-Ztrait-solver=next): A bit dubious that we're only registering
1007+
// FIXME(-Znext-solver): A bit dubious that we're only registering
10081008
// predefined opaques in the typeck root.
10091009
if infcx.next_trait_solver() && !infcx.tcx.is_typeck_child(body.source.def_id()) {
10101010
checker.register_predefined_opaques_in_new_solver();

compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copied from https://github.com/rust-lang/rust/blob/46455dc65069387f2dc46612f13fd45452ab301a/tests/ui/coroutine/gen_block_iterate.rs
22
// revisions: next old
33
//compile-flags: --edition 2024 -Zunstable-options
4-
//[next] compile-flags: -Ztrait-solver=next
4+
//[next] compile-flags: -Znext-solver
55
// run-pass
66
#![feature(gen_blocks)]
77

compiler/rustc_hir_analysis/src/check/compare_impl_item.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ fn compare_method_predicate_entailment<'tcx>(
320320
if check_implied_wf == CheckImpliedWfMode::Check && !(impl_sig, trait_sig).references_error() {
321321
// Select obligations to make progress on inference before processing
322322
// the wf obligation below.
323-
// FIXME(-Ztrait-solver=next): Not needed when the hack below is removed.
323+
// FIXME(-Znext-solver): Not needed when the hack below is removed.
324324
let errors = ocx.select_where_possible();
325325
if !errors.is_empty() {
326326
let reported = infcx.err_ctxt().report_fulfillment_errors(errors);
@@ -333,7 +333,7 @@ fn compare_method_predicate_entailment<'tcx>(
333333
// trigger the lint. Instead, let's only consider type outlives and
334334
// region outlives obligations.
335335
//
336-
// FIXME(-Ztrait-solver=next): Try removing this hack again once
336+
// FIXME(-Znext-solver): Try removing this hack again once
337337
// the new solver is stable.
338338
let mut wf_args: smallvec::SmallVec<[_; 4]> =
339339
unnormalized_impl_sig.inputs_and_output.iter().map(|ty| ty.into()).collect();

compiler/rustc_hir_typeck/src/coercion.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
10191019
/// Returns false if the coercion creates any obligations that result in
10201020
/// errors.
10211021
pub fn can_coerce(&self, expr_ty: Ty<'tcx>, target: Ty<'tcx>) -> bool {
1022-
// FIXME(-Ztrait-solver=next): We need to structurally resolve both types here.
1022+
// FIXME(-Znext-solver): We need to structurally resolve both types here.
10231023
let source = self.resolve_vars_with_obligations(expr_ty);
10241024
debug!("coercion::can_with_predicates({:?} -> {:?})", source, target);
10251025

compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
8383
/// version (resolve_vars_if_possible), this version will
8484
/// also select obligations if it seems useful, in an effort
8585
/// to get more type information.
86-
// FIXME(-Ztrait-solver=next): A lot of the calls to this method should
86+
// FIXME(-Znext-solver): A lot of the calls to this method should
8787
// probably be `try_structurally_resolve_type` or `structurally_resolve_type` instead.
8888
#[instrument(skip(self), level = "debug", ret)]
8989
pub(in super::super) fn resolve_vars_with_obligations(&self, mut ty: Ty<'tcx>) -> Ty<'tcx> {

compiler/rustc_infer/src/infer/canonical/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<'tcx> InferCtxt<'tcx> {
101101
/// variable, then you'll get a new inference variable; if it is a
102102
/// universally quantified variable, you get a placeholder.
103103
///
104-
/// FIXME(-Ztrait-solver=next): This is public because it's used by the
104+
/// FIXME(-Znext-solver): This is public because it's used by the
105105
/// new trait solver which has a different canonicalization routine.
106106
/// We should somehow deduplicate all of this.
107107
pub fn instantiate_canonical_var(

compiler/rustc_infer/src/infer/canonical/substitute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustc_middle::ty::fold::{FnMutDelegate, TypeFoldable};
1111
use rustc_middle::ty::GenericArgKind;
1212
use rustc_middle::ty::{self, TyCtxt};
1313

14-
/// FIXME(-Ztrait-solver=next): This or public because it is shared with the
14+
/// FIXME(-Znext-solver): This or public because it is shared with the
1515
/// new trait solver implementation. We should deduplicate canonicalization.
1616
pub trait CanonicalExt<'tcx, V> {
1717
/// Instantiate the wrapped value, replacing each canonical value

compiler/rustc_infer/src/infer/combine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ impl<'infcx, 'tcx> CombineFields<'infcx, 'tcx> {
491491
// the alias can be normalized to something which does not
492492
// mention `?0`.
493493

494-
// FIXME(-Ztrait-solver=next): replace this with `AliasRelate`
494+
// FIXME(-Znext-solver): replace this with `AliasRelate`
495495
let &ty::Alias(kind, data) = a_ty.kind() else {
496496
bug!("generalization should only result in infer vars for aliases");
497497
};

compiler/rustc_infer/src/traits/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub enum FulfillmentErrorCode<'tcx> {
135135
CodeSubtypeError(ExpectedFound<Ty<'tcx>>, TypeError<'tcx>), // always comes from a SubtypePredicate
136136
CodeConstEquateError(ExpectedFound<Const<'tcx>>, TypeError<'tcx>),
137137
CodeAmbiguity {
138-
/// Overflow reported from the new solver `-Ztrait-solver=next`, which will
138+
/// Overflow reported from the new solver `-Znext-solver`, which will
139139
/// be reported as an regular error as opposed to a fatal error.
140140
overflow: bool,
141141
},

compiler/rustc_middle/src/traits/solve/cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_data_structures::sync::Lock;
55
use rustc_query_system::cache::WithDepNode;
66
use rustc_query_system::dep_graph::DepNodeIndex;
77
use rustc_session::Limit;
8-
/// The trait solver cache used by `-Ztrait-solver=next`.
8+
/// The trait solver cache used by `-Znext-solver`.
99
///
1010
/// FIXME(@lcnr): link to some official documentation of how
1111
/// this works.

compiler/rustc_middle/src/ty/fast_reject.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub enum TreatParams {
6262
///
6363
/// N.B. during deep rejection, this acts identically to `ForLookup`.
6464
///
65-
/// FIXME(-Ztrait-solver=next): Remove this variant and cleanup
65+
/// FIXME(-Znext-solver): Remove this variant and cleanup
6666
/// the code.
6767
NextSolverLookup,
6868
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
422422
self.compute_const_evaluatable_goal(Goal { param_env, predicate: ct })
423423
}
424424
ty::PredicateKind::ConstEquate(_, _) => {
425-
bug!("ConstEquate should not be emitted when `-Ztrait-solver=next` is active")
425+
bug!("ConstEquate should not be emitted when `-Znext-solver` is active")
426426
}
427427
ty::PredicateKind::AliasRelate(lhs, rhs, direction) => self
428428
.compute_alias_relate_goal(Goal {

compiler/rustc_trait_selection/src/solve/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! The next-generation trait solver, currently still WIP.
22
//!
3-
//! As a user of rust, you can use `-Ztrait-solver=next` or `next-coherence`
4-
//! to enable the new trait solver always, or just within coherence, respectively.
3+
//! As a user of rust, you can use `-Znext-solver` to enable the new trait solver.
54
//!
65
//! As a developer of rustc, you shouldn't be using the new trait
76
//! solver without asking the trait-system-refactor-initiative, but it can
@@ -249,7 +248,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
249248
return None;
250249
}
251250

252-
// FIXME(-Ztrait-solver=next): We should instead try to find a `Certainty::Yes` response with
251+
// FIXME(-Znext-solver): We should instead try to find a `Certainty::Yes` response with
253252
// a subset of the constraints that all the other responses have.
254253
let one = responses[0];
255254
if responses[1..].iter().all(|&resp| resp == one) {

compiler/rustc_trait_selection/src/solve/trait_goals.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl<'tcx> assembly::GoalKind<'tcx> for TraitPredicate<'tcx> {
421421
return Err(NoSolution);
422422
}
423423

424-
// FIXME(-Ztrait-solver=next): Implement this when we get const working in the new solver
424+
// FIXME(-Znext-solver): Implement this when we get const working in the new solver
425425

426426
// `Destruct` is automatically implemented for every type in
427427
// non-const environments.

compiler/rustc_trait_selection/src/traits/coherence.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ where
855855
}
856856

857857
fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
858-
// Need to lazily normalize here in with `-Ztrait-solver=next-coherence`.
858+
// Need to lazily normalize here in with `-Znext-solver=coherence`.
859859
let ty = match (self.lazily_normalize_ty)(ty) {
860860
Ok(ty) => ty,
861861
Err(err) => return ControlFlow::Break(OrphanCheckEarlyExit::NormalizationFailure(err)),
@@ -1069,7 +1069,7 @@ impl<'a, 'tcx> ProofTreeVisitor<'tcx> for AmbiguityCausesVisitor<'a, 'tcx> {
10691069
let lazily_normalize_ty = |ty: Ty<'tcx>| {
10701070
let mut fulfill_cx = <dyn TraitEngine<'tcx>>::new(infcx);
10711071
if matches!(ty.kind(), ty::Alias(..)) {
1072-
// FIXME(-Ztrait-solver=next-coherence): we currently don't
1072+
// FIXME(-Znext-solver=coherence): we currently don't
10731073
// normalize opaque types here, resulting in diverging behavior
10741074
// for TAITs.
10751075
match infcx

compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
16621662
)
16631663
.into(),
16641664
};
1665-
// FIXME(-Ztrait-solver=next): For diagnostic purposes, it would be nice
1665+
// FIXME(-Znext-solver): For diagnostic purposes, it would be nice
16661666
// to deeply normalize this type.
16671667
let normalized_term =
16681668
ocx.normalize(&obligation.cause, obligation.param_env, unnormalized_term);

compiler/rustc_trait_selection/src/traits/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub fn normalize_param_env_or_error<'tcx>(
315315
// We do not normalize types here as there is no backwards compatibility requirement
316316
// for us to do so.
317317
//
318-
// FIXME(-Ztrait-solver=next): remove this hack since we have deferred projection equality
318+
// FIXME(-Znext-solver): remove this hack since we have deferred projection equality
319319
predicate.fold_with(&mut ConstNormalizer(tcx))
320320
}),
321321
)
@@ -386,7 +386,7 @@ pub fn normalize_param_env_or_error<'tcx>(
386386

387387
/// Normalize a type and process all resulting obligations, returning any errors.
388388
///
389-
/// FIXME(-Ztrait-solver=next): This should be replaced by `At::deeply_normalize`
389+
/// FIXME(-Znext-solver): This should be replaced by `At::deeply_normalize`
390390
/// which has the same behavior with the new solver. Because using a separate
391391
/// fulfillment context worsens caching in the old solver, `At::deeply_normalize`
392392
/// is still lazy with the old solver as it otherwise negatively impacts perf.

compiler/rustc_trait_selection/src/traits/project.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub trait NormalizeExt<'tcx> {
6767
/// same goals in both a temporary and the shared context which negatively impacts
6868
/// performance as these don't share caching.
6969
///
70-
/// FIXME(-Ztrait-solver=next): This has the same behavior as `traits::fully_normalize`
70+
/// FIXME(-Znext-solver): This has the same behavior as `traits::fully_normalize`
7171
/// in the new solver, but because of performance reasons, we currently reuse an
7272
/// existing fulfillment context in the old solver. Once we also eagerly prove goals with
7373
/// the old solver or have removed the old solver, remove `traits::fully_normalize` and

compiler/rustc_trait_selection/src/traits/query/evaluate_obligation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
7272
let mut fulfill_cx = crate::solve::FulfillmentCtxt::new(self);
7373
fulfill_cx.register_predicate_obligation(self, obligation.clone());
7474
// True errors
75-
// FIXME(-Ztrait-solver=next): Overflows are reported as ambig here, is that OK?
75+
// FIXME(-Znext-solver): Overflows are reported as ambig here, is that OK?
7676
if !fulfill_cx.select_where_possible(self).is_empty() {
7777
Ok(EvaluationResult::EvaluatedToErr)
7878
} else if !fulfill_cx.select_all_or_error(self).is_empty() {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ where
2929
ocx: &ObligationCtxt<'_, 'tcx>,
3030
key: ParamEnvAnd<'tcx, Self>,
3131
) -> Result<Self::QueryResponse, NoSolution> {
32-
// FIXME(-Ztrait-solver=next): shouldn't be using old normalizer
32+
// FIXME(-Znext-solver): shouldn't be using old normalizer
3333
Ok(ocx.normalize(&ObligationCause::dummy(), key.param_env, key.value.value))
3434
}
3535
}

compiler/rustc_trait_selection/src/traits/structural_normalize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl<'tcx> StructurallyNormalizeExt<'tcx> for At<'_, 'tcx> {
2222
assert!(!ty.is_ty_var(), "should have resolved vars before calling");
2323

2424
if self.infcx.next_trait_solver() {
25-
// FIXME(-Ztrait-solver=next): correctly handle
25+
// FIXME(-Znext-solver): correctly handle
2626
// overflow here.
2727
for _ in 0..256 {
2828
let ty::Alias(ty::Projection | ty::Inherent | ty::Weak, projection_ty) = *ty.kind()

src/tools/compiletest/src/runtest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2543,10 +2543,10 @@ impl<'test> TestCx<'test> {
25432543
rustc.args(&["-Zpolonius"]);
25442544
}
25452545
Some(CompareMode::NextSolver) => {
2546-
rustc.args(&["-Ztrait-solver=next"]);
2546+
rustc.args(&["-Znext-solver"]);
25472547
}
25482548
Some(CompareMode::NextSolverCoherence) => {
2549-
rustc.args(&["-Ztrait-solver=next-coherence"]);
2549+
rustc.args(&["-Znext-solver=coherence"]);
25502550
}
25512551
Some(CompareMode::SplitDwarf) if self.config.target.contains("windows") => {
25522552
rustc.args(&["-Csplit-debuginfo=unpacked", "-Zunstable-options"]);

tests/ui/associated-inherent-types/inference.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Testing inference capabilities.
22
// check-pass
33
// revisions: current next
4-
//[next] compile-flags: -Ztrait-solver=next
4+
//[next] compile-flags: -Znext-solver
55

66
#![feature(inherent_associated_types)]
77
#![allow(incomplete_features)]

tests/ui/async-await/normalize-output-in-signature-deduction.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// edition:2021
22
// revisions: current next
3-
//[next] compile-flags: -Ztrait-solver=next
3+
//[next] compile-flags: -Znext-solver
44
// check-pass
55

66
#![feature(type_alias_impl_trait)]

tests/ui/async-await/return-type-notation/normalizing-self-auto-trait-issue-109924.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// revisions: current next
22
//[current] known-bug: #109924
33
//[next] check-pass
4-
//[next] compile-flags: -Ztrait-solver=next
4+
//[next] compile-flags: -Znext-solver
55
// edition:2021
66

77
#![feature(return_type_notation)]

tests/ui/auto-traits/issue-23080-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: current next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
#![feature(auto_traits)]
55
#![feature(negative_impls)]

tests/ui/closures/infer-signature-from-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: current next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33
//[next] known-bug: trait-system-refactor-initiative#71
44
//[current] check-pass
55

tests/ui/coherence/coherence-overlap-downstream-inherent.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
// Tests that we consider `T: Sugar + Fruit` to be ambiguous, even
55
// though no impls are found.

tests/ui/coherence/coherence-overlap-downstream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
// Tests that we consider `T: Sugar + Fruit` to be ambiguous, even
55
// though no impls are found.

tests/ui/coherence/coherence-overlap-issue-23516-inherent.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
// Tests that we consider `Box<U>: !Sugar` to be ambiguous, even
55
// though we see no impl of `Sugar` for `Box`. Therefore, an overlap

tests/ui/coherence/coherence-overlap-issue-23516.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
// Tests that we consider `Box<U>: !Sugar` to be ambiguous, even
55
// though we see no impl of `Sugar` for `Box`. Therefore, an overlap

tests/ui/coherence/inter-crate-ambiguity-causes-notes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
struct S;
55

tests/ui/coherence/normalize-for-errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: current next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
struct MyType;
55
trait MyTrait<S> {}

tests/ui/coherence/occurs-check/associated-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
// A regression test for #105787
55

tests/ui/coherence/occurs-check/opaques.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
// A regression test for #105787
55

tests/ui/coinduction/canonicalization-rerun.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// check-pass
22
// revisions: old next
3-
//[next] compile-flags: -Ztrait-solver=next
3+
//[next] compile-flags: -Znext-solver
44

55
// If we use canonical goals during trait solving we have to reevaluate
66
// the root goal of a cycle until we hit a fixpoint.

tests/ui/const-generics/defaults/default-param-wf-concrete.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: old next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33

44
struct Foo<const N: u8 = { 255 + 1 }>;
55
//~^ ERROR evaluation of constant value failed

tests/ui/consts/const-len-underflow-separate-spans.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// overall context for what caused the evaluation.
44

55
// revisions: old next
6-
//[next] compile-flags: -Ztrait-solver=next
6+
//[next] compile-flags: -Znext-solver
77

88
const ONE: usize = 1;
99
const TWO: usize = 2;

tests/ui/coroutine/clone-rpit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: current next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33
// check-pass
44

55
#![feature(coroutines, coroutine_trait, coroutine_clone)]

tests/ui/coroutine/gen_block_is_iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// revisions: next old
22
//compile-flags: --edition 2024 -Zunstable-options
3-
//[next] compile-flags: -Ztrait-solver=next
3+
//[next] compile-flags: -Znext-solver
44
// check-pass
55
#![feature(gen_blocks)]
66

tests/ui/coroutine/gen_block_iterate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// revisions: next old
22
//compile-flags: --edition 2024 -Zunstable-options
3-
//[next] compile-flags: -Ztrait-solver=next
3+
//[next] compile-flags: -Znext-solver
44
// run-pass
55
#![feature(gen_blocks)]
66

tests/ui/coroutine/non-static-is-unpin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// revisions: current next
2-
//[next] compile-flags: -Ztrait-solver=next
2+
//[next] compile-flags: -Znext-solver
33
// run-pass
44

55
#![feature(coroutines, coroutine_trait)]

0 commit comments

Comments
 (0)