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

Commit a035fa1

Browse files
Mark-Simulacrumtgross35
authored andcommitted
step cfg(bootstrap)
1 parent 8223006 commit a035fa1

File tree

33 files changed

+11
-152
lines changed

33 files changed

+11
-152
lines changed

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#![allow(internal_features)]
66
#![allow(rustc::diagnostic_outside_of_impl)]
77
#![allow(rustc::untranslatable_diagnostic)]
8-
#![cfg_attr(bootstrap, feature(lint_reasons))]
98
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
109
#![doc(rust_logo)]
1110
#![feature(assert_matches)]

compiler/rustc_const_eval/src/check_consts/check.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
634634
trace!(
635635
"visit_projection_elem: place_ref={:?} elem={:?} \
636636
context={:?} location={:?}",
637-
place_ref,
638-
elem,
639-
context,
640-
location,
637+
place_ref, elem, context, location,
641638
);
642639

643640
self.super_projection_elem(place_ref, elem, context, location);

compiler/rustc_const_eval/src/interpret/operator.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
329329
) -> InterpResult<'tcx, ImmTy<'tcx, M::Provenance>> {
330330
trace!(
331331
"Running binary op {:?}: {:?} ({}), {:?} ({})",
332-
bin_op,
333-
*left,
334-
left.layout.ty,
335-
*right,
336-
right.layout.ty
332+
bin_op, *left, left.layout.ty, *right, right.layout.ty
337333
);
338334

339335
match left.layout.ty.kind() {

compiler/rustc_const_eval/src/interpret/terminator.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
431431
} else {
432432
trace!(
433433
"check_argument_compat: incompatible ABIs:\ncaller: {:?}\ncallee: {:?}",
434-
caller_abi,
435-
callee_abi
434+
caller_abi, callee_abi
436435
);
437436
return Ok(false);
438437
}

compiler/rustc_data_structures/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![allow(internal_features)]
1111
#![allow(rustc::default_hash_types)]
1212
#![allow(rustc::potential_query_instability)]
13-
#![cfg_attr(bootstrap, feature(lint_reasons))]
1413
#![cfg_attr(not(parallel_compiler), feature(cell_leak))]
1514
#![deny(unsafe_op_in_unsafe_fn)]
1615
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,6 @@ declare_lint! {
617617
/// ### Example
618618
///
619619
/// ```rust
620-
/// #![cfg_attr(bootstrap, feature(lint_reasons))]
621-
///
622620
/// #[expect(unused_variables)]
623621
/// let x = 10;
624622
/// println!("{}", x);

compiler/rustc_parse/src/errors.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,7 @@ pub(crate) enum MissingInInForLoopSub {
555555
code = "in"
556556
)]
557557
InNotOf(#[primary_span] Span),
558-
#[suggestion(
559-
parse_add_in,
560-
style = "verbose",
561-
applicability = "maybe-incorrect",
562-
code = " in "
563-
)]
558+
#[suggestion(parse_add_in, style = "verbose", applicability = "maybe-incorrect", code = " in ")]
564559
AddIn(#[primary_span] Span),
565560
}
566561

compiler/rustc_trait_selection/src/errors.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,10 +1582,7 @@ pub enum TypeErrorAdditionalDiags {
15821582
span: Span,
15831583
code: String,
15841584
},
1585-
#[multipart_suggestion(
1586-
trait_selection_meant_str_literal,
1587-
applicability = "machine-applicable"
1588-
)]
1585+
#[multipart_suggestion(trait_selection_meant_str_literal, applicability = "machine-applicable")]
15891586
MeantStrLiteral {
15901587
#[suggestion_part(code = "\"")]
15911588
start: Span,

compiler/rustc_ty_utils/src/layout.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,7 @@ fn coroutine_saved_local_eligibility(
733733
// point, so it is no longer a candidate.
734734
trace!(
735735
"removing local {:?} in >1 variant ({:?}, {:?})",
736-
local,
737-
variant_index,
738-
idx
736+
local, variant_index, idx
739737
);
740738
ineligible_locals.insert(*local);
741739
assignments[*local] = Ineligible(None);

library/alloc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@
164164
//
165165
// Language features:
166166
// tidy-alphabetical-start
167-
#![cfg_attr(bootstrap, feature(c_unwind))]
168167
#![cfg_attr(not(test), feature(coroutine_trait))]
169168
#![cfg_attr(test, feature(panic_update_hook))]
170169
#![cfg_attr(test, feature(test))]

0 commit comments

Comments
 (0)