Skip to content

Commit 1a6315a

Browse files
Stabilised os_string_pathbuf_leak
1 parent f9e0239 commit 1a6315a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

library/std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
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", since = "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

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

library/std/tests/path.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
path_add_extension,
44
path_file_prefix,
55
maybe_uninit_slice,
6-
os_string_pathbuf_leak
76
)]
87

98
use std::clone::CloneToUninit;

0 commit comments

Comments
 (0)