Skip to content

Commit 7ba605c

Browse files
committed
Auto merge of rust-lang#113540 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] promote 1.72 r? `@Mark-Simulacrum`
2 parents 83964c1 + 27ff819 commit 7ba605c

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

compiler/rustc_feature/src/active.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,13 @@ declare_features! (
392392
/// Allows `dyn* Trait` objects.
393393
(incomplete, dyn_star, "1.65.0", Some(102425), None),
394394
// Uses generic effect parameters for ~const bounds
395-
(active, effects, "CURRENT_RUSTC_VERSION", Some(102090), None),
395+
(active, effects, "1.72.0", Some(102090), None),
396396
/// Allows `X..Y` patterns.
397397
(active, exclusive_range_pattern, "1.11.0", Some(37854), None),
398398
/// Allows exhaustive pattern matching on types that contain uninhabited types.
399399
(active, exhaustive_patterns, "1.13.0", Some(51085), None),
400400
/// Allows explicit tail calls via `become` expression.
401-
(incomplete, explicit_tail_calls, "CURRENT_RUSTC_VERSION", Some(112788), None),
401+
(incomplete, explicit_tail_calls, "1.72.0", Some(112788), None),
402402
/// Allows using `efiapi`, `sysv64` and `win64` as calling convention
403403
/// for functions with varargs.
404404
(active, extended_varargs_abi_support, "1.65.0", Some(100189), None),
@@ -445,7 +445,7 @@ declare_features! (
445445
// Allows setting the threshold for the `large_assignments` lint.
446446
(active, large_assignments, "1.52.0", Some(83518), None),
447447
/// Allow to have type alias types for inter-crate use.
448-
(active, lazy_type_alias, "CURRENT_RUSTC_VERSION", Some(112792), None),
448+
(active, lazy_type_alias, "1.72.0", Some(112792), None),
449449
/// Allows `if/while p && let q = r && ...` chains.
450450
(active, let_chains, "1.37.0", Some(53667), None),
451451
/// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.
@@ -546,7 +546,7 @@ declare_features! (
546546
/// not changed from prior instances of the same struct (RFC #2528)
547547
(active, type_changing_struct_update, "1.58.0", Some(86555), None),
548548
/// Allows using type privacy lints (`private_interfaces`, `private_bounds`, `unnameable_types`).
549-
(active, type_privacy_lints, "CURRENT_RUSTC_VERSION", Some(48054), None),
549+
(active, type_privacy_lints, "1.72.0", Some(48054), None),
550550
/// Enables rustc to generate code that instructs libstd to NOT ignore SIGPIPE.
551551
(active, unix_sigpipe, "1.65.0", Some(97889), None),
552552
/// Allows unsized fn parameters.

library/alloc/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ impl String {
18731873
/// let static_ref: &'static mut str = x.leak();
18741874
/// assert_eq!(static_ref, "bucket");
18751875
/// ```
1876-
#[stable(feature = "string_leak", since = "CURRENT_RUSTC_VERSION")]
1876+
#[stable(feature = "string_leak", since = "1.72.0")]
18771877
#[inline]
18781878
pub fn leak<'a>(self) -> &'a mut str {
18791879
let slice = self.vec.leak();

library/core/src/ffi/c_str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl CStr {
377377
/// assert!(cstr.is_err());
378378
/// ```
379379
#[stable(feature = "cstr_from_bytes", since = "1.10.0")]
380-
#[rustc_const_stable(feature = "const_cstr_methods", since = "CURRENT_RUSTC_VERSION")]
380+
#[rustc_const_stable(feature = "const_cstr_methods", since = "1.72.0")]
381381
pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, FromBytesWithNulError> {
382382
let nul_pos = memchr::memchr(0, bytes);
383383
match nul_pos {
@@ -561,7 +561,7 @@ impl CStr {
561561
#[must_use = "this returns the result of the operation, \
562562
without modifying the original"]
563563
#[stable(feature = "rust1", since = "1.0.0")]
564-
#[rustc_const_stable(feature = "const_cstr_methods", since = "CURRENT_RUSTC_VERSION")]
564+
#[rustc_const_stable(feature = "const_cstr_methods", since = "1.72.0")]
565565
pub const fn to_bytes(&self) -> &[u8] {
566566
let bytes = self.to_bytes_with_nul();
567567
// FIXME(const-hack) replace with range index
@@ -590,7 +590,7 @@ impl CStr {
590590
#[must_use = "this returns the result of the operation, \
591591
without modifying the original"]
592592
#[stable(feature = "rust1", since = "1.0.0")]
593-
#[rustc_const_stable(feature = "const_cstr_methods", since = "CURRENT_RUSTC_VERSION")]
593+
#[rustc_const_stable(feature = "const_cstr_methods", since = "1.72.0")]
594594
pub const fn to_bytes_with_nul(&self) -> &[u8] {
595595
// SAFETY: Transmuting a slice of `c_char`s to a slice of `u8`s
596596
// is safe on all supported targets.
@@ -614,7 +614,7 @@ impl CStr {
614614
/// assert_eq!(cstr.to_str(), Ok("foo"));
615615
/// ```
616616
#[stable(feature = "cstr_to_str", since = "1.4.0")]
617-
#[rustc_const_stable(feature = "const_cstr_methods", since = "CURRENT_RUSTC_VERSION")]
617+
#[rustc_const_stable(feature = "const_cstr_methods", since = "1.72.0")]
618618
pub const fn to_str(&self) -> Result<&str, str::Utf8Error> {
619619
// N.B., when `CStr` is changed to perform the length check in `.to_bytes()`
620620
// instead of in `from_ptr()`, it may be worth considering if this should

library/std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ impl<'a> From<Cow<'a, OsStr>> for OsString {
11651165
}
11661166
}
11671167

1168-
#[stable(feature = "str_tryfrom_osstr_impl", since = "CURRENT_RUSTC_VERSION")]
1168+
#[stable(feature = "str_tryfrom_osstr_impl", since = "1.72.0")]
11691169
impl<'a> TryFrom<&'a OsStr> for &'a str {
11701170
type Error = crate::str::Utf8Error;
11711171

library/std/src/sync/mpsc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ pub struct Sender<T> {
347347
#[stable(feature = "rust1", since = "1.0.0")]
348348
unsafe impl<T: Send> Send for Sender<T> {}
349349

350-
#[stable(feature = "mpsc_sender_sync", since = "CURRENT_RUSTC_VERSION")]
350+
#[stable(feature = "mpsc_sender_sync", since = "1.72.0")]
351351
unsafe impl<T: Send> Sync for Sender<T> {}
352352

353353
/// The sending-half of Rust's synchronous [`sync_channel`] type.

src/ci/channel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly
1+
beta

src/ci/stage-build.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Tuple, Union
2323

2424
PGO_HOST = os.environ["PGO_HOST"]
25+
CHANNEL = os.environ["RUST_RELEASE_CHANNEL"]
2526

2627
LOGGER = logging.getLogger("stage-build")
2728

@@ -816,18 +817,18 @@ def extract_dist_dir(name: str) -> Path:
816817
return extracted_path
817818

818819
# Extract rustc, libstd, cargo and src archives to create the optimized sysroot
819-
rustc_dir = extract_dist_dir(f"rustc-nightly-{PGO_HOST}") / "rustc"
820-
libstd_dir = extract_dist_dir(f"rust-std-nightly-{PGO_HOST}") / f"rust-std-{PGO_HOST}"
821-
cargo_dir = extract_dist_dir(f"cargo-nightly-{PGO_HOST}") / "cargo"
822-
extracted_src_dir = extract_dist_dir("rust-src-nightly") / "rust-src"
820+
rustc_dir = extract_dist_dir(f"rustc-{CHANNEL}-{PGO_HOST}") / "rustc"
821+
libstd_dir = extract_dist_dir(f"rust-std-{CHANNEL}-{PGO_HOST}") / f"rust-std-{PGO_HOST}"
822+
cargo_dir = extract_dist_dir(f"cargo-{CHANNEL}-{PGO_HOST}") / "cargo"
823+
extracted_src_dir = extract_dist_dir(f"rust-src-{CHANNEL}") / "rust-src"
823824

824825
# We need to manually copy libstd to the extracted rustc sysroot
825826
shutil.copytree(
826827
libstd_dir / "lib" / "rustlib" / PGO_HOST / "lib",
827828
rustc_dir / "lib" / "rustlib" / PGO_HOST / "lib"
828829
)
829830

830-
# Extract sources - they aren't in the `rustc-nightly-{host}` tarball, so we need to manually copy libstd
831+
# Extract sources - they aren't in the `rustc-{CHANNEL}-{host}` tarball, so we need to manually copy libstd
831832
# sources to the extracted sysroot. We need sources available so that `-Zsimulate-remapped-rust-src-base`
832833
# works correctly.
833834
shutil.copytree(

0 commit comments

Comments
 (0)