Skip to content

Commit 04ba452

Browse files
committed
Auto merge of #120626 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] initial branch of 1.77 https://forge.rust-lang.org/release/process.html#promote-branches-t-3-days-monday r? `@Mark-Simulacrum`
2 parents bf3c6c5 + e36caed commit 04ba452

File tree

18 files changed

+48
-48
lines changed

18 files changed

+48
-48
lines changed

Diff for: compiler/rustc_feature/src/accepted.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ declare_features! (
7777
/// Allows empty structs and enum variants with braces.
7878
(accepted, braced_empty_structs, "1.8.0", Some(29720)),
7979
/// Allows `c"foo"` literals.
80-
(accepted, c_str_literals, "CURRENT_RUSTC_VERSION", Some(105723)),
80+
(accepted, c_str_literals, "1.77.0", Some(105723)),
8181
/// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
8282
(accepted, cfg_attr_multi, "1.33.0", Some(54881)),
8383
/// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.

Diff for: compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare_features! (
3333
// -------------------------------------------------------------------------
3434

3535
/// Allows using the `amdgpu-kernel` ABI.
36-
(removed, abi_amdgpu_kernel, "CURRENT_RUSTC_VERSION", Some(51575), None),
36+
(removed, abi_amdgpu_kernel, "1.77.0", Some(51575), None),
3737
(removed, advanced_slice_patterns, "1.0.0", Some(62254),
3838
Some("merged into `#![feature(slice_patterns)]`")),
3939
(removed, allocator, "1.0.0", None, None),

Diff for: compiler/rustc_feature/src/unstable.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ declare_features! (
356356
/// Allows `#[track_caller]` on async functions.
357357
(unstable, async_fn_track_caller, "1.73.0", Some(110011)),
358358
/// Allows `for await` loops.
359-
(unstable, async_for_loop, "CURRENT_RUSTC_VERSION", Some(118898)),
359+
(unstable, async_for_loop, "1.77.0", Some(118898)),
360360
/// Allows builtin # foo() syntax
361361
(unstable, builtin_syntax, "1.71.0", Some(110680)),
362362
/// Treat `extern "C"` function as nounwind.
@@ -370,7 +370,7 @@ declare_features! (
370370
/// Allows the use of `#[cfg(sanitize = "option")]`; set when -Zsanitizer is used.
371371
(unstable, cfg_sanitize, "1.41.0", Some(39699)),
372372
/// Allows `cfg(sanitizer_cfi_generalize_pointers)` and `cfg(sanitizer_cfi_normalize_integers)`.
373-
(unstable, cfg_sanitizer_cfi, "CURRENT_RUSTC_VERSION", Some(89653)),
373+
(unstable, cfg_sanitizer_cfi, "1.77.0", Some(89653)),
374374
/// Allows `cfg(target_abi = "...")`.
375375
(unstable, cfg_target_abi, "1.55.0", Some(80970)),
376376
/// Allows `cfg(target(abi = "..."))`.
@@ -516,7 +516,7 @@ declare_features! (
516516
(unstable, marker_trait_attr, "1.30.0", Some(29864)),
517517
/// Allows exhaustive pattern matching on types that contain uninhabited types in cases that are
518518
/// unambiguously sound.
519-
(incomplete, min_exhaustive_patterns, "CURRENT_RUSTC_VERSION", Some(119612)),
519+
(incomplete, min_exhaustive_patterns, "1.77.0", Some(119612)),
520520
/// A minimal, sound subset of specialization intended to be used by the
521521
/// standard library until the soundness issues with specialization
522522
/// are fixed.
@@ -552,7 +552,7 @@ declare_features! (
552552
/// Allows using enums in offset_of!
553553
(unstable, offset_of_enum, "1.75.0", Some(120141)),
554554
/// Allows using multiple nested field accesses in offset_of!
555-
(unstable, offset_of_nested, "CURRENT_RUSTC_VERSION", Some(120140)),
555+
(unstable, offset_of_nested, "1.77.0", Some(120140)),
556556
/// Allows using `#[optimize(X)]`.
557557
(unstable, optimize_attribute, "1.34.0", Some(54882)),
558558
/// Allows macro attributes on expressions, statements and non-inline modules.

Diff for: library/alloc/src/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub use core::slice::{from_mut, from_ref};
5151
pub use core::slice::{from_mut_ptr_range, from_ptr_range};
5252
#[stable(feature = "rust1", since = "1.0.0")]
5353
pub use core::slice::{from_raw_parts, from_raw_parts_mut};
54-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
54+
#[stable(feature = "slice_group_by", since = "1.77.0")]
5555
pub use core::slice::{ChunkBy, ChunkByMut};
5656
#[stable(feature = "rust1", since = "1.0.0")]
5757
pub use core::slice::{Chunks, Windows};

Diff for: library/alloc/src/vec/cow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl<'a, T: Clone> From<&'a [T]> for Cow<'a, [T]> {
1515
}
1616
}
1717

18-
#[stable(feature = "cow_from_array_ref", since = "CURRENT_RUSTC_VERSION")]
18+
#[stable(feature = "cow_from_array_ref", since = "1.77.0")]
1919
impl<'a, T: Clone, const N: usize> From<&'a [T; N]> for Cow<'a, [T]> {
2020
/// Creates a [`Borrowed`] variant of [`Cow`]
2121
/// from a reference to an array.

Diff for: library/core/src/array/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ impl<T, const N: usize> [T; N] {
576576
/// // We can still access the original array: it has not been moved.
577577
/// assert_eq!(strings.len(), 3);
578578
/// ```
579-
#[stable(feature = "array_methods", since = "CURRENT_RUSTC_VERSION")]
579+
#[stable(feature = "array_methods", since = "1.77.0")]
580580
pub fn each_ref(&self) -> [&T; N] {
581581
from_trusted_iterator(self.iter())
582582
}
@@ -595,7 +595,7 @@ impl<T, const N: usize> [T; N] {
595595
/// assert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);
596596
/// assert_eq!(floats, [0.0, 2.7, -1.0]);
597597
/// ```
598-
#[stable(feature = "array_methods", since = "CURRENT_RUSTC_VERSION")]
598+
#[stable(feature = "array_methods", since = "1.77.0")]
599599
pub fn each_mut(&mut self) -> [&mut T; N] {
600600
from_trusted_iterator(self.iter_mut())
601601
}

Diff for: library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ extern "rust-intrinsic" {
947947
/// own, or if it does not enable any significant optimizations.
948948
///
949949
/// This intrinsic does not have a stable counterpart.
950-
#[rustc_const_stable(feature = "const_assume", since = "CURRENT_RUSTC_VERSION")]
950+
#[rustc_const_stable(feature = "const_assume", since = "1.77.0")]
951951
#[rustc_nounwind]
952952
pub fn assume(b: bool);
953953

Diff for: library/core/src/mem/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1394,15 +1394,15 @@ impl<T> SizedTypeProperties for T {}
13941394
/// assert_eq!(mem::offset_of!(Option<&u8>, Some.0), 0);
13951395
/// ```
13961396
#[cfg(not(bootstrap))]
1397-
#[stable(feature = "offset_of", since = "CURRENT_RUSTC_VERSION")]
1397+
#[stable(feature = "offset_of", since = "1.77.0")]
13981398
#[allow_internal_unstable(builtin_syntax, hint_must_use)]
13991399
pub macro offset_of($Container:ty, $($fields:expr)+ $(,)?) {
14001400
// The `{}` is for better error messages
14011401
crate::hint::must_use({builtin # offset_of($Container, $($fields)+)})
14021402
}
14031403

14041404
#[cfg(bootstrap)]
1405-
#[stable(feature = "offset_of", since = "CURRENT_RUSTC_VERSION")]
1405+
#[stable(feature = "offset_of", since = "1.77.0")]
14061406
#[allow_internal_unstable(builtin_syntax, hint_must_use)]
14071407
#[allow(missing_docs)]
14081408
pub macro offset_of($Container:ty, $($fields:tt).+ $(,)?) {

Diff for: library/core/src/net/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! * [`SocketAddr`] represents socket addresses of either IPv4 or IPv6; [`SocketAddrV4`]
1010
//! and [`SocketAddrV6`] are respectively IPv4 and IPv6 socket addresses
1111
12-
#![stable(feature = "ip_in_core", since = "CURRENT_RUSTC_VERSION")]
12+
#![stable(feature = "ip_in_core", since = "1.77.0")]
1313

1414
#[stable(feature = "rust1", since = "1.0.0")]
1515
pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope};

Diff for: library/core/src/ops/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ impl<T> Bound<T> {
726726
/// assert_eq!(unbounded_string.map(|s| s.len()), Unbounded);
727727
/// ```
728728
#[inline]
729-
#[stable(feature = "bound_map", since = "CURRENT_RUSTC_VERSION")]
729+
#[stable(feature = "bound_map", since = "1.77.0")]
730730
pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Bound<U> {
731731
match self {
732732
Unbounded => Unbounded,

Diff for: library/core/src/slice/iter.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -3252,21 +3252,21 @@ unsafe impl<'a, T> TrustedRandomAccessNoCoerce for IterMut<'a, T> {
32523252
///
32533253
/// [`chunk_by`]: slice::chunk_by
32543254
/// [slices]: slice
3255-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3255+
#[stable(feature = "slice_group_by", since = "1.77.0")]
32563256
#[must_use = "iterators are lazy and do nothing unless consumed"]
32573257
pub struct ChunkBy<'a, T: 'a, P> {
32583258
slice: &'a [T],
32593259
predicate: P,
32603260
}
32613261

3262-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3262+
#[stable(feature = "slice_group_by", since = "1.77.0")]
32633263
impl<'a, T: 'a, P> ChunkBy<'a, T, P> {
32643264
pub(super) fn new(slice: &'a [T], predicate: P) -> Self {
32653265
ChunkBy { slice, predicate }
32663266
}
32673267
}
32683268

3269-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3269+
#[stable(feature = "slice_group_by", since = "1.77.0")]
32703270
impl<'a, T: 'a, P> Iterator for ChunkBy<'a, T, P>
32713271
where
32723272
P: FnMut(&T, &T) -> bool,
@@ -3300,7 +3300,7 @@ where
33003300
}
33013301
}
33023302

3303-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3303+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33043304
impl<'a, T: 'a, P> DoubleEndedIterator for ChunkBy<'a, T, P>
33053305
where
33063306
P: FnMut(&T, &T) -> bool,
@@ -3322,10 +3322,10 @@ where
33223322
}
33233323
}
33243324

3325-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3325+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33263326
impl<'a, T: 'a, P> FusedIterator for ChunkBy<'a, T, P> where P: FnMut(&T, &T) -> bool {}
33273327

3328-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3328+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33293329
impl<'a, T: 'a + fmt::Debug, P> fmt::Debug for ChunkBy<'a, T, P> {
33303330
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
33313331
f.debug_struct("ChunkBy").field("slice", &self.slice).finish()
@@ -3339,21 +3339,21 @@ impl<'a, T: 'a + fmt::Debug, P> fmt::Debug for ChunkBy<'a, T, P> {
33393339
///
33403340
/// [`chunk_by_mut`]: slice::chunk_by_mut
33413341
/// [slices]: slice
3342-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3342+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33433343
#[must_use = "iterators are lazy and do nothing unless consumed"]
33443344
pub struct ChunkByMut<'a, T: 'a, P> {
33453345
slice: &'a mut [T],
33463346
predicate: P,
33473347
}
33483348

3349-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3349+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33503350
impl<'a, T: 'a, P> ChunkByMut<'a, T, P> {
33513351
pub(super) fn new(slice: &'a mut [T], predicate: P) -> Self {
33523352
ChunkByMut { slice, predicate }
33533353
}
33543354
}
33553355

3356-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3356+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33573357
impl<'a, T: 'a, P> Iterator for ChunkByMut<'a, T, P>
33583358
where
33593359
P: FnMut(&T, &T) -> bool,
@@ -3388,7 +3388,7 @@ where
33883388
}
33893389
}
33903390

3391-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3391+
#[stable(feature = "slice_group_by", since = "1.77.0")]
33923392
impl<'a, T: 'a, P> DoubleEndedIterator for ChunkByMut<'a, T, P>
33933393
where
33943394
P: FnMut(&T, &T) -> bool,
@@ -3411,10 +3411,10 @@ where
34113411
}
34123412
}
34133413

3414-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3414+
#[stable(feature = "slice_group_by", since = "1.77.0")]
34153415
impl<'a, T: 'a, P> FusedIterator for ChunkByMut<'a, T, P> where P: FnMut(&T, &T) -> bool {}
34163416

3417-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
3417+
#[stable(feature = "slice_group_by", since = "1.77.0")]
34183418
impl<'a, T: 'a + fmt::Debug, P> fmt::Debug for ChunkByMut<'a, T, P> {
34193419
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
34203420
f.debug_struct("ChunkByMut").field("slice", &self.slice).finish()

Diff for: library/core/src/slice/mod.rs

+15-15
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub use iter::{ArrayChunks, ArrayChunksMut};
6868
#[unstable(feature = "array_windows", issue = "75027")]
6969
pub use iter::ArrayWindows;
7070

71-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
71+
#[stable(feature = "slice_group_by", since = "1.77.0")]
7272
pub use iter::{ChunkBy, ChunkByMut};
7373

7474
#[stable(feature = "split_inclusive", since = "1.51.0")]
@@ -334,8 +334,8 @@ impl<T> [T] {
334334
/// assert_eq!(Some(&[]), w.first_chunk::<0>());
335335
/// ```
336336
#[inline]
337-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
338-
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
337+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
338+
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "1.77.0")]
339339
pub const fn first_chunk<const N: usize>(&self) -> Option<&[T; N]> {
340340
if self.len() < N {
341341
None
@@ -364,7 +364,7 @@ impl<T> [T] {
364364
/// assert_eq!(None, x.first_chunk_mut::<4>());
365365
/// ```
366366
#[inline]
367-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
367+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
368368
#[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")]
369369
pub const fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]> {
370370
if self.len() < N {
@@ -394,8 +394,8 @@ impl<T> [T] {
394394
/// assert_eq!(None, x.split_first_chunk::<4>());
395395
/// ```
396396
#[inline]
397-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
398-
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
397+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
398+
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "1.77.0")]
399399
pub const fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])> {
400400
if self.len() < N {
401401
None
@@ -429,7 +429,7 @@ impl<T> [T] {
429429
/// assert_eq!(None, x.split_first_chunk_mut::<4>());
430430
/// ```
431431
#[inline]
432-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
432+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
433433
#[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")]
434434
pub const fn split_first_chunk_mut<const N: usize>(
435435
&mut self,
@@ -464,8 +464,8 @@ impl<T> [T] {
464464
/// assert_eq!(None, x.split_last_chunk::<4>());
465465
/// ```
466466
#[inline]
467-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
468-
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
467+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
468+
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "1.77.0")]
469469
pub const fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])> {
470470
if self.len() < N {
471471
None
@@ -499,7 +499,7 @@ impl<T> [T] {
499499
/// assert_eq!(None, x.split_last_chunk_mut::<4>());
500500
/// ```
501501
#[inline]
502-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
502+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
503503
#[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")]
504504
pub const fn split_last_chunk_mut<const N: usize>(
505505
&mut self,
@@ -534,7 +534,7 @@ impl<T> [T] {
534534
/// assert_eq!(Some(&[]), w.last_chunk::<0>());
535535
/// ```
536536
#[inline]
537-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
537+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
538538
#[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")]
539539
pub const fn last_chunk<const N: usize>(&self) -> Option<&[T; N]> {
540540
if self.len() < N {
@@ -568,7 +568,7 @@ impl<T> [T] {
568568
/// assert_eq!(None, x.last_chunk_mut::<4>());
569569
/// ```
570570
#[inline]
571-
#[stable(feature = "slice_first_last_chunk", since = "CURRENT_RUSTC_VERSION")]
571+
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
572572
#[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")]
573573
pub const fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]> {
574574
if self.len() < N {
@@ -1777,7 +1777,7 @@ impl<T> [T] {
17771777
/// assert_eq!(iter.next(), Some(&[2, 3, 4][..]));
17781778
/// assert_eq!(iter.next(), None);
17791779
/// ```
1780-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
1780+
#[stable(feature = "slice_group_by", since = "1.77.0")]
17811781
#[inline]
17821782
pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
17831783
where
@@ -1818,7 +1818,7 @@ impl<T> [T] {
18181818
/// assert_eq!(iter.next(), Some(&mut [2, 3, 4][..]));
18191819
/// assert_eq!(iter.next(), None);
18201820
/// ```
1821-
#[stable(feature = "slice_group_by", since = "CURRENT_RUSTC_VERSION")]
1821+
#[stable(feature = "slice_group_by", since = "1.77.0")]
18221822
#[inline]
18231823
pub fn chunk_by_mut<F>(&mut self, pred: F) -> ChunkByMut<'_, T, F>
18241824
where
@@ -1953,7 +1953,7 @@ impl<T> [T] {
19531953
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
19541954
#[rustc_const_stable(
19551955
feature = "const_slice_split_at_unchecked",
1956-
since = "CURRENT_RUSTC_VERSION"
1956+
since = "1.77.0"
19571957
)]
19581958
#[inline]
19591959
#[must_use]

Diff for: library/std/src/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl f32 {
114114
/// ```
115115
#[rustc_allow_incoherent_impl]
116116
#[must_use = "method returns a new number and does not mutate the original value"]
117-
#[stable(feature = "round_ties_even", since = "CURRENT_RUSTC_VERSION")]
117+
#[stable(feature = "round_ties_even", since = "1.77.0")]
118118
#[inline]
119119
pub fn round_ties_even(self) -> f32 {
120120
unsafe { intrinsics::rintf32(self) }

Diff for: library/std/src/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl f64 {
114114
/// ```
115115
#[rustc_allow_incoherent_impl]
116116
#[must_use = "method returns a new number and does not mutate the original value"]
117-
#[stable(feature = "round_ties_even", since = "CURRENT_RUSTC_VERSION")]
117+
#[stable(feature = "round_ties_even", since = "1.77.0")]
118118
#[inline]
119119
pub fn round_ties_even(self) -> f64 {
120120
unsafe { intrinsics::rintf64(self) }

Diff for: library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ impl File {
428428
/// Ok(())
429429
/// }
430430
/// ```
431-
#[stable(feature = "file_create_new", since = "CURRENT_RUSTC_VERSION")]
431+
#[stable(feature = "file_create_new", since = "1.77.0")]
432432
pub fn create_new<P: AsRef<Path>>(path: P) -> io::Result<File> {
433433
OpenOptions::new().read(true).write(true).create_new(true).open(path.as_ref())
434434
}

Diff for: library/std/src/sync/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ impl<T: ?Sized> Mutex<T> {
404404
/// assert_eq!(*x, 1);
405405
/// ```
406406
#[inline]
407-
#[stable(feature = "mutex_unpoison", since = "CURRENT_RUSTC_VERSION")]
407+
#[stable(feature = "mutex_unpoison", since = "1.77.0")]
408408
pub fn clear_poison(&self) {
409409
self.poison.clear();
410410
}

Diff for: library/std/src/sync/rwlock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl<T: ?Sized> RwLock<T> {
408408
/// assert_eq!(*guard, 1);
409409
/// ```
410410
#[inline]
411-
#[stable(feature = "mutex_unpoison", since = "CURRENT_RUSTC_VERSION")]
411+
#[stable(feature = "mutex_unpoison", since = "1.77.0")]
412412
pub fn clear_poison(&self) {
413413
self.poison.clear();
414414
}

Diff for: src/ci/channel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly
1+
beta

0 commit comments

Comments
 (0)