diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-10 21:15:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-10 21:15:43 +0100 |
| commit | a69a9b30384a0f941d477f025b66d32be60beea1 (patch) | |
| tree | e59d9bd8d393f97c0cd49337b800fccb34973e69 | |
| parent | cb0fb246d55bf5f4afc73becbc0844522a3126de (diff) | |
| parent | 5b7ab8061a1e4ef87c4d4963818850a674453ba8 (diff) | |
| download | rust-a69a9b30384a0f941d477f025b66d32be60beea1.tar.gz rust-a69a9b30384a0f941d477f025b66d32be60beea1.zip | |
Rollup merge of #105962 - zertosh:stabilize_path_as_mut_os_str, r=dtolnay
Stabilize path_as_mut_os_str Closes #105021 r? ```@dtolnay```
| -rw-r--r-- | library/std/src/path.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index cd6b393a2ea..dbc18f7827e 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1498,7 +1498,6 @@ impl PathBuf { /// # Examples /// /// ``` - /// #![feature(path_as_mut_os_str)] /// use std::path::{Path, PathBuf}; /// /// let mut path = PathBuf::from("/foo"); @@ -1510,7 +1509,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 { @@ -2066,7 +2065,6 @@ impl Path { /// # Examples /// /// ``` - /// #![feature(path_as_mut_os_str)] /// use std::path::{Path, PathBuf}; /// /// let mut path = PathBuf::from("Foo.TXT"); @@ -2076,7 +2074,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 { |
