Skip to content

Commit acb09bf

Browse files
committed
update bootstrap configs
1 parent 6134f9f commit acb09bf

File tree

36 files changed

+17
-115
lines changed

36 files changed

+17
-115
lines changed

compiler/rustc_const_eval/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
33
#![allow(rustc::diagnostic_outside_of_impl)]
4-
#![cfg_attr(not(bootstrap), feature(unqualified_local_imports))]
5-
#![cfg_attr(not(bootstrap), warn(unqualified_local_imports))]
64
#![doc(rust_logo)]
75
#![feature(assert_matches)]
86
#![feature(box_patterns)]
@@ -15,7 +13,9 @@
1513
#![feature(strict_provenance)]
1614
#![feature(trait_alias)]
1715
#![feature(try_blocks)]
16+
#![feature(unqualified_local_imports)]
1817
#![feature(yeet_expr)]
18+
#![warn(unqualified_local_imports)]
1919
#![warn(unreachable_pub)]
2020
// tidy-alphabetical-end
2121

compiler/rustc_data_structures/src/steal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<T> Steal<T> {
5757
///
5858
/// This should not be used within rustc as it leaks information not tracked
5959
/// by the query system, breaking incremental compilation.
60-
#[cfg_attr(not(bootstrap), rustc_lint_untracked_query_information)]
60+
#[rustc_lint_untracked_query_information]
6161
pub fn is_stolen(&self) -> bool {
6262
self.value.borrow().is_none()
6363
}

compiler/rustc_lint/src/if_let_rescope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_lint! {
2424
/// ### Example
2525
///
2626
/// ```rust,edition2021
27-
/// #![cfg_attr(not(bootstrap), feature(if_let_rescope))] // Simplify this in bootstrap bump.
27+
/// #![feature(if_let_rescope)]
2828
/// #![warn(if_let_rescope)]
2929
/// #![allow(unused_variables)]
3030
///

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,6 @@ declare_lint! {
18711871
/// ### Example
18721872
///
18731873
/// ```rust,compile_fail
1874-
/// # #[cfg_attr(bootstrap)] compile_error!(); // Remove this in bootstrap bump.
18751874
/// #![deny(elided_named_lifetimes)]
18761875
/// struct Foo;
18771876
/// impl Foo {

compiler/rustc_next_trait_solver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! So if you got to this crate from the old solver, it's totally normal.
66
77
// tidy-alphabetical-start
8-
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
8+
#![allow(rustc::usage_of_type_ir_inherent)]
99
#![warn(unreachable_pub)]
1010
// tidy-alphabetical-end
1111

compiler/rustc_type_ir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// tidy-alphabetical-start
22
#![allow(rustc::usage_of_ty_tykind)]
3+
#![allow(rustc::usage_of_type_ir_inherent)]
34
#![cfg_attr(
45
feature = "nightly",
56
feature(associated_type_defaults, never_type, rustc_attrs, negative_impls)
67
)]
78
#![cfg_attr(feature = "nightly", allow(internal_features))]
8-
#![cfg_attr(not(bootstrap), allow(rustc::usage_of_type_ir_inherent))]
99
#![warn(unreachable_pub)]
1010
// tidy-alphabetical-end
1111

library/alloc/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@
162162
//
163163
// Language features:
164164
// tidy-alphabetical-start
165-
#![cfg_attr(bootstrap, feature(const_mut_refs))]
166-
#![cfg_attr(bootstrap, feature(const_refs_to_cell))]
167165
#![cfg_attr(not(test), feature(coroutine_trait))]
168166
#![cfg_attr(test, feature(panic_update_hook))]
169167
#![cfg_attr(test, feature(test))]

library/alloc/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#![feature(btree_extract_if)]
66
#![feature(cow_is_borrowed)]
77
#![feature(const_heap)]
8-
#![cfg_attr(bootstrap, feature(const_mut_refs))]
98
#![feature(const_try)]
109
#![feature(core_intrinsics)]
1110
#![feature(extract_if)]

library/alloc/tests/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ fn test_from_iter_specialization_panic_during_iteration_drops() {
12881288
#[test]
12891289
#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
12901290
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
1291-
#[cfg_attr(not(bootstrap), allow(static_mut_refs))]
1291+
#[allow(static_mut_refs)]
12921292
fn test_from_iter_specialization_panic_during_drop_doesnt_leak() {
12931293
static mut DROP_COUNTER_OLD: [usize; 5] = [0; 5];
12941294
static mut DROP_COUNTER_NEW: [usize; 2] = [0; 2];

library/core/src/arch.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
#[allow(unused_imports)]
44
#[stable(feature = "simd_arch", since = "1.27.0")]
55
pub use crate::core_arch::arch::*;
6-
#[unstable(feature = "naked_functions", issue = "90957")]
7-
#[cfg(bootstrap)]
8-
pub use crate::naked_asm;
96

107
/// Inline assembly.
118
///
@@ -20,37 +17,6 @@ pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
2017
/* compiler built-in */
2118
}
2219

23-
/// Inline assembly used in combination with `#[naked]` functions.
24-
///
25-
/// Refer to [Rust By Example] for a usage guide and the [reference] for
26-
/// detailed information about the syntax and available options.
27-
///
28-
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
29-
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
30-
#[unstable(feature = "naked_functions", issue = "90957")]
31-
#[macro_export]
32-
#[cfg(bootstrap)]
33-
macro_rules! naked_asm {
34-
([$last:expr], [$($pushed:expr),*]) => {
35-
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
36-
{
37-
core::arch::asm!($($pushed),*, options(att_syntax, noreturn))
38-
}
39-
#[cfg(not(any(target_arch = "x86_64", target_arch = "x86")))]
40-
{
41-
core::arch::asm!($($pushed),* , $last, options(noreturn))
42-
}
43-
};
44-
45-
([$first:expr $(, $rest:expr)*], [$($pushed:expr),*]) => {
46-
naked_asm!([$($rest),*], [$($pushed,)* $first]);
47-
};
48-
49-
($($expr:expr),* $(,)?) => {
50-
naked_asm!([$($expr),*], []);
51-
};
52-
}
53-
5420
/// Inline assembly used in combination with `#[naked]` functions.
5521
///
5622
/// Refer to [Rust By Example] for a usage guide and the [reference] for
@@ -60,7 +26,6 @@ macro_rules! naked_asm {
6026
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
6127
#[unstable(feature = "naked_functions", issue = "90957")]
6228
#[rustc_builtin_macro]
63-
#[cfg(not(bootstrap))]
6429
pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
6530
/* compiler built-in */
6631
}

0 commit comments

Comments
 (0)