Skip to content

Commit 8541446

Browse files
BoxyUwUcuviper
authored andcommitted
Handle bootstrap cfgs
1 parent b027d4f commit 8541446

File tree

10 files changed

+6
-21
lines changed

10 files changed

+6
-21
lines changed

compiler/rustc_arena/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
// tidy-alphabetical-start
1111
#![allow(clippy::mut_from_ref)] // Arena allocators are one place where this pattern is fine.
1212
#![allow(internal_features)]
13-
#![cfg_attr(bootstrap, feature(maybe_uninit_slice))]
1413
#![cfg_attr(test, feature(test))]
1514
#![deny(unsafe_op_in_unsafe_fn)]
1615
#![doc(test(no_crate_inject, attr(deny(warnings), allow(internal_features))))]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! This API is completely unstable and subject to change.
66
77
// tidy-alphabetical-start
8-
#![cfg_attr(bootstrap, feature(slice_as_array))]
98
#![feature(assert_matches)]
109
#![feature(extern_types)]
1110
#![feature(file_buffered)]

compiler/rustc_hir/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
44
55
// tidy-alphabetical-start
6-
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
76
#![feature(associated_type_defaults)]
87
#![feature(closure_track_caller)]
98
#![feature(const_default)]

compiler/rustc_hir_analysis/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ This API is completely unstable and subject to change.
5858
// tidy-alphabetical-start
5959
#![allow(rustc::diagnostic_outside_of_impl)]
6060
#![allow(rustc::untranslatable_diagnostic)]
61-
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
6261
#![feature(assert_matches)]
6362
#![feature(gen_blocks)]
6463
#![feature(if_let_guard)]

compiler/rustc_lint/src/builtin.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,6 @@ declare_lint! {
26832683
///
26842684
/// ```rust,compile_fail
26852685
/// # #![allow(unused)]
2686-
/// # #![cfg_attr(bootstrap, deny(deref_nullptr))]
26872686
/// use std::ptr;
26882687
/// unsafe {
26892688
/// let x = &*ptr::null::<i32>();

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,8 +2346,7 @@ declare_lint! {
23462346
/// [sanitize]: https://doc.rust-lang.org/nightly/unstable-book/language-features/no-sanitize.html
23472347
/// ### Example
23482348
///
2349-
#[cfg_attr(bootstrap, doc = "```ignore")]
2350-
#[cfg_attr(not(bootstrap), doc = "```rust,no_run")]
2349+
/// ```rust,no_run
23512350
/// #![feature(sanitize)]
23522351
///
23532352
/// #[sanitize(realtime = "nonblocking")]
@@ -2356,8 +2355,7 @@ declare_lint! {
23562355
/// fn main() {
23572356
/// x();
23582357
/// }
2359-
#[cfg_attr(bootstrap, doc = "```")]
2360-
#[cfg_attr(not(bootstrap), doc = "```")]
2358+
/// ```
23612359
///
23622360
/// {{produces}}
23632361
///
@@ -4907,8 +4905,7 @@ declare_lint! {
49074905
///
49084906
/// ### Example
49094907
///
4910-
#[cfg_attr(bootstrap, doc = "```ignore")]
4911-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
4908+
/// ```rust,compile_fail
49124909
/// #![feature(supertrait_item_shadowing)]
49134910
/// #![deny(resolving_to_items_shadowing_supertrait_items)]
49144911
///
@@ -4924,8 +4921,7 @@ declare_lint! {
49244921
///
49254922
/// struct MyType;
49264923
/// MyType.hello();
4927-
#[cfg_attr(bootstrap, doc = "```")]
4928-
#[cfg_attr(not(bootstrap), doc = "```")]
4924+
/// ```
49294925
///
49304926
/// {{produces}}
49314927
///
@@ -4951,8 +4947,7 @@ declare_lint! {
49514947
///
49524948
/// ### Example
49534949
///
4954-
#[cfg_attr(bootstrap, doc = "```ignore")]
4955-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
4950+
/// ```rust,compile_fail"
49564951
/// #![feature(supertrait_item_shadowing)]
49574952
/// #![deny(shadowing_supertrait_items)]
49584953
///
@@ -4965,8 +4960,7 @@ declare_lint! {
49654960
/// fn hello(&self) {}
49664961
/// }
49674962
/// impl<T> Downstream for T {}
4968-
#[cfg_attr(bootstrap, doc = "```")]
4969-
#[cfg_attr(not(bootstrap), doc = "```")]
4963+
/// ```
49704964
///
49714965
/// {{produces}}
49724966
///

compiler/rustc_target/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//! LLVM.
99
1010
// tidy-alphabetical-start
11-
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
1211
#![expect(internal_features)]
1312
#![feature(iter_intersperse)]
1413
#![feature(rustc_attrs)]

library/proc_macro/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#![feature(staged_api)]
2323
#![feature(allow_internal_unstable)]
2424
#![feature(decl_macro)]
25-
#![cfg_attr(bootstrap, feature(maybe_uninit_write_slice))]
2625
#![feature(negative_impls)]
2726
#![feature(panic_can_unwind)]
2827
#![feature(restricted_std)]

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(debug_closure_helpers))]
32
#![doc(
43
html_root_url = "https://doc.rust-lang.org/nightly/",
54
html_playground_url = "https://play.rust-lang.org/"

src/tools/miri/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#![feature(derive_coerce_pointee)]
1818
#![feature(arbitrary_self_types)]
1919
#![feature(iter_advance_by)]
20-
#![cfg_attr(bootstrap, feature(duration_from_nanos_u128))]
2120
// Configure clippy and other lints
2221
#![allow(
2322
clippy::collapsible_else_if,

0 commit comments

Comments
 (0)