Skip to content

Commit d217644

Browse files
authored
Rollup merge of #156840 - asder8215:stabilize_pathbuf_into_string, r=Mark-Simulacrum
Stabilize `PathBuf::into_string` Here's the [tracking issue](#156203). FCP completed on the tracking issue.
2 parents a768b8c + 9e76169 commit d217644

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

library/std/src/path.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,14 +1803,13 @@ impl PathBuf {
18031803
/// # Examples
18041804
///
18051805
/// ```
1806-
/// #![feature(pathbuf_into_string)]
18071806
/// use std::path::PathBuf;
18081807
///
18091808
/// let path_buf = PathBuf::from("foo");
18101809
/// let string = path_buf.into_string();
18111810
/// assert_eq!(string, Ok(String::from("foo")));
18121811
/// ```
1813-
#[unstable(feature = "pathbuf_into_string", issue = "156203")]
1812+
#[stable(feature = "pathbuf_into_string", since = "CURRENT_RUSTC_VERSION")]
18141813
pub fn into_string(self) -> Result<String, PathBuf> {
18151814
self.into_os_string().into_string().map_err(PathBuf::from)
18161815
}

0 commit comments

Comments
 (0)