Skip to content

Commit 201f299

Browse files
Apply cfg(bootstrap) replacement
1 parent 4e9716f commit 201f299

File tree

13 files changed

+8
-38
lines changed

13 files changed

+8
-38
lines changed

compiler/rustc_const_eval/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
33
#![allow(rustc::diagnostic_outside_of_impl)]
4-
#![cfg_attr(bootstrap, feature(strict_overflow_ops))]
54
#![doc(rust_logo)]
65
#![feature(array_try_map)]
76
#![feature(assert_matches)]

compiler/rustc_index/src/idx.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ impl<I: Idx, T> IntoSliceIdx<I, [T]> for core::range::RangeFrom<I> {
130130
impl<I: Idx, T> IntoSliceIdx<I, [T]> for core::range::RangeInclusive<I> {
131131
type Output = core::range::RangeInclusive<usize>;
132132
#[inline]
133-
#[cfg(bootstrap)]
134-
fn into_slice_idx(self) -> Self::Output {
135-
core::range::RangeInclusive { start: self.start.index(), end: self.end.index() }
136-
}
137-
#[inline]
138-
#[cfg(not(bootstrap))]
139133
fn into_slice_idx(self) -> Self::Output {
140134
core::range::RangeInclusive { start: self.start.index(), last: self.last.index() }
141135
}

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,10 +2309,10 @@ declare_lint! {
23092309
/// ### Example
23102310
///
23112311
/// ```rust
2312-
/// #![cfg_attr(not(bootstrap), feature(sanitize))]
2312+
/// #![feature(sanitize)]
23132313
///
23142314
/// #[inline(always)]
2315-
/// #[cfg_attr(not(bootstrap), sanitize(address = "off"))]
2315+
/// #[sanitize(address = "off")]
23162316
/// fn x() {}
23172317
///
23182318
/// fn main() {
@@ -4837,16 +4837,13 @@ declare_lint! {
48374837
///
48384838
/// ### Example
48394839
///
4840-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
4841-
#[cfg_attr(bootstrap, doc = "```rust")]
4840+
/// ```rust,compile_fail
48424841
/// #![doc = in_root!()]
48434842
///
48444843
/// macro_rules! in_root { () => { "" } }
48454844
///
48464845
/// fn main() {}
4847-
#[cfg_attr(not(bootstrap), doc = "```")]
4848-
#[cfg_attr(bootstrap, doc = "```")]
4849-
// ^ Needed to avoid tidy warning about odd number of backticks
4846+
/// ```
48504847
///
48514848
/// {{produces}}
48524849
///

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![allow(rustc::diagnostic_outside_of_impl)]
3030
#![allow(rustc::direct_use_of_rustc_type_ir)]
3131
#![allow(rustc::untranslatable_diagnostic)]
32-
#![cfg_attr(bootstrap, feature(round_char_boundary))]
3332
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
3433
#![doc(rust_logo)]
3534
#![feature(allocator_api)]

compiler/rustc_span/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
1818
// tidy-alphabetical-start
1919
#![allow(internal_features)]
20-
#![cfg_attr(bootstrap, feature(round_char_boundary))]
2120
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2221
#![doc(rust_logo)]
2322
#![feature(array_windows)]

src/bootstrap/src/core/sanity.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ pub struct Finder {
3333
//
3434
// Targets can be removed from this list once they are present in the stage0 compiler (usually by updating the beta compiler of the bootstrap).
3535
const STAGE0_MISSING_TARGETS: &[&str] = &[
36-
"armv7a-vex-v5",
37-
"riscv64a23-unknown-linux-gnu",
3836
// just a dummy comment so the list doesn't get onelined
39-
"aarch64_be-unknown-hermit",
40-
"aarch64_be-unknown-none-softfloat",
4137
"x86_64-unknown-motor",
4238
];
4339

src/librustdoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// tidy-alphabetical-start
2-
#![cfg_attr(bootstrap, feature(round_char_boundary))]
32
#![doc(
43
html_root_url = "https://doc.rust-lang.org/nightly/",
54
html_playground_url = "https://play.rust-lang.org/"

src/tools/clippy/clippy_lints/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![feature(iter_intersperse)]
88
#![feature(iter_partition_in_place)]
99
#![feature(never_type)]
10-
#![cfg_attr(bootstrap, feature(round_char_boundary))]
1110
#![feature(rustc_private)]
1211
#![feature(stmt_expr_attributes)]
1312
#![feature(unwrap_infallible)]

src/tools/clippy/tests/missing-test-files.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![warn(rust_2018_idioms, unused_lifetimes)]
22
#![allow(clippy::assertions_on_constants)]
3-
#![cfg_attr(bootstrap, feature(path_file_prefix))]
43

54
use std::cmp::Ordering;
65
use std::ffi::OsStr;

src/tools/miri/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![cfg_attr(bootstrap, feature(strict_overflow_ops))]
21
#![feature(abort_unwind)]
32
#![feature(cfg_select)]
43
#![feature(rustc_private)]

0 commit comments

Comments
 (0)