Skip to content

Commit 732b63c

Browse files
Stabilised os_string_pathbuf_leak
1 parent f9e0239 commit 732b63c

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
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: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
#![feature(
2-
clone_to_uninit,
3-
path_add_extension,
4-
path_file_prefix,
5-
maybe_uninit_slice,
6-
os_string_pathbuf_leak
7-
)]
1+
#![feature(clone_to_uninit, path_add_extension, path_file_prefix, maybe_uninit_slice)]
82

93
use std::clone::CloneToUninit;
104
use std::ffi::OsStr;

0 commit comments

Comments
 (0)