about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorAndres Suarez <zertosh@gmail.com>2022-12-20 10:22:44 -0500
committerAndres Suarez <zertosh@gmail.com>2022-12-20 10:55:15 -0500
commit5b7ab8061a1e4ef87c4d4963818850a674453ba8 (patch)
tree3b96e5c5ce975a652e2d6591d3cfd0ac85dca9a8 /library/std/src
parent8a746f4ac3a489efb724cde813607f3b96c2df7b (diff)
downloadrust-5b7ab8061a1e4ef87c4d4963818850a674453ba8.tar.gz
rust-5b7ab8061a1e4ef87c4d4963818850a674453ba8.zip
Stabilize path_as_mut_os_str
Closes #105021
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/path.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 73b5056e932..2cb7b3de16a 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -1468,7 +1468,6 @@ impl PathBuf {
     /// # Examples
     ///
     /// ```
-    /// #![feature(path_as_mut_os_str)]
     /// use std::path::{Path, PathBuf};
     ///
     /// let mut path = PathBuf::from("/foo");
@@ -1480,7 +1479,7 @@ impl PathBuf {
     /// path.as_mut_os_string().push("baz");
     /// assert_eq!(path, Path::new("/foo/barbaz"));
     /// ```
-    #[unstable(feature = "path_as_mut_os_str", issue = "105021")]
+    #[stable(feature = "path_as_mut_os_str", since = "CURRENT_RUSTC_VERSION")]
     #[must_use]
     #[inline]
     pub fn as_mut_os_string(&mut self) -> &mut OsString {
@@ -2036,7 +2035,6 @@ impl Path {
     /// # Examples
     ///
     /// ```
-    /// #![feature(path_as_mut_os_str)]
     /// use std::path::{Path, PathBuf};
     ///
     /// let mut path = PathBuf::from("Foo.TXT");
@@ -2046,7 +2044,7 @@ impl Path {
     /// path.as_mut_os_str().make_ascii_lowercase();
     /// assert_eq!(path, Path::new("foo.txt"));
     /// ```
-    #[unstable(feature = "path_as_mut_os_str", issue = "105021")]
+    #[stable(feature = "path_as_mut_os_str", since = "CURRENT_RUSTC_VERSION")]
     #[must_use]
     #[inline]
     pub fn as_mut_os_str(&mut self) -> &mut OsStr {