Skip to content

Commit f955e95

Browse files
Bump cfg(bootstrap)s
1 parent 1d49046 commit f955e95

File tree

62 files changed

+154
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+154
-190
lines changed

compiler/rustc_abi/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![cfg_attr(feature = "nightly", feature(step_trait))]
22
#![cfg_attr(feature = "nightly", allow(internal_features))]
3-
#![cfg_attr(all(not(bootstrap), feature = "nightly"), doc(rust_logo))]
4-
#![cfg_attr(all(not(bootstrap), feature = "nightly"), feature(rustdoc_internals))]
3+
#![cfg_attr(feature = "nightly", doc(rust_logo))]
4+
#![cfg_attr(feature = "nightly", feature(rustdoc_internals))]
55

66
use std::fmt;
77
use std::num::{NonZeroUsize, ParseIntError};

compiler/rustc_arena/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
1212
test(no_crate_inject, attr(deny(warnings)))
1313
)]
14-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
15-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
14+
#![doc(rust_logo)]
15+
#![feature(rustdoc_internals)]
1616
#![feature(core_intrinsics)]
1717
#![feature(dropck_eyepatch)]
1818
#![feature(new_uninit)]

compiler/rustc_ast/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
99
test(attr(deny(warnings)))
1010
)]
11-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
12-
#![cfg_attr(not(bootstrap), allow(internal_features))]
13-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
11+
#![doc(rust_logo)]
12+
#![allow(internal_features)]
13+
#![feature(rustdoc_internals)]
1414
#![feature(associated_type_bounds)]
1515
#![feature(box_patterns)]
1616
#![feature(const_trait_impl)]

compiler/rustc_ast_lowering/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
//! get confused if the spans from leaf AST nodes occur in multiple places
3131
//! in the HIR, especially for multiple identifiers.
3232
33-
#![cfg_attr(not(bootstrap), allow(internal_features))]
34-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
35-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
33+
#![allow(internal_features)]
34+
#![feature(rustdoc_internals)]
35+
#![doc(rust_logo)]
3636
#![feature(box_patterns)]
3737
#![feature(let_chains)]
3838
#![feature(never_type)]

compiler/rustc_ast_passes/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//!
55
//! The crate also contains other misc AST visitors, e.g. `node_count` and `show_span`.
66
7-
#![cfg_attr(not(bootstrap), allow(internal_features))]
8-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
9-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
7+
#![allow(internal_features)]
8+
#![doc(rust_logo)]
9+
#![feature(rustdoc_internals)]
1010
#![feature(box_patterns)]
1111
#![feature(if_let_guard)]
1212
#![feature(iter_is_partitioned)]

compiler/rustc_ast_pretty/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#![cfg_attr(not(bootstrap), allow(internal_features))]
2-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
3-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
1+
#![allow(internal_features)]
2+
#![feature(rustdoc_internals)]
3+
#![doc(rust_logo)]
44
#![deny(rustc::untranslatable_diagnostic)]
55
#![deny(rustc::diagnostic_outside_of_impl)]
66
#![feature(associated_type_bounds)]

compiler/rustc_attr/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//! The goal is to move the definition of `MetaItem` and things that don't need to be in `syntax`
55
//! to this crate.
66
7-
#![cfg_attr(not(bootstrap), allow(internal_features))]
8-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
9-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
7+
#![allow(internal_features)]
8+
#![feature(rustdoc_internals)]
9+
#![doc(rust_logo)]
1010
#![feature(let_chains)]
1111
#![deny(rustc::untranslatable_diagnostic)]
1212
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_baked_icu_data/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
//! --cldr-tag latest --icuexport-tag latest -o src/data
2121
//! ```
2222
23-
#![cfg_attr(not(bootstrap), allow(internal_features))]
24-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
25-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
23+
#![allow(internal_features)]
24+
#![feature(rustdoc_internals)]
25+
#![doc(rust_logo)]
2626
#![allow(elided_lifetimes_in_paths)]
2727

2828
mod data {

compiler/rustc_borrowck/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! This query borrow-checks the MIR to (further) ensure it is not broken.
22
33
#![allow(internal_features)]
4-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
5-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
4+
#![feature(rustdoc_internals)]
5+
#![doc(rust_logo)]
66
#![feature(associated_type_bounds)]
77
#![feature(box_patterns)]
88
#![feature(let_chains)]

compiler/rustc_builtin_macros/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! This crate contains implementations of built-in macros and other code generating facilities
22
//! injecting code into the crate before it is lowered to HIR.
33
4-
#![cfg_attr(not(bootstrap), allow(internal_features))]
5-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
6-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
4+
#![allow(internal_features)]
5+
#![feature(rustdoc_internals)]
6+
#![doc(rust_logo)]
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
88
#![feature(array_windows)]
99
#![feature(box_patterns)]

compiler/rustc_codegen_gcc/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* TODO(antoyo): remove the patches.
1313
*/
1414

15-
#![cfg_attr(not(bootstrap), allow(internal_features))]
16-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
17-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
15+
#![allow(internal_features)]
16+
#![doc(rust_logo)]
17+
#![feature(rustdoc_internals)]
1818
#![feature(
1919
rustc_private,
2020
decl_macro,

compiler/rustc_codegen_llvm/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//!
55
//! This API is completely unstable and subject to change.
66
7-
#![cfg_attr(not(bootstrap), allow(internal_features))]
8-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
9-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
7+
#![allow(internal_features)]
8+
#![feature(rustdoc_internals)]
9+
#![doc(rust_logo)]
1010
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1111
#![feature(exact_size_is_empty)]
1212
#![feature(extern_types)]

compiler/rustc_codegen_ssa/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
3-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
4-
#![cfg_attr(not(bootstrap), allow(internal_features))]
2+
#![doc(rust_logo)]
3+
#![feature(rustdoc_internals)]
4+
#![allow(internal_features)]
55
#![feature(associated_type_bounds)]
66
#![feature(box_patterns)]
77
#![feature(if_let_guard)]

compiler/rustc_const_eval/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Rust MIR: a lowered representation of Rust.
44
55
*/
66

7-
#![cfg_attr(not(bootstrap), allow(internal_features))]
8-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
9-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
7+
#![allow(internal_features)]
8+
#![feature(rustdoc_internals)]
9+
#![doc(rust_logo)]
1010
#![deny(rustc::untranslatable_diagnostic)]
1111
#![feature(assert_matches)]
1212
#![feature(box_patterns)]

compiler/rustc_data_structures/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
#![allow(internal_features)]
1111
#![allow(rustc::default_hash_types)]
1212
#![allow(rustc::potential_query_instability)]
13-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
14-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1513
#![deny(rustc::diagnostic_outside_of_impl)]
1614
#![deny(rustc::untranslatable_diagnostic)]
1715
#![deny(unsafe_op_in_unsafe_fn)]
1816
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
17+
#![doc(rust_logo)]
1918
#![feature(allocator_api)]
2019
#![feature(array_windows)]
2120
#![feature(auto_traits)]
@@ -34,6 +33,7 @@
3433
#![feature(never_type)]
3534
#![feature(ptr_alignment_type)]
3635
#![feature(rustc_attrs)]
36+
#![feature(rustdoc_internals)]
3737
#![feature(strict_provenance)]
3838
#![feature(test)]
3939
#![feature(thread_id_value)]

compiler/rustc_driver/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This crate is intentionally empty and a re-export of `rustc_driver_impl` to allow the code in
22
// `rustc_driver_impl` to be compiled in parallel with other crates.
33

4-
#![cfg_attr(not(bootstrap), allow(internal_features))]
5-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
6-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
4+
#![allow(internal_features)]
5+
#![feature(rustdoc_internals)]
6+
#![doc(rust_logo)]
77

88
pub use rustc_driver_impl::*;

compiler/rustc_driver_impl/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
//! This API is completely unstable and subject to change.
66
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
8-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
9-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
10-
#![cfg_attr(not(bootstrap), allow(internal_features))]
8+
#![doc(rust_logo)]
9+
#![feature(rustdoc_internals)]
10+
#![allow(internal_features)]
1111
#![feature(decl_macro)]
1212
#![feature(lazy_cell)]
1313
#![feature(let_chains)]

compiler/rustc_error_codes/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#![cfg_attr(not(bootstrap), allow(internal_features))]
2-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
3-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
1+
#![allow(internal_features)]
2+
#![feature(rustdoc_internals)]
3+
#![doc(rust_logo)]
44
#![deny(rustdoc::invalid_codeblock_attributes)]
55
#![deny(rustc::untranslatable_diagnostic)]
66
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_error_messages/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
2-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1+
#![doc(rust_logo)]
2+
#![feature(rustdoc_internals)]
33
#![feature(let_chains)]
44
#![feature(lazy_cell)]
55
#![feature(rustc_attrs)]

compiler/rustc_errors/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//! This module contains the code for creating and emitting diagnostics.
44
55
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
6-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
7-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
6+
#![doc(rust_logo)]
7+
#![feature(rustdoc_internals)]
88
#![feature(array_windows)]
99
#![feature(extract_if)]
1010
#![feature(if_let_guard)]

compiler/rustc_expand/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
2-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
1+
#![doc(rust_logo)]
2+
#![feature(rustdoc_internals)]
33
#![feature(array_windows)]
44
#![feature(associated_type_bounds)]
55
#![feature(associated_type_defaults)]

compiler/rustc_feature/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
//! even if it is stabilized or removed, *do not remove it*. Instead, move the
1212
//! symbol to the `accepted` or `removed` modules respectively.
1313
14-
#![cfg_attr(not(bootstrap), allow(internal_features))]
15-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
16-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
14+
#![allow(internal_features)]
15+
#![feature(rustdoc_internals)]
16+
#![doc(rust_logo)]
1717
#![feature(lazy_cell)]
1818
#![deny(rustc::untranslatable_diagnostic)]
1919
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_fluent_macro/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
3-
#![cfg_attr(not(bootstrap), allow(internal_features))]
4-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
2+
#![doc(rust_logo)]
3+
#![allow(internal_features)]
4+
#![feature(rustdoc_internals)]
55
#![feature(proc_macro_diagnostic)]
66
#![feature(proc_macro_span)]
77
#![deny(rustc::untranslatable_diagnostic)]

compiler/rustc_graphviz/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@
273273
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
274274
test(attr(allow(unused_variables), deny(warnings)))
275275
)]
276-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
277-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
278-
#![cfg_attr(not(bootstrap), allow(internal_features))]
276+
#![feature(rustdoc_internals)]
277+
#![doc(rust_logo)]
278+
#![allow(internal_features)]
279279
#![deny(rustc::untranslatable_diagnostic)]
280280
#![deny(rustc::diagnostic_outside_of_impl)]
281281

compiler/rustc_hir_analysis/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ This API is completely unstable and subject to change.
5757

5858
#![allow(rustc::potential_query_instability)]
5959
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
60-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
61-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
62-
#![cfg_attr(not(bootstrap), allow(internal_features))]
60+
#![doc(rust_logo)]
61+
#![feature(rustdoc_internals)]
62+
#![allow(internal_features)]
6363
#![feature(box_patterns)]
6464
#![feature(control_flow_enum)]
6565
#![feature(if_let_guard)]

compiler/rustc_incremental/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
33
#![deny(missing_docs)]
44
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
5-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
6-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
7-
#![cfg_attr(not(bootstrap), allow(internal_features))]
5+
#![doc(rust_logo)]
6+
#![feature(rustdoc_internals)]
7+
#![allow(internal_features)]
88
#![recursion_limit = "256"]
99
#![deny(rustc::untranslatable_diagnostic)]
1010
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_infer/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
//! This API is completely unstable and subject to change.
1414
1515
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
16-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
17-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
18-
#![cfg_attr(not(bootstrap), allow(internal_features))]
16+
#![doc(rust_logo)]
17+
#![feature(rustdoc_internals)]
18+
#![allow(internal_features)]
1919
#![feature(associated_type_bounds)]
2020
#![feature(box_patterns)]
2121
#![feature(control_flow_enum)]

compiler/rustc_lint/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
#![allow(rustc::potential_query_instability)]
2929
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
30-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
31-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
30+
#![doc(rust_logo)]
31+
#![feature(rustdoc_internals)]
3232
#![feature(array_windows)]
3333
#![feature(box_patterns)]
3434
#![feature(control_flow_enum)]

compiler/rustc_llvm/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![deny(rustc::untranslatable_diagnostic)]
22
#![deny(rustc::diagnostic_outside_of_impl)]
33
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
4-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
5-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
6-
#![cfg_attr(not(bootstrap), allow(internal_features))]
4+
#![doc(rust_logo)]
5+
#![feature(rustdoc_internals)]
6+
#![allow(internal_features)]
77

88
// NOTE: This crate only exists to allow linking on mingw targets.
99

compiler/rustc_metadata/src/lib.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
3-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
4-
#![cfg_attr(not(bootstrap), allow(internal_features))]
2+
#![doc(rust_logo)]
3+
#![feature(rustdoc_internals)]
4+
#![allow(internal_features)]
55
#![feature(decl_macro)]
66
#![feature(extract_if)]
7-
#![cfg_attr(bootstrap, feature(generators))]
8-
#![cfg_attr(not(bootstrap), feature(coroutines))]
7+
#![feature(coroutines)]
98
#![feature(iter_from_coroutine)]
109
#![feature(let_chains)]
1110
#![feature(if_let_guard)]

compiler/rustc_middle/src/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@
2323
//! This API is completely unstable and subject to change.
2424
2525
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
26-
#![cfg_attr(not(bootstrap), doc(rust_logo))]
27-
#![cfg_attr(not(bootstrap), feature(rustdoc_internals))]
26+
#![doc(rust_logo)]
27+
#![feature(rustdoc_internals)]
2828
#![feature(allocator_api)]
2929
#![feature(array_windows)]
3030
#![feature(assert_matches)]
3131
#![feature(box_patterns)]
3232
#![feature(core_intrinsics)]
3333
#![feature(discriminant_kind)]
3434
#![feature(exhaustive_patterns)]
35-
#![cfg_attr(bootstrap, feature(generators))]
36-
#![cfg_attr(not(bootstrap), feature(coroutines))]
35+
#![feature(coroutines)]
3736
#![feature(get_mut_unchecked)]
3837
#![feature(if_let_guard)]
3938
#![feature(inline_const)]

0 commit comments

Comments
 (0)