Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 11d16c4

Browse files
committed
update use of feature flags
1 parent 5d97ada commit 11d16c4

File tree

218 files changed

+227
-228
lines changed

Some content is hidden

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

218 files changed

+227
-228
lines changed

compiler/rustc_borrowck/src/region_infer/opaque_types.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10031003
reported_errors: Default::default(),
10041004
};
10051005

1006-
// FIXME(-Ztrait-solver=next): A bit dubious that we're only registering
1006+
// 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()) {
10091009
checker.register_predefined_opaques_in_new_solver();

compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/traits/mod.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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.

0 commit comments

Comments
 (0)