Auto merge of #133533 - BoxyUwU:bump-boostrap, r=jieyouxu,Mark-Simulacrum
Bump boostrap compiler to new beta Currently failing due to something about the const stability checks and `panic!`. I'm not sure why though since I wasn't able to see any PRs merged in the past few days that would result in a `cfg(bootstrap)` that shouldn't be removed. cc `@RalfJung` #131349
This commit is contained in:
commit
1fc691e6dd
81 changed files with 675 additions and 924 deletions
|
@ -1229,7 +1229,7 @@ impl From<&OsStr> for Box<OsStr> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "box_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "box_from_mut_slice", since = "1.84.0")]
|
||||
impl From<&mut OsStr> for Box<OsStr> {
|
||||
/// Copies the string into a newly allocated <code>[Box]<[OsStr]></code>.
|
||||
#[inline]
|
||||
|
@ -1309,7 +1309,7 @@ impl From<&OsStr> for Arc<OsStr> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
|
||||
impl From<&mut OsStr> for Arc<OsStr> {
|
||||
/// Copies the string into a newly allocated <code>[Arc]<[OsStr]></code>.
|
||||
#[inline]
|
||||
|
@ -1339,7 +1339,7 @@ impl From<&OsStr> for Rc<OsStr> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
|
||||
impl From<&mut OsStr> for Rc<OsStr> {
|
||||
/// Copies the string into a newly allocated <code>[Rc]<[OsStr]></code>.
|
||||
#[inline]
|
||||
|
|
|
@ -262,7 +262,6 @@
|
|||
#![allow(unused_features)]
|
||||
//
|
||||
// Features:
|
||||
#![cfg_attr(not(bootstrap), feature(autodiff))]
|
||||
#![cfg_attr(test, feature(internal_output_capture, print_internals, update_panic_count, rt))]
|
||||
#![cfg_attr(
|
||||
all(target_vendor = "fortanix", target_env = "sgx"),
|
||||
|
@ -274,13 +273,12 @@
|
|||
//
|
||||
// Language features:
|
||||
// tidy-alphabetical-start
|
||||
#![cfg_attr(bootstrap, feature(strict_provenance))]
|
||||
#![cfg_attr(not(bootstrap), feature(strict_provenance_lints))]
|
||||
#![feature(alloc_error_handler)]
|
||||
#![feature(allocator_internals)]
|
||||
#![feature(allow_internal_unsafe)]
|
||||
#![feature(allow_internal_unstable)]
|
||||
#![feature(asm_experimental_arch)]
|
||||
#![feature(autodiff)]
|
||||
#![feature(cfg_sanitizer_cfi)]
|
||||
#![feature(cfg_target_thread_local)]
|
||||
#![feature(cfi_encoding)]
|
||||
|
@ -314,6 +312,7 @@
|
|||
#![feature(rustdoc_internals)]
|
||||
#![feature(staged_api)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
#![feature(strict_provenance_lints)]
|
||||
#![feature(thread_local)]
|
||||
#![feature(try_blocks)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
@ -623,7 +622,6 @@ pub mod simd {
|
|||
#[doc(inline)]
|
||||
pub use crate::std_float::StdFloat;
|
||||
}
|
||||
#[cfg(not(bootstrap))]
|
||||
#[unstable(feature = "autodiff", issue = "124509")]
|
||||
/// This module provides support for automatic differentiation.
|
||||
pub mod autodiff {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//! `aarch64-apple-darwin` target names, which are mostly named that way for
|
||||
//! legacy reasons.
|
||||
|
||||
#![stable(feature = "os_darwin", since = "CURRENT_RUSTC_VERSION")]
|
||||
#![stable(feature = "os_darwin", since = "1.84.0")]
|
||||
#![doc(cfg(target_vendor = "apple"))]
|
||||
|
||||
pub mod fs;
|
||||
|
|
|
@ -1762,7 +1762,7 @@ impl From<&Path> for Box<Path> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "box_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "box_from_mut_slice", since = "1.84.0")]
|
||||
impl From<&mut Path> for Box<Path> {
|
||||
/// Creates a boxed [`Path`] from a reference.
|
||||
///
|
||||
|
@ -2000,7 +2000,7 @@ impl From<&Path> for Arc<Path> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
|
||||
impl From<&mut Path> for Arc<Path> {
|
||||
/// Converts a [`Path`] into an [`Arc`] by copying the [`Path`] data into a new [`Arc`] buffer.
|
||||
#[inline]
|
||||
|
@ -2030,7 +2030,7 @@ impl From<&Path> for Rc<Path> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "shared_from_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "shared_from_mut_slice", since = "1.84.0")]
|
||||
impl From<&mut Path> for Rc<Path> {
|
||||
/// Converts a [`Path`] into an [`Rc`] by copying the [`Path`] data into a new [`Rc`] buffer.
|
||||
#[inline]
|
||||
|
|
|
@ -5,7 +5,6 @@ pub struct Condvar {}
|
|||
|
||||
impl Condvar {
|
||||
#[inline]
|
||||
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_locks", since = "1.63.0"))]
|
||||
pub const fn new() -> Condvar {
|
||||
Condvar {}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ unsafe impl Sync for Mutex {} // no threads on this platform
|
|||
|
||||
impl Mutex {
|
||||
#[inline]
|
||||
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_locks", since = "1.63.0"))]
|
||||
pub const fn new() -> Mutex {
|
||||
Mutex { locked: Cell::new(false) }
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ unsafe impl Sync for Once {}
|
|||
|
||||
impl Once {
|
||||
#[inline]
|
||||
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_once_new", since = "1.32.0"))]
|
||||
pub const fn new() -> Once {
|
||||
Once { state: Cell::new(State::Incomplete) }
|
||||
}
|
||||
|
|
|
@ -116,7 +116,6 @@ fn to_state(current: StateAndQueue) -> usize {
|
|||
|
||||
impl Once {
|
||||
#[inline]
|
||||
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_once_new", since = "1.32.0"))]
|
||||
pub const fn new() -> Once {
|
||||
Once { state_and_queue: AtomicPtr::new(ptr::without_provenance_mut(INCOMPLETE)) }
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ unsafe impl Sync for RwLock {} // no threads on this platform
|
|||
|
||||
impl RwLock {
|
||||
#[inline]
|
||||
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_locks", since = "1.63.0"))]
|
||||
pub const fn new() -> RwLock {
|
||||
RwLock { mode: Cell::new(0) }
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ const KEY_SENTVAL: usize = 0;
|
|||
const KEY_SENTVAL: usize = libc::PTHREAD_KEYS_MAX + 1;
|
||||
|
||||
impl LazyKey {
|
||||
#[cfg_attr(bootstrap, rustc_const_unstable(feature = "thread_local_internals", issue = "none"))]
|
||||
pub const fn new(dtor: Option<unsafe extern "C" fn(*mut u8)>) -> LazyKey {
|
||||
LazyKey { key: atomic::AtomicUsize::new(KEY_SENTVAL), dtor }
|
||||
}
|
||||
|
|
|
@ -60,7 +60,6 @@ struct Value<T: 'static> {
|
|||
}
|
||||
|
||||
impl<T: 'static> Storage<T> {
|
||||
#[cfg_attr(bootstrap, rustc_const_unstable(feature = "thread_local_internals", issue = "none"))]
|
||||
pub const fn new() -> Storage<T> {
|
||||
Storage { key: LazyKey::new(Some(destroy_value::<T>)), marker: PhantomData }
|
||||
}
|
||||
|
|
|
@ -237,7 +237,6 @@ impl<T: 'static> LocalKey<T> {
|
|||
reason = "recently added to create a key",
|
||||
issue = "none"
|
||||
)]
|
||||
#[cfg_attr(bootstrap, rustc_const_unstable(feature = "thread_local_internals", issue = "none"))]
|
||||
pub const unsafe fn new(inner: fn(Option<&mut Option<T>>) -> *const T) -> LocalKey<T> {
|
||||
LocalKey { inner }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue