Skip to content

Commit b13c0dd

Browse files
committed
Auto merge of #128031 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] promote master https://forge.rust-lang.org/release/process.html#beta-to-stable r? `@Mark-Simulacrum`
2 parents 5069856 + 7be792e commit b13c0dd

File tree

17 files changed

+39
-33
lines changed

17 files changed

+39
-33
lines changed

compiler/rustc_feature/src/accepted.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ declare_features! (
8585
/// Allows `c"foo"` literals.
8686
(accepted, c_str_literals, "1.77.0", Some(105723)),
8787
/// Allows `extern "C-unwind" fn` to enable unwinding across ABI boundaries and treat `extern "C" fn` as nounwind.
88-
(accepted, c_unwind, "CURRENT_RUSTC_VERSION", Some(74990)),
88+
(accepted, c_unwind, "1.81.0", Some(74990)),
8989
/// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
9090
(accepted, cfg_attr_multi, "1.33.0", Some(54881)),
9191
/// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
@@ -237,7 +237,7 @@ declare_features! (
237237
/// Allows `let...else` statements.
238238
(accepted, let_else, "1.65.0", Some(87335)),
239239
/// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.
240-
(accepted, lint_reasons, "CURRENT_RUSTC_VERSION", Some(54503)),
240+
(accepted, lint_reasons, "1.81.0", Some(54503)),
241241
/// Allows `break {expr}` with a value inside `loop`s.
242242
(accepted, loop_break_value, "1.19.0", Some(37339)),
243243
/// Allows use of `?` as the Kleene "at most one" operator in macros.

compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ declare_features! (
222222
(removed, unwind_attributes, "1.56.0", Some(58760), Some("use the C-unwind ABI instead")),
223223
(removed, visible_private_types, "1.0.0", None, None),
224224
/// Allows `extern "wasm" fn`
225-
(removed, wasm_abi, "CURRENT_RUSTC_VERSION", Some(83788),
225+
(removed, wasm_abi, "1.81.0", Some(83788),
226226
Some("non-standard wasm ABI is no longer supported")),
227227
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
228228
// Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.

compiler/rustc_feature/src/unstable.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ declare_features! (
515515
/// Give access to additional metadata about declarative macro meta-variables.
516516
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
517517
/// Provides a way to concatenate identifiers using metavariable expressions.
518-
(unstable, macro_metavar_expr_concat, "CURRENT_RUSTC_VERSION", Some(124225)),
518+
(unstable, macro_metavar_expr_concat, "1.81.0", Some(124225)),
519519
/// Allows `#[marker]` on certain traits allowing overlapping implementations.
520520
(unstable, marker_trait_attr, "1.30.0", Some(29864)),
521521
/// Allows exhaustive pattern matching on types that contain uninhabited types in cases that are
@@ -560,11 +560,11 @@ declare_features! (
560560
/// Allows using multiple nested field accesses in offset_of!
561561
(unstable, offset_of_nested, "1.77.0", Some(120140)),
562562
/// Allows using fields with slice type in offset_of!
563-
(unstable, offset_of_slice, "CURRENT_RUSTC_VERSION", Some(126151)),
563+
(unstable, offset_of_slice, "1.81.0", Some(126151)),
564564
/// Allows using `#[optimize(X)]`.
565565
(unstable, optimize_attribute, "1.34.0", Some(54882)),
566566
/// Allows specifying nop padding on functions for dynamic patching.
567-
(unstable, patchable_function_entry, "CURRENT_RUSTC_VERSION", Some(123115)),
567+
(unstable, patchable_function_entry, "1.81.0", Some(123115)),
568568
/// Allows postfix match `expr.match { ... }`
569569
(unstable, postfix_match, "1.79.0", Some(121618)),
570570
/// Allows `use<'a, 'b, A, B>` in `impl Trait + use<...>` for precise capture of generic args.
@@ -576,7 +576,7 @@ declare_features! (
576576
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.
577577
(incomplete, ref_pat_eat_one_layer_2024, "1.79.0", Some(123076)),
578578
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024—structural variant
579-
(incomplete, ref_pat_eat_one_layer_2024_structural, "CURRENT_RUSTC_VERSION", Some(123076)),
579+
(incomplete, ref_pat_eat_one_layer_2024_structural, "1.81.0", Some(123076)),
580580
/// Allows using the `#[register_tool]` attribute.
581581
(unstable, register_tool, "1.41.0", Some(66079)),
582582
/// Allows the `#[repr(i128)]` attribute for enums.
@@ -639,9 +639,9 @@ declare_features! (
639639
/// Allows using the `#[used(linker)]` (or `#[used(compiler)]`) attribute.
640640
(unstable, used_with_arg, "1.60.0", Some(93798)),
641641
/// Allows use of x86 `AMX` target-feature attributes and intrinsics
642-
(unstable, x86_amx_intrinsics, "CURRENT_RUSTC_VERSION", Some(126622)),
642+
(unstable, x86_amx_intrinsics, "1.81.0", Some(126622)),
643643
/// Allows use of the `xop` target-feature
644-
(unstable, xop_target_feature, "CURRENT_RUSTC_VERSION", Some(127208)),
644+
(unstable, xop_target_feature, "1.81.0", Some(127208)),
645645
/// Allows `do yeet` expressions
646646
(unstable, yeet_expr, "1.62.0", Some(96373)),
647647
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!

library/core/src/char/methods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl char {
225225
#[stable(feature = "assoc_char_funcs", since = "1.52.0")]
226226
#[rustc_const_stable(
227227
feature = "const_char_from_u32_unchecked",
228-
since = "CURRENT_RUSTC_VERSION"
228+
since = "1.81.0"
229229
)]
230230
#[must_use]
231231
#[inline]

library/core/src/char/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub const fn from_u32(i: u32) -> Option<char> {
121121
/// Converts a `u32` to a `char`, ignoring validity. Use [`char::from_u32_unchecked`].
122122
/// instead.
123123
#[stable(feature = "char_from_unchecked", since = "1.5.0")]
124-
#[rustc_const_stable(feature = "const_char_from_u32_unchecked", since = "CURRENT_RUSTC_VERSION")]
124+
#[rustc_const_stable(feature = "const_char_from_u32_unchecked", since = "1.81.0")]
125125
#[must_use]
126126
#[inline]
127127
pub const unsafe fn from_u32_unchecked(i: u32) -> char {

library/core/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![doc = include_str!("error.md")]
2-
#![stable(feature = "error_in_core", since = "CURRENT_RUSTC_VERSION")]
2+
#![stable(feature = "error_in_core", since = "1.81.0")]
33

44
#[cfg(test)]
55
mod tests;

library/core/src/ffi/c_str.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl CStr {
278278
#[inline] // inline is necessary for codegen to see strlen.
279279
#[must_use]
280280
#[stable(feature = "rust1", since = "1.0.0")]
281-
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]
281+
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "1.81.0")]
282282
pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
283283
// SAFETY: The caller has provided a pointer that points to a valid C
284284
// string with a NUL terminator less than `isize::MAX` from `ptr`.
@@ -540,7 +540,7 @@ impl CStr {
540540
#[must_use]
541541
#[doc(alias("len", "strlen"))]
542542
#[stable(feature = "cstr_count_bytes", since = "1.79.0")]
543-
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]
543+
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "1.81.0")]
544544
pub const fn count_bytes(&self) -> usize {
545545
self.inner.len() - 1
546546
}
@@ -741,7 +741,7 @@ impl AsRef<CStr> for CStr {
741741
/// located within `isize::MAX` from `ptr`.
742742
#[inline]
743743
#[unstable(feature = "cstr_internals", issue = "none")]
744-
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "CURRENT_RUSTC_VERSION")]
744+
#[rustc_const_stable(feature = "const_cstr_from_ptr", since = "1.81.0")]
745745
#[rustc_allow_const_fn_unstable(const_eval_select)]
746746
const unsafe fn strlen(ptr: *const c_char) -> usize {
747747
const fn strlen_ct(s: *const c_char) -> usize {

library/core/src/hint.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ pub const unsafe fn unreachable_unchecked() -> ! {
195195
#[track_caller]
196196
#[inline(always)]
197197
#[doc(alias = "assume")]
198-
#[stable(feature = "hint_assert_unchecked", since = "CURRENT_RUSTC_VERSION")]
199-
#[rustc_const_stable(feature = "hint_assert_unchecked", since = "CURRENT_RUSTC_VERSION")]
198+
#[stable(feature = "hint_assert_unchecked", since = "1.81.0")]
199+
#[rustc_const_stable(feature = "hint_assert_unchecked", since = "1.81.0")]
200200
pub const unsafe fn assert_unchecked(cond: bool) {
201201
// SAFETY: The caller promised `cond` is true.
202202
unsafe {

library/core/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::any::Any;
1212
pub use self::location::Location;
1313
#[stable(feature = "panic_hooks", since = "1.10.0")]
1414
pub use self::panic_info::PanicInfo;
15-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
15+
#[stable(feature = "panic_info_message", since = "1.81.0")]
1616
pub use self::panic_info::PanicMessage;
1717
#[stable(feature = "catch_unwind", since = "1.9.0")]
1818
pub use self::unwind_safe::{AssertUnwindSafe, RefUnwindSafe, UnwindSafe};

library/core/src/panic/panic_info.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct PanicInfo<'a> {
2424
/// that were given to the `panic!()` macro.
2525
///
2626
/// See [`PanicInfo::message`].
27-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
27+
#[stable(feature = "panic_info_message", since = "1.81.0")]
2828
pub struct PanicMessage<'a> {
2929
message: fmt::Arguments<'a>,
3030
}
@@ -57,7 +57,7 @@ impl<'a> PanicInfo<'a> {
5757
/// }
5858
/// ```
5959
#[must_use]
60-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
60+
#[stable(feature = "panic_info_message", since = "1.81.0")]
6161
pub fn message(&self) -> PanicMessage<'_> {
6262
PanicMessage { message: self.message }
6363
}
@@ -164,7 +164,7 @@ impl<'a> PanicMessage<'a> {
164164
/// For most cases with placeholders, this function will return `None`.
165165
///
166166
/// See [`fmt::Arguments::as_str`] for details.
167-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
167+
#[stable(feature = "panic_info_message", since = "1.81.0")]
168168
#[rustc_const_unstable(feature = "const_arguments_as_str", issue = "103900")]
169169
#[must_use]
170170
#[inline]
@@ -173,15 +173,15 @@ impl<'a> PanicMessage<'a> {
173173
}
174174
}
175175

176-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
176+
#[stable(feature = "panic_info_message", since = "1.81.0")]
177177
impl Display for PanicMessage<'_> {
178178
#[inline]
179179
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
180180
formatter.write_fmt(self.message)
181181
}
182182
}
183183

184-
#[stable(feature = "panic_info_message", since = "CURRENT_RUSTC_VERSION")]
184+
#[stable(feature = "panic_info_message", since = "1.81.0")]
185185
impl fmt::Debug for PanicMessage<'_> {
186186
#[inline]
187187
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {

library/core/src/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ impl AtomicBool {
10801080
/// assert_eq!(foo.load(Ordering::SeqCst), true);
10811081
/// ```
10821082
#[inline]
1083-
#[stable(feature = "atomic_bool_fetch_not", since = "CURRENT_RUSTC_VERSION")]
1083+
#[stable(feature = "atomic_bool_fetch_not", since = "1.81.0")]
10841084
#[cfg(target_has_atomic = "8")]
10851085
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
10861086
pub fn fetch_not(&self, order: Ordering) -> bool {

library/core/src/time.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ impl Duration {
625625
/// assert_eq!(Duration::new(100, 0).abs_diff(Duration::new(80, 0)), Duration::new(20, 0));
626626
/// assert_eq!(Duration::new(100, 400_000_000).abs_diff(Duration::new(110, 0)), Duration::new(9, 600_000_000));
627627
/// ```
628-
#[stable(feature = "duration_abs_diff", since = "CURRENT_RUSTC_VERSION")]
629-
#[rustc_const_stable(feature = "duration_abs_diff", since = "CURRENT_RUSTC_VERSION")]
628+
#[stable(feature = "duration_abs_diff", since = "1.81.0")]
629+
#[rustc_const_stable(feature = "duration_abs_diff", since = "1.81.0")]
630630
#[rustc_allow_const_fn_unstable(const_option)]
631631
#[must_use = "this returns the result of the operation, \
632632
without modifying the original"]

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,7 @@ impl AsInnerMut<fs_imp::DirBuilder> for DirBuilder {
27492749
/// ```
27502750
///
27512751
/// [`Path::exists`]: crate::path::Path::exists
2752-
#[stable(feature = "fs_try_exists", since = "CURRENT_RUSTC_VERSION")]
2752+
#[stable(feature = "fs_try_exists", since = "1.81.0")]
27532753
#[inline]
27542754
pub fn exists<P: AsRef<Path>>(path: P) -> io::Result<bool> {
27552755
fs_imp::exists(path.as_ref())

library/std/src/io/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ impl<'a> IoSliceMut<'a> {
12661266
/// buf.advance(3);
12671267
/// assert_eq!(buf.deref(), [1; 5].as_ref());
12681268
/// ```
1269-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1269+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
12701270
#[inline]
12711271
pub fn advance(&mut self, n: usize) {
12721272
self.0.advance(n)
@@ -1305,7 +1305,7 @@ impl<'a> IoSliceMut<'a> {
13051305
/// assert_eq!(bufs[0].deref(), [2; 14].as_ref());
13061306
/// assert_eq!(bufs[1].deref(), [3; 8].as_ref());
13071307
/// ```
1308-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1308+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
13091309
#[inline]
13101310
pub fn advance_slices(bufs: &mut &mut [IoSliceMut<'a>], n: usize) {
13111311
// Number of buffers to remove.
@@ -1406,7 +1406,7 @@ impl<'a> IoSlice<'a> {
14061406
/// buf.advance(3);
14071407
/// assert_eq!(buf.deref(), [1; 5].as_ref());
14081408
/// ```
1409-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1409+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
14101410
#[inline]
14111411
pub fn advance(&mut self, n: usize) {
14121412
self.0.advance(n)
@@ -1444,7 +1444,7 @@ impl<'a> IoSlice<'a> {
14441444
/// IoSlice::advance_slices(&mut bufs, 10);
14451445
/// assert_eq!(bufs[0].deref(), [2; 14].as_ref());
14461446
/// assert_eq!(bufs[1].deref(), [3; 8].as_ref());
1447-
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
1447+
#[stable(feature = "io_slice_advance", since = "1.81.0")]
14481448
#[inline]
14491449
pub fn advance_slices(bufs: &mut &mut [IoSlice<'a>], n: usize) {
14501450
// Number of buffers to remove.

library/std/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub type PanicInfo<'a> = PanicHookInfo<'a>;
3939
/// ```
4040
///
4141
/// [`set_hook`]: ../../std/panic/fn.set_hook.html
42-
#[stable(feature = "panic_hook_info", since = "CURRENT_RUSTC_VERSION")]
42+
#[stable(feature = "panic_hook_info", since = "1.81.0")]
4343
#[derive(Debug)]
4444
pub struct PanicHookInfo<'a> {
4545
payload: &'a (dyn Any + Send),

src/bootstrap/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,12 @@ Executed at: {executed_at}"#,
15111511
}
15121512

15131513
fn beta_prerelease_version(&self) -> u32 {
1514+
if self.config.dry_run() {
1515+
// Dry run doesn't actually execute a git command, which will panic when trying to parse
1516+
// the outputs.
1517+
return 0;
1518+
}
1519+
15141520
fn extract_beta_rev_from_file<P: AsRef<Path>>(version_file: P) -> Option<String> {
15151521
let version = fs::read_to_string(version_file).ok()?;
15161522

src/ci/channel

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

0 commit comments

Comments
 (0)