Skip to content

Commit 54704b3

Browse files
Replace version placeholder to 1.72
1 parent 8fff287 commit 54704b3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

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();

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

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

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.

0 commit comments

Comments
 (0)