Skip to content

Commit 5b7ab80

Browse files
committed
Stabilize path_as_mut_os_str
Closes #105021
1 parent 8a746f4 commit 5b7ab80

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/std/src/path.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,6 @@ impl PathBuf {
14681468
/// # Examples
14691469
///
14701470
/// ```
1471-
/// #![feature(path_as_mut_os_str)]
14721471
/// use std::path::{Path, PathBuf};
14731472
///
14741473
/// let mut path = PathBuf::from("/foo");
@@ -1480,7 +1479,7 @@ impl PathBuf {
14801479
/// path.as_mut_os_string().push("baz");
14811480
/// assert_eq!(path, Path::new("/foo/barbaz"));
14821481
/// ```
1483-
#[unstable(feature = "path_as_mut_os_str", issue = "105021")]
1482+
#[stable(feature = "path_as_mut_os_str", since = "CURRENT_RUSTC_VERSION")]
14841483
#[must_use]
14851484
#[inline]
14861485
pub fn as_mut_os_string(&mut self) -> &mut OsString {
@@ -2036,7 +2035,6 @@ impl Path {
20362035
/// # Examples
20372036
///
20382037
/// ```
2039-
/// #![feature(path_as_mut_os_str)]
20402038
/// use std::path::{Path, PathBuf};
20412039
///
20422040
/// let mut path = PathBuf::from("Foo.TXT");
@@ -2046,7 +2044,7 @@ impl Path {
20462044
/// path.as_mut_os_str().make_ascii_lowercase();
20472045
/// assert_eq!(path, Path::new("foo.txt"));
20482046
/// ```
2049-
#[unstable(feature = "path_as_mut_os_str", issue = "105021")]
2047+
#[stable(feature = "path_as_mut_os_str", since = "CURRENT_RUSTC_VERSION")]
20502048
#[must_use]
20512049
#[inline]
20522050
pub fn as_mut_os_str(&mut self) -> &mut OsStr {

0 commit comments

Comments
 (0)