Skip to content

Commit d8150f0

Browse files
committed
update cfg(bootstrap)
1 parent 75003d6 commit d8150f0

File tree

32 files changed

+216
-408
lines changed

32 files changed

+216
-408
lines changed

alloc/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ impl String {
18321832
#[stable(feature = "rust1", since = "1.0.0")]
18331833
#[rustc_const_stable(feature = "const_vec_string_slice", since = "1.87.0")]
18341834
#[rustc_confusables("length", "size")]
1835-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
1835+
#[rustc_no_implicit_autorefs]
18361836
pub const fn len(&self) -> usize {
18371837
self.vec.len()
18381838
}
@@ -1852,7 +1852,7 @@ impl String {
18521852
#[must_use]
18531853
#[stable(feature = "rust1", since = "1.0.0")]
18541854
#[rustc_const_stable(feature = "const_vec_string_slice", since = "1.87.0")]
1855-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
1855+
#[rustc_no_implicit_autorefs]
18561856
pub const fn is_empty(&self) -> bool {
18571857
self.len() == 0
18581858
}

alloctests/tests/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![deny(warnings)]
22
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
33
#![allow(static_mut_refs)]
4-
#![cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
4+
#![allow(unnecessary_transmutes)]
55

66
use std::cell::RefCell;
77
use std::fmt::{self, Write};

core/src/char/convert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub(super) const fn from_u32(i: u32) -> Option<char> {
2121
/// Converts a `u32` to a `char`, ignoring validity. See [`char::from_u32_unchecked`].
2222
#[inline]
2323
#[must_use]
24-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
24+
#[allow(unnecessary_transmutes)]
2525
pub(super) const unsafe fn from_u32_unchecked(i: u32) -> char {
2626
// SAFETY: the caller must guarantee that `i` is a valid char value.
2727
unsafe {
@@ -222,7 +222,7 @@ impl FromStr for char {
222222
}
223223

224224
#[inline]
225-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
225+
#[allow(unnecessary_transmutes)]
226226
const fn char_try_from_u32(i: u32) -> Result<char, CharTryFromError> {
227227
// This is an optimized version of the check
228228
// (i > MAX as u32) || (i >= 0xD800 && i <= 0xDFFF),

core/src/fmt/rt.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ pub struct Placeholder {
1919
pub width: Count,
2020
}
2121

22-
#[cfg(bootstrap)]
23-
impl Placeholder {
24-
#[inline]
25-
pub const fn new(position: usize, flags: u32, precision: Count, width: Count) -> Self {
26-
Self { position, flags, precision, width }
27-
}
28-
}
29-
3022
/// Used by [width](https://doc.rust-lang.org/std/fmt/#width)
3123
/// and [precision](https://doc.rust-lang.org/std/fmt/#precision) specifiers.
3224
#[lang = "format_count"]

core/src/future/async_drop.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use crate::task::{Context, Poll};
2424
/// are `Copy` get implicitly duplicated by the compiler, making it very
2525
/// hard to predict when, and how often destructors will be executed. As such,
2626
/// these types cannot have destructors.
27-
#[cfg(not(bootstrap))]
2827
#[unstable(feature = "async_drop", issue = "126482")]
2928
#[lang = "async_drop"]
3029
pub trait AsyncDrop {
@@ -42,7 +41,6 @@ pub trait AsyncDrop {
4241
}
4342

4443
/// Async drop.
45-
#[cfg(not(bootstrap))]
4644
#[unstable(feature = "async_drop", issue = "126482")]
4745
#[lang = "async_drop_in_place"]
4846
pub async unsafe fn async_drop_in_place<T: ?Sized>(_to_drop: *mut T) {

core/src/future/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ mod pending;
2020
mod poll_fn;
2121
mod ready;
2222

23-
#[cfg(not(bootstrap))]
2423
#[unstable(feature = "async_drop", issue = "126482")]
2524
pub use async_drop::{AsyncDrop, async_drop_in_place};
2625
#[stable(feature = "into_future", since = "1.64.0")]

core/src/intrinsics/mod.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ pub const fn forget<T: ?Sized>(_: T);
14761476
/// Turning raw bytes (`[u8; SZ]`) into `u32`, `f64`, etc.:
14771477
///
14781478
/// ```
1479-
/// # #![cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
1479+
/// # #![allow(unnecessary_transmutes)]
14801480
/// let raw_bytes = [0x78, 0x56, 0x34, 0x12];
14811481
///
14821482
/// let num = unsafe {
@@ -3413,7 +3413,6 @@ pub const fn contract_check_requires<C: Fn() -> bool + Copy>(cond: C) {
34133413
/// returns false.
34143414
///
34153415
/// Note that this function is a no-op during constant evaluation.
3416-
#[cfg(not(bootstrap))]
34173416
#[unstable(feature = "contracts_internals", issue = "128044")]
34183417
// Similar to `contract_check_requires`, we need to use the user-facing
34193418
// `contracts` feature rather than the perma-unstable `contracts_internals`.
@@ -3437,16 +3436,6 @@ pub const fn contract_check_ensures<C: Fn(&Ret) -> bool + Copy, Ret>(cond: C, re
34373436
)
34383437
}
34393438

3440-
/// This is the old version of contract_check_ensures kept here for bootstrap only.
3441-
#[cfg(bootstrap)]
3442-
#[unstable(feature = "contracts_internals", issue = "128044" /* compiler-team#759 */)]
3443-
#[rustc_intrinsic]
3444-
pub fn contract_check_ensures<'a, Ret, C: Fn(&'a Ret) -> bool>(ret: &'a Ret, cond: C) {
3445-
if contract_checks() && !cond(ret) {
3446-
crate::panicking::panic_nounwind("failed ensures check");
3447-
}
3448-
}
3449-
34503439
/// The intrinsic will return the size stored in that vtable.
34513440
///
34523441
/// # Safety

core/src/intrinsics/simd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub const unsafe fn simd_extract<T, U>(x: T, idx: u32) -> U;
3434
///
3535
/// `idx` must be in-bounds of the vector.
3636
#[rustc_nounwind]
37-
#[cfg_attr(not(bootstrap), rustc_intrinsic)]
37+
#[rustc_intrinsic]
3838
pub unsafe fn simd_insert_dyn<T, U>(mut x: T, idx: u32, val: U) -> T {
3939
// SAFETY: `idx` must be in-bounds
4040
unsafe { (&raw mut x).cast::<U>().add(idx as usize).write(val) }
@@ -51,7 +51,7 @@ pub unsafe fn simd_insert_dyn<T, U>(mut x: T, idx: u32, val: U) -> T {
5151
///
5252
/// `idx` must be in-bounds of the vector.
5353
#[rustc_nounwind]
54-
#[cfg_attr(not(bootstrap), rustc_intrinsic)]
54+
#[rustc_intrinsic]
5555
pub unsafe fn simd_extract_dyn<T, U>(x: T, idx: u32) -> U {
5656
// SAFETY: `idx` must be in-bounds
5757
unsafe { (&raw const x).cast::<U>().add(idx as usize).read() }

core/src/marker.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,7 @@ marker_impls! {
885885
///
886886
/// This is part of [RFC 3467](https://rust-lang.github.io/rfcs/3467-unsafe-pinned.html), and is
887887
/// tracked by [#125735](https://github.com/rust-lang/rust/issues/125735).
888-
#[cfg_attr(not(bootstrap), lang = "unsafe_unpin")]
889-
#[cfg_attr(bootstrap, allow(dead_code))]
888+
#[lang = "unsafe_unpin"]
890889
pub(crate) unsafe auto trait UnsafeUnpin {}
891890

892891
impl<T: ?Sized> !UnsafeUnpin for UnsafePinned<T> {}

core/src/num/f128.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ impl f128 {
893893
#[inline]
894894
#[unstable(feature = "f128", issue = "116909")]
895895
#[must_use = "this returns the result of the operation, without modifying the original"]
896-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
896+
#[allow(unnecessary_transmutes)]
897897
pub const fn to_bits(self) -> u128 {
898898
// SAFETY: `u128` is a plain old datatype so we can always transmute to it.
899899
unsafe { mem::transmute(self) }
@@ -941,7 +941,7 @@ impl f128 {
941941
#[inline]
942942
#[must_use]
943943
#[unstable(feature = "f128", issue = "116909")]
944-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
944+
#[allow(unnecessary_transmutes)]
945945
pub const fn from_bits(v: u128) -> Self {
946946
// It turns out the safety issues with sNaN were overblown! Hooray!
947947
// SAFETY: `u128` is a plain old datatype so we can always transmute from it.

core/src/num/f16.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ impl f16 {
881881
#[inline]
882882
#[unstable(feature = "f16", issue = "116909")]
883883
#[must_use = "this returns the result of the operation, without modifying the original"]
884-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
884+
#[allow(unnecessary_transmutes)]
885885
pub const fn to_bits(self) -> u16 {
886886
// SAFETY: `u16` is a plain old datatype so we can always transmute to it.
887887
unsafe { mem::transmute(self) }
@@ -928,7 +928,7 @@ impl f16 {
928928
#[inline]
929929
#[must_use]
930930
#[unstable(feature = "f16", issue = "116909")]
931-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
931+
#[allow(unnecessary_transmutes)]
932932
pub const fn from_bits(v: u16) -> Self {
933933
// It turns out the safety issues with sNaN were overblown! Hooray!
934934
// SAFETY: `u16` is a plain old datatype so we can always transmute from it.

core/src/num/f32.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ impl f32 {
10851085
#[stable(feature = "float_bits_conv", since = "1.20.0")]
10861086
#[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]
10871087
#[inline]
1088-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
1088+
#[allow(unnecessary_transmutes)]
10891089
pub const fn to_bits(self) -> u32 {
10901090
// SAFETY: `u32` is a plain old datatype so we can always transmute to it.
10911091
unsafe { mem::transmute(self) }
@@ -1131,7 +1131,7 @@ impl f32 {
11311131
#[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]
11321132
#[must_use]
11331133
#[inline]
1134-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
1134+
#[allow(unnecessary_transmutes)]
11351135
pub const fn from_bits(v: u32) -> Self {
11361136
// It turns out the safety issues with sNaN were overblown! Hooray!
11371137
// SAFETY: `u32` is a plain old datatype so we can always transmute from it.

core/src/num/f64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ impl f64 {
10831083
without modifying the original"]
10841084
#[stable(feature = "float_bits_conv", since = "1.20.0")]
10851085
#[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]
1086-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
1086+
#[allow(unnecessary_transmutes)]
10871087
#[inline]
10881088
pub const fn to_bits(self) -> u64 {
10891089
// SAFETY: `u64` is a plain old datatype so we can always transmute to it.
@@ -1130,7 +1130,7 @@ impl f64 {
11301130
#[rustc_const_stable(feature = "const_float_bits_conv", since = "1.83.0")]
11311131
#[must_use]
11321132
#[inline]
1133-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
1133+
#[allow(unnecessary_transmutes)]
11341134
pub const fn from_bits(v: u64) -> Self {
11351135
// It turns out the safety issues with sNaN were overblown! Hooray!
11361136
// SAFETY: `u64` is a plain old datatype so we can always transmute from it.

core/src/num/int_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3675,7 +3675,7 @@ macro_rules! int_impl {
36753675
/// ```
36763676
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
36773677
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
3678-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
3678+
#[allow(unnecessary_transmutes)]
36793679
// SAFETY: const sound because integers are plain old datatypes so we can always
36803680
// transmute them to arrays of bytes
36813681
#[must_use = "this returns the result of the operation, \
@@ -3779,7 +3779,7 @@ macro_rules! int_impl {
37793779
/// ```
37803780
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
37813781
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
3782-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
3782+
#[allow(unnecessary_transmutes)]
37833783
#[must_use]
37843784
// SAFETY: const sound because integers are plain old datatypes so we can always
37853785
// transmute to them

core/src/num/uint_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,7 +3523,7 @@ macro_rules! uint_impl {
35233523
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
35243524
#[must_use = "this returns the result of the operation, \
35253525
without modifying the original"]
3526-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
3526+
#[allow(unnecessary_transmutes)]
35273527
// SAFETY: const sound because integers are plain old datatypes so we can always
35283528
// transmute them to arrays of bytes
35293529
#[inline]
@@ -3625,7 +3625,7 @@ macro_rules! uint_impl {
36253625
/// ```
36263626
#[stable(feature = "int_to_from_bytes", since = "1.32.0")]
36273627
#[rustc_const_stable(feature = "const_int_conversion", since = "1.44.0")]
3628-
#[cfg_attr(not(bootstrap), allow(unnecessary_transmutes))]
3628+
#[allow(unnecessary_transmutes)]
36293629
#[must_use]
36303630
// SAFETY: const sound because integers are plain old datatypes so we can always
36313631
// transmute to them

core/src/ops/index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub trait Index<Idx: ?Sized> {
6767
///
6868
/// May panic if the index is out of bounds.
6969
#[stable(feature = "rust1", since = "1.0.0")]
70-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
70+
#[rustc_no_implicit_autorefs]
7171
#[track_caller]
7272
fn index(&self, index: Idx) -> &Self::Output;
7373
}
@@ -172,7 +172,7 @@ pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
172172
///
173173
/// May panic if the index is out of bounds.
174174
#[stable(feature = "rust1", since = "1.0.0")]
175-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
175+
#[rustc_no_implicit_autorefs]
176176
#[track_caller]
177177
fn index_mut(&mut self, index: Idx) -> &mut Self::Output;
178178
}

core/src/panicking.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ pub mod panic_const {
206206
}
207207
// Separated panic constants list for async drop feature
208208
// (May be joined when the corresponding lang items will be in the bootstrap)
209-
#[cfg(not(bootstrap))]
210209
panic_const! {
211210
panic_const_coroutine_resumed_drop = "coroutine resumed after async drop",
212211
panic_const_async_fn_resumed_drop = "`async fn` resumed after async drop",

core/src/pin.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,6 @@ pub use self::unsafe_pinned::UnsafePinned;
10931093
#[derive(Copy, Clone)]
10941094
pub struct Pin<Ptr> {
10951095
/// Only public for bootstrap.
1096-
#[cfg(bootstrap)]
1097-
pub pointer: Ptr,
1098-
#[cfg(not(bootstrap))]
10991096
pointer: Ptr,
11001097
}
11011098

@@ -1936,7 +1933,6 @@ unsafe impl<T: ?Sized> PinCoerceUnsized for *mut T {}
19361933
/// constructor.
19371934
///
19381935
/// [`Box::pin`]: ../../std/boxed/struct.Box.html#method.pin
1939-
#[cfg(not(bootstrap))]
19401936
#[stable(feature = "pin_macro", since = "1.68.0")]
19411937
#[rustc_macro_transparency = "semitransparent"]
19421938
#[allow_internal_unstable(super_let)]
@@ -1947,11 +1943,3 @@ pub macro pin($value:expr $(,)?) {
19471943
unsafe { $crate::pin::Pin::new_unchecked(&mut pinned) }
19481944
}
19491945
}
1950-
1951-
/// Only for bootstrap.
1952-
#[cfg(bootstrap)]
1953-
#[stable(feature = "pin_macro", since = "1.68.0")]
1954-
#[rustc_macro_transparency = "semitransparent"]
1955-
pub macro pin($value:expr $(,)?) {
1956-
$crate::pin::Pin::<&mut _> { pointer: &mut { $value } }
1957-
}

core/src/pin/unsafe_pinned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::{fmt, ptr};
2121
/// Use `UnsafeCell` for that.
2222
///
2323
/// This type blocks niches the same way `UnsafeCell` does.
24-
#[cfg_attr(not(bootstrap), lang = "unsafe_pinned")]
24+
#[lang = "unsafe_pinned"]
2525
#[repr(transparent)]
2626
#[unstable(feature = "unsafe_pinned", issue = "125735")]
2727
pub struct UnsafePinned<T: ?Sized> {

core/src/prelude/v1.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ pub use crate::hash::macros::Hash;
5959

6060
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
6161
#[allow(deprecated)]
62-
#[cfg_attr(bootstrap, allow(deprecated_in_future))]
6362
#[doc(no_inline)]
6463
pub use crate::{
6564
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,

core/src/slice/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<T> [T] {
109109
#[lang = "slice_len_fn"]
110110
#[stable(feature = "rust1", since = "1.0.0")]
111111
#[rustc_const_stable(feature = "const_slice_len", since = "1.39.0")]
112-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
112+
#[rustc_no_implicit_autorefs]
113113
#[inline]
114114
#[must_use]
115115
pub const fn len(&self) -> usize {
@@ -129,7 +129,7 @@ impl<T> [T] {
129129
/// ```
130130
#[stable(feature = "rust1", since = "1.0.0")]
131131
#[rustc_const_stable(feature = "const_slice_is_empty", since = "1.39.0")]
132-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
132+
#[rustc_no_implicit_autorefs]
133133
#[inline]
134134
#[must_use]
135135
pub const fn is_empty(&self) -> bool {
@@ -564,7 +564,7 @@ impl<T> [T] {
564564
/// assert_eq!(None, v.get(0..4));
565565
/// ```
566566
#[stable(feature = "rust1", since = "1.0.0")]
567-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
567+
#[rustc_no_implicit_autorefs]
568568
#[inline]
569569
#[must_use]
570570
pub fn get<I>(&self, index: I) -> Option<&I::Output>
@@ -590,7 +590,7 @@ impl<T> [T] {
590590
/// assert_eq!(x, &[0, 42, 2]);
591591
/// ```
592592
#[stable(feature = "rust1", since = "1.0.0")]
593-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
593+
#[rustc_no_implicit_autorefs]
594594
#[inline]
595595
#[must_use]
596596
pub fn get_mut<I>(&mut self, index: I) -> Option<&mut I::Output>
@@ -628,7 +628,7 @@ impl<T> [T] {
628628
/// }
629629
/// ```
630630
#[stable(feature = "rust1", since = "1.0.0")]
631-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
631+
#[rustc_no_implicit_autorefs]
632632
#[inline]
633633
#[must_use]
634634
pub unsafe fn get_unchecked<I>(&self, index: I) -> &I::Output
@@ -671,7 +671,7 @@ impl<T> [T] {
671671
/// assert_eq!(x, &[1, 13, 4]);
672672
/// ```
673673
#[stable(feature = "rust1", since = "1.0.0")]
674-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
674+
#[rustc_no_implicit_autorefs]
675675
#[inline]
676676
#[must_use]
677677
pub unsafe fn get_unchecked_mut<I>(&mut self, index: I) -> &mut I::Output

core/src/str/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl str {
134134
#[stable(feature = "rust1", since = "1.0.0")]
135135
#[rustc_const_stable(feature = "const_str_len", since = "1.39.0")]
136136
#[rustc_diagnostic_item = "str_len"]
137-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
137+
#[rustc_no_implicit_autorefs]
138138
#[must_use]
139139
#[inline]
140140
pub const fn len(&self) -> usize {
@@ -154,7 +154,7 @@ impl str {
154154
/// ```
155155
#[stable(feature = "rust1", since = "1.0.0")]
156156
#[rustc_const_stable(feature = "const_str_is_empty", since = "1.39.0")]
157-
#[cfg_attr(not(bootstrap), rustc_no_implicit_autorefs)]
157+
#[rustc_no_implicit_autorefs]
158158
#[must_use]
159159
#[inline]
160160
pub const fn is_empty(&self) -> bool {

0 commit comments

Comments
 (0)