Update CURRENT_RUSTC_VERSION post-bump
(cherry picked from commit 813072186c1c305ea62c7270f1514dfab5166af2)
This commit is contained in:
@@ -102,9 +102,9 @@ declare_features! (
|
||||
/// Allows deriving traits as per `SmartPointer` specification
|
||||
(removed, derive_smart_pointer, "1.84.0", Some(123430), Some("replaced by `CoercePointee`"), 131284),
|
||||
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
|
||||
(removed, doc_auto_cfg, "CURRENT_RUSTC_VERSION", Some(43781), Some("merged into `doc_cfg`"), 138907),
|
||||
(removed, doc_auto_cfg, "1.92.0", Some(43781), Some("merged into `doc_cfg`"), 138907),
|
||||
/// Allows `#[doc(cfg_hide(...))]`.
|
||||
(removed, doc_cfg_hide, "CURRENT_RUSTC_VERSION", Some(43781), Some("merged into `doc_cfg`"), 138907),
|
||||
(removed, doc_cfg_hide, "1.92.0", Some(43781), Some("merged into `doc_cfg`"), 138907),
|
||||
/// Allows using `#[doc(keyword = "...")]`.
|
||||
(removed, doc_keyword, "1.58.0", Some(51315),
|
||||
Some("merged into `#![feature(rustdoc_internals)]`"), 90420),
|
||||
|
||||
@@ -300,7 +300,7 @@ impl<T> Box<T> {
|
||||
/// [zeroed]: mem::MaybeUninit::zeroed
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[inline]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "1.92.0")]
|
||||
#[must_use]
|
||||
pub fn new_zeroed() -> Box<mem::MaybeUninit<T>> {
|
||||
Self::new_zeroed_in(Global)
|
||||
@@ -692,7 +692,7 @@ impl<T> Box<[T]> {
|
||||
///
|
||||
/// [zeroed]: mem::MaybeUninit::zeroed
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "1.92.0")]
|
||||
#[must_use]
|
||||
pub fn new_zeroed_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> {
|
||||
unsafe { RawVec::with_capacity_zeroed(len).into_box(len) }
|
||||
|
||||
@@ -284,7 +284,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> Entry<'a, K, V, A> {
|
||||
/// assert_eq!(entry.key(), &"poneyland");
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "btree_entry_insert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "btree_entry_insert", since = "1.92.0")]
|
||||
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V, A> {
|
||||
match self {
|
||||
Occupied(mut entry) => {
|
||||
@@ -394,7 +394,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> VacantEntry<'a, K, V, A> {
|
||||
/// }
|
||||
/// assert_eq!(map["poneyland"], 37);
|
||||
/// ```
|
||||
#[stable(feature = "btree_entry_insert", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "btree_entry_insert", since = "1.92.0")]
|
||||
pub fn insert_entry(mut self, value: V) -> OccupiedEntry<'a, K, V, A> {
|
||||
let handle = match self.handle {
|
||||
None => {
|
||||
|
||||
@@ -529,7 +529,7 @@ impl<T> Rc<T> {
|
||||
///
|
||||
/// [zeroed]: mem::MaybeUninit::zeroed
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "1.92.0")]
|
||||
#[must_use]
|
||||
pub fn new_zeroed() -> Rc<mem::MaybeUninit<T>> {
|
||||
unsafe {
|
||||
@@ -1057,7 +1057,7 @@ impl<T> Rc<[T]> {
|
||||
///
|
||||
/// [zeroed]: mem::MaybeUninit::zeroed
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "1.92.0")]
|
||||
#[must_use]
|
||||
pub fn new_zeroed_slice(len: usize) -> Rc<[mem::MaybeUninit<T>]> {
|
||||
unsafe {
|
||||
|
||||
@@ -536,7 +536,7 @@ impl<T> Arc<T> {
|
||||
/// [zeroed]: mem::MaybeUninit::zeroed
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[inline]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "1.92.0")]
|
||||
#[must_use]
|
||||
pub fn new_zeroed() -> Arc<mem::MaybeUninit<T>> {
|
||||
unsafe {
|
||||
@@ -1205,7 +1205,7 @@ impl<T> Arc<[T]> {
|
||||
/// [zeroed]: mem::MaybeUninit::zeroed
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[inline]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "new_zeroed_alloc", since = "1.92.0")]
|
||||
#[must_use]
|
||||
pub fn new_zeroed_slice(len: usize) -> Arc<[mem::MaybeUninit<T>]> {
|
||||
unsafe {
|
||||
|
||||
@@ -1382,11 +1382,8 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
|
||||
#[doc = concat!("let three = NonZero::new(3", stringify!($Int), ").unwrap();")]
|
||||
/// assert_eq!(three.div_ceil(two), two);
|
||||
/// ```
|
||||
#[stable(feature = "unsigned_nonzero_div_ceil", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(
|
||||
feature = "unsigned_nonzero_div_ceil",
|
||||
since = "CURRENT_RUSTC_VERSION"
|
||||
)]
|
||||
#[stable(feature = "unsigned_nonzero_div_ceil", since = "1.92.0")]
|
||||
#[rustc_const_stable(feature = "unsigned_nonzero_div_ceil", since = "1.92.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
||||
@@ -194,8 +194,8 @@ impl<'a> Location<'a> {
|
||||
/// `std::source_location::file_name`, both of which return a nul-terminated `const char*`.
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[stable(feature = "file_with_nul", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "file_with_nul", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_with_nul", since = "1.92.0")]
|
||||
#[rustc_const_stable(feature = "file_with_nul", since = "1.92.0")]
|
||||
pub const fn file_as_c_str(&self) -> &'a CStr {
|
||||
let filename = self.filename.as_ptr();
|
||||
|
||||
|
||||
@@ -3629,7 +3629,7 @@ impl<T> [T] {
|
||||
/// assert_eq!(a, ['a', 'c', 'd', 'e', 'b', 'f']);
|
||||
/// ```
|
||||
#[stable(feature = "slice_rotate", since = "1.26.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_rotate", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_slice_rotate", since = "1.92.0")]
|
||||
pub const fn rotate_left(&mut self, mid: usize) {
|
||||
assert!(mid <= self.len());
|
||||
let k = self.len() - mid;
|
||||
@@ -3675,7 +3675,7 @@ impl<T> [T] {
|
||||
/// assert_eq!(a, ['a', 'e', 'b', 'c', 'd', 'f']);
|
||||
/// ```
|
||||
#[stable(feature = "slice_rotate", since = "1.26.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_rotate", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_slice_rotate", since = "1.92.0")]
|
||||
pub const fn rotate_right(&mut self, k: usize) {
|
||||
assert!(k <= self.len());
|
||||
let mid = self.len() - k;
|
||||
|
||||
@@ -565,7 +565,7 @@ impl Iterator for EncodeWide<'_> {
|
||||
#[stable(feature = "encode_wide_fused_iterator", since = "1.62.0")]
|
||||
impl FusedIterator for EncodeWide<'_> {}
|
||||
|
||||
#[stable(feature = "encode_wide_debug", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "encode_wide_debug", since = "1.92.0")]
|
||||
impl fmt::Debug for EncodeWide<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
struct CodeUnit(u16);
|
||||
|
||||
@@ -379,7 +379,7 @@ impl Extend<TokenStream> for TokenStream {
|
||||
macro_rules! extend_items {
|
||||
($($item:ident)*) => {
|
||||
$(
|
||||
#[stable(feature = "token_stream_extend_tt_items", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "token_stream_extend_tt_items", since = "1.92.0")]
|
||||
impl Extend<$item> for TokenStream {
|
||||
fn extend<T: IntoIterator<Item = $item>>(&mut self, iter: T) {
|
||||
self.extend(iter.into_iter().map(TokenTree::$item));
|
||||
|
||||
@@ -859,7 +859,7 @@ impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T> {
|
||||
/// # let final_check = rw.read().unwrap();
|
||||
/// # assert_eq!(*final_check, 3);
|
||||
/// ```
|
||||
#[stable(feature = "rwlock_downgrade", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "rwlock_downgrade", since = "1.92.0")]
|
||||
pub fn downgrade(s: Self) -> RwLockReadGuard<'rwlock, T> {
|
||||
let lock = s.lock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user