Skip to content

Commit f359a94

Browse files
Snap cfgs to new beta
1 parent 1a4e4d9 commit f359a94

File tree

26 files changed

+16
-105
lines changed

26 files changed

+16
-105
lines changed

src/liballoc/alloc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ pub(crate) unsafe fn box_free<T: ?Sized>(ptr: Unique<T>) {
240240
#[stable(feature = "global_alloc", since = "1.28.0")]
241241
#[rustc_allocator_nounwind]
242242
pub fn handle_alloc_error(layout: Layout) -> ! {
243-
#[cfg_attr(bootstrap, allow(improper_ctypes))]
244243
extern "Rust" {
245244
#[lang = "oom"]
246245
fn oom_impl(layout: Layout) -> !;

src/liballoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
#![feature(allocator_internals)]
118118
#![feature(on_unimplemented)]
119119
#![feature(rustc_const_unstable)]
120-
#![cfg_attr(bootstrap, feature(const_vec_new))]
121120
#![feature(slice_partition_dedup)]
122121
#![feature(maybe_uninit_extra, maybe_uninit_slice)]
123122
#![feature(alloc_layout_extra)]

src/liballoc/string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ impl String {
369369
/// ```
370370
#[inline]
371371
#[stable(feature = "rust1", since = "1.0.0")]
372-
#[cfg_attr(bootstrap, rustc_const_unstable(feature = "const_string_new"))]
373372
pub const fn new() -> String {
374373
String { vec: Vec::new() }
375374
}

src/liballoc/vec.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ use crate::raw_vec::RawVec;
291291
/// [`reserve`]: ../../std/vec/struct.Vec.html#method.reserve
292292
/// [owned slice]: ../../std/boxed/struct.Box.html
293293
#[stable(feature = "rust1", since = "1.0.0")]
294-
#[cfg_attr(all(not(bootstrap), not(test)), rustc_diagnostic_item = "vec_type")]
294+
#[cfg_attr(not(test), rustc_diagnostic_item = "vec_type")]
295295
pub struct Vec<T> {
296296
buf: RawVec<T>,
297297
len: usize,
@@ -314,7 +314,6 @@ impl<T> Vec<T> {
314314
/// ```
315315
#[inline]
316316
#[stable(feature = "rust1", since = "1.0.0")]
317-
#[cfg_attr(bootstrap, rustc_const_unstable(feature = "const_vec_new"))]
318317
pub const fn new() -> Vec<T> {
319318
Vec {
320319
buf: RawVec::NEW,

src/libcore/bool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! impl bool {}
22
3-
#[cfg(not(bootstrap))]
43
#[lang = "bool"]
54
impl bool {
65
/// Returns `Some(t)` if the `bool` is `true`, or `None` otherwise.

src/libcore/clone.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ pub trait Clone : Sized {
135135

136136
/// Derive macro generating an impl of the trait `Clone`.
137137
#[rustc_builtin_macro]
138-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
139138
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
140139
#[allow_internal_unstable(core_intrinsics, derive_clone_copy)]
141140
pub macro Clone($item:item) { /* compiler built-in */ }

src/libcore/cmp.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ pub trait PartialEq<Rhs: ?Sized = Self> {
210210

211211
/// Derive macro generating an impl of the trait `PartialEq`.
212212
#[rustc_builtin_macro]
213-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
214213
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
215214
#[allow_internal_unstable(core_intrinsics)]
216215
pub macro PartialEq($item:item) { /* compiler built-in */ }
@@ -273,7 +272,6 @@ pub trait Eq: PartialEq<Self> {
273272

274273
/// Derive macro generating an impl of the trait `Eq`.
275274
#[rustc_builtin_macro]
276-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
277275
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
278276
#[allow_internal_unstable(core_intrinsics, derive_eq)]
279277
pub macro Eq($item:item) { /* compiler built-in */ }
@@ -624,7 +622,6 @@ pub trait Ord: Eq + PartialOrd<Self> {
624622

625623
/// Derive macro generating an impl of the trait `Ord`.
626624
#[rustc_builtin_macro]
627-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
628625
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
629626
#[allow_internal_unstable(core_intrinsics)]
630627
pub macro Ord($item:item) { /* compiler built-in */ }
@@ -873,7 +870,6 @@ pub trait PartialOrd<Rhs: ?Sized = Self>: PartialEq<Rhs> {
873870

874871
/// Derive macro generating an impl of the trait `PartialOrd`.
875872
#[rustc_builtin_macro]
876-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
877873
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
878874
#[allow_internal_unstable(core_intrinsics)]
879875
pub macro PartialOrd($item:item) { /* compiler built-in */ }

src/libcore/default.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ pub trait Default: Sized {
117117

118118
/// Derive macro generating an impl of the trait `Default`.
119119
#[rustc_builtin_macro]
120-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
121120
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
122121
#[allow_internal_unstable(core_intrinsics)]
123122
pub macro Default($item:item) { /* compiler built-in */ }

src/libcore/fmt/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,7 @@ impl Display for Arguments<'_> {
518518
label="`{Self}` cannot be formatted using `{{:?}}` because it doesn't implement `{Debug}`",
519519
)]
520520
#[doc(alias = "{:?}")]
521-
#[cfg_attr(bootstrap, lang = "debug_trait")]
522-
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "debug_trait")]
521+
#[rustc_diagnostic_item = "debug_trait"]
523522
pub trait Debug {
524523
/// Formats the value using the given formatter.
525524
///
@@ -550,7 +549,6 @@ pub trait Debug {
550549
pub(crate) mod macros {
551550
/// Derive macro generating an impl of the trait `Debug`.
552551
#[rustc_builtin_macro]
553-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
554552
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
555553
#[allow_internal_unstable(core_intrinsics)]
556554
pub macro Debug($item:item) { /* compiler built-in */ }

src/libcore/hash/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ pub trait Hash {
202202
pub(crate) mod macros {
203203
/// Derive macro generating an impl of the trait `Hash`.
204204
#[rustc_builtin_macro]
205-
#[cfg_attr(bootstrap, rustc_macro_transparency = "semitransparent")]
206205
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
207206
#[allow_internal_unstable(core_intrinsics)]
208207
pub macro Hash($item:item) { /* compiler built-in */ }

0 commit comments

Comments
 (0)