Skip to content

Commit e79016e

Browse files
committed
Handle bootstrap cfgs
1 parent 6defd5e commit e79016e

File tree

12 files changed

+6
-23
lines changed

12 files changed

+6
-23
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
@@ -2696,7 +2696,6 @@ declare_lint! {
26962696
///
26972697
/// ```rust,compile_fail
26982698
/// # #![allow(unused)]
2699-
/// # #![cfg_attr(bootstrap, deny(deref_nullptr))]
27002699
/// use std::ptr;
27012700
/// unsafe {
27022701
/// 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
@@ -2363,8 +2363,7 @@ declare_lint! {
23632363
/// [sanitize]: https://doc.rust-lang.org/nightly/unstable-book/language-features/no-sanitize.html
23642364
/// ### Example
23652365
///
2366-
#[cfg_attr(bootstrap, doc = "```ignore")]
2367-
#[cfg_attr(not(bootstrap), doc = "```rust,no_run")]
2366+
/// ```rust,no_run
23682367
/// #![feature(sanitize)]
23692368
///
23702369
/// #[sanitize(realtime = "nonblocking")]
@@ -2373,8 +2372,7 @@ declare_lint! {
23732372
/// fn main() {
23742373
/// x();
23752374
/// }
2376-
#[cfg_attr(bootstrap, doc = "```")]
2377-
#[cfg_attr(not(bootstrap), doc = "```")]
2375+
/// ```
23782376
///
23792377
/// {{produces}}
23802378
///
@@ -4949,8 +4947,7 @@ declare_lint! {
49494947
///
49504948
/// ### Example
49514949
///
4952-
#[cfg_attr(bootstrap, doc = "```ignore")]
4953-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
4950+
/// ```rust,compile_fail
49544951
/// #![feature(supertrait_item_shadowing)]
49554952
/// #![deny(resolving_to_items_shadowing_supertrait_items)]
49564953
///
@@ -4966,8 +4963,7 @@ declare_lint! {
49664963
///
49674964
/// struct MyType;
49684965
/// MyType.hello();
4969-
#[cfg_attr(bootstrap, doc = "```")]
4970-
#[cfg_attr(not(bootstrap), doc = "```")]
4966+
/// ```
49714967
///
49724968
/// {{produces}}
49734969
///
@@ -4993,8 +4989,7 @@ declare_lint! {
49934989
///
49944990
/// ### Example
49954991
///
4996-
#[cfg_attr(bootstrap, doc = "```ignore")]
4997-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
4992+
/// ```rust,compile_fail"
49984993
/// #![feature(supertrait_item_shadowing)]
49994994
/// #![deny(shadowing_supertrait_items)]
50004995
///
@@ -5007,8 +5002,7 @@ declare_lint! {
50075002
/// fn hello(&self) {}
50085003
/// }
50095004
/// impl<T> Downstream for T {}
5010-
#[cfg_attr(bootstrap, doc = "```")]
5011-
#[cfg_attr(not(bootstrap), doc = "```")]
5005+
/// ```
50125006
///
50135007
/// {{produces}}
50145008
///

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/clippy/clippy_lints/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(array_windows))]
21
#![feature(box_patterns)]
32
#![feature(macro_metavar_expr_concat)]
43
#![feature(f128)]

0 commit comments

Comments
 (0)