Skip to content

Commit 6e32cb0

Browse files
step cfg(bootstrap)
1 parent 9545bd3 commit 6e32cb0

File tree

32 files changed

+10
-148
lines changed

32 files changed

+10
-148
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
@@ -635,10 +635,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
635635
trace!(
636636
"visit_projection_elem: place_ref={:?} elem={:?} \
637637
context={:?} location={:?}",
638-
place_ref,
639-
elem,
640-
context,
641-
location,
638+
place_ref, elem, context, location,
642639
);
643640

644641
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
@@ -331,11 +331,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
331331
) -> InterpResult<'tcx, ImmTy<'tcx, M::Provenance>> {
332332
trace!(
333333
"Running binary op {:?}: {:?} ({}), {:?} ({})",
334-
bin_op,
335-
*left,
336-
left.layout.ty,
337-
*right,
338-
right.layout.ty
334+
bin_op, *left, left.layout.ty, *right, right.layout.ty
339335
);
340336

341337
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
@@ -440,8 +440,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
440440
} else {
441441
trace!(
442442
"check_argument_compat: incompatible ABIs:\ncaller: {:?}\ncallee: {:?}",
443-
caller_abi,
444-
callee_abi
443+
caller_abi, callee_abi
445444
);
446445
return Ok(false);
447446
}

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
@@ -615,8 +615,6 @@ declare_lint! {
615615
/// ### Example
616616
///
617617
/// ```rust
618-
/// #![cfg_attr(bootstrap, feature(lint_reasons))]
619-
///
620618
/// #[expect(unused_variables)]
621619
/// let x = 10;
622620
/// println!("{}", x);

compiler/rustc_parse/src/errors.rs

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

compiler/rustc_trait_selection/src/errors.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,10 +1585,7 @@ pub enum TypeErrorAdditionalDiags {
15851585
span: Span,
15861586
code: String,
15871587
},
1588-
#[multipart_suggestion(
1589-
trait_selection_meant_str_literal,
1590-
applicability = "machine-applicable"
1591-
)]
1588+
#[multipart_suggestion(trait_selection_meant_str_literal, applicability = "machine-applicable")]
15921589
MeantStrLiteral {
15931590
#[suggestion_part(code = "\"")]
15941591
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
@@ -165,7 +165,6 @@
165165
//
166166
// Language features:
167167
// tidy-alphabetical-start
168-
#![cfg_attr(bootstrap, feature(c_unwind))]
169168
#![cfg_attr(not(test), feature(coroutine_trait))]
170169
#![cfg_attr(test, feature(panic_update_hook))]
171170
#![cfg_attr(test, feature(test))]

0 commit comments

Comments
 (0)