Skip to content

Commit 866132a

Browse files
Apply cfg(bootstrap) replacement
1 parent d67cd00 commit 866132a

File tree

10 files changed

+5
-26
lines changed

10 files changed

+5
-26
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 & 6 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() {
@@ -4832,15 +4832,13 @@ declare_lint! {
48324832
///
48334833
/// ### Example
48344834
///
4835-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
4836-
#[cfg_attr(bootstrap, doc = "```rust")]
4835+
#[doc = "```rust,compile_fail"]
48374836
/// #![doc = in_root!()]
48384837
///
48394838
/// macro_rules! in_root { () => { "" } }
48404839
///
48414840
/// fn main() {}
4842-
#[cfg_attr(not(bootstrap), doc = "```")]
4843-
#[cfg_attr(bootstrap, doc = "```")]
4841+
#[doc = "```"]
48444842
// ^ Needed to avoid tidy warning about odd number of backticks
48454843
///
48464844
/// {{produces}}

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: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ pub struct Finder {
3232
// it might not yet be included in stage0. In such cases, we handle the targets missing from stage0 in this list.
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).
35-
const STAGE0_MISSING_TARGETS: &[&str] = &[
36-
"armv7a-vex-v5",
37-
"riscv64a23-unknown-linux-gnu",
38-
// just a dummy comment so the list doesn't get onelined
39-
"aarch64_be-unknown-hermit",
40-
"aarch64_be-unknown-none-softfloat",
41-
];
35+
const STAGE0_MISSING_TARGETS: &[&str] = &[];
4236

4337
/// Minimum version threshold for libstdc++ required when using prebuilt LLVM
4438
/// from CI (with`llvm.download-ci-llvm` option).

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)