@@ -1575,8 +1575,6 @@ impl PathBuf {
15751575 /// # Examples
15761576 ///
15771577 /// ```
1578- /// #![feature(path_add_extension)]
1579- ///
15801578 /// use std::path::{Path, PathBuf};
15811579 ///
15821580 /// let mut p = PathBuf::from("/feel/the");
@@ -1596,7 +1594,7 @@ impl PathBuf {
15961594 /// p.add_extension("");
15971595 /// assert_eq!(Path::new("/feel/the.formatted.dark"), p.as_path());
15981596 /// ```
1599- #[ unstable ( feature = "path_add_extension" , issue = "127292 " ) ]
1597+ #[ stable ( feature = "path_add_extension" , since = "CURRENT_RUSTC_VERSION " ) ]
16001598 pub fn add_extension < S : AsRef < OsStr > > ( & mut self , extension : S ) -> bool {
16011599 self . _add_extension ( extension. as_ref ( ) )
16021600 }
@@ -2846,8 +2844,6 @@ impl Path {
28462844 /// # Examples
28472845 ///
28482846 /// ```
2849- /// #![feature(path_add_extension)]
2850- ///
28512847 /// use std::path::{Path, PathBuf};
28522848 ///
28532849 /// let path = Path::new("foo.rs");
@@ -2858,7 +2854,7 @@ impl Path {
28582854 /// assert_eq!(path.with_added_extension("xz"), PathBuf::from("foo.tar.gz.xz"));
28592855 /// assert_eq!(path.with_added_extension("").with_added_extension("txt"), PathBuf::from("foo.tar.gz.txt"));
28602856 /// ```
2861- #[ unstable ( feature = "path_add_extension" , issue = "127292 " ) ]
2857+ #[ stable ( feature = "path_add_extension" , since = "CURRENT_RUSTC_VERSION " ) ]
28622858 pub fn with_added_extension < S : AsRef < OsStr > > ( & self , extension : S ) -> PathBuf {
28632859 let mut new_path = self . to_path_buf ( ) ;
28642860 new_path. add_extension ( extension) ;
0 commit comments