Skip to content

Commit 171e39d

Browse files
Stabilised os_string_pathbuf_leak
1 parent 42ff2ee commit 171e39d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl OsString {
544544
/// However, keep in mind that trimming the capacity may result in a reallocation and copy.
545545
///
546546
/// [`into_boxed_os_str`]: Self::into_boxed_os_str
547-
#[unstable(feature = "os_string_pathbuf_leak", issue = "125965")]
547+
#[stable(feature = "os_string_pathbuf_leak", issue = "CURRENT_RUSTC_VERSION")]
548548
#[inline]
549549
pub fn leak<'a>(self) -> &'a mut OsStr {
550550
OsStr::from_inner_mut(self.inner.leak())

library/std/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ impl PathBuf {
12481248
/// However, keep in mind that trimming the capacity may result in a reallocation and copy.
12491249
///
12501250
/// [`into_boxed_path`]: Self::into_boxed_path
1251-
#[unstable(feature = "os_string_pathbuf_leak", issue = "125965")]
1251+
#[stable(feature = "os_string_pathbuf_leak", issue = "CURRENT_RUSTC_VERSION")]
12521252
#[inline]
12531253
pub fn leak<'a>(self) -> &'a mut Path {
12541254
Path::from_inner_mut(self.inner.leak())

0 commit comments

Comments
 (0)