@@ -1042,8 +1042,6 @@ impl<'a> cmp::Ord for Components<'a> {
1042
1042
/// # Examples
1043
1043
///
1044
1044
/// ```
1045
- /// #![feature(path_ancestors)]
1046
- ///
1047
1045
/// use std::path::Path;
1048
1046
///
1049
1047
/// let path = Path::new("/foo/bar");
@@ -1056,12 +1054,12 @@ impl<'a> cmp::Ord for Components<'a> {
1056
1054
/// [`ancestors`]: struct.Path.html#method.ancestors
1057
1055
/// [`Path`]: struct.Path.html
1058
1056
#[ derive( Copy , Clone , Debug ) ]
1059
- #[ unstable ( feature = "path_ancestors" , issue = "48581 " ) ]
1057
+ #[ stable ( feature = "path_ancestors" , since = "1.28.0 " ) ]
1060
1058
pub struct Ancestors < ' a > {
1061
1059
next : Option < & ' a Path > ,
1062
1060
}
1063
1061
1064
- #[ unstable ( feature = "path_ancestors" , issue = "48581 " ) ]
1062
+ #[ stable ( feature = "path_ancestors" , since = "1.28.0 " ) ]
1065
1063
impl < ' a > Iterator for Ancestors < ' a > {
1066
1064
type Item = & ' a Path ;
1067
1065
@@ -1075,7 +1073,7 @@ impl<'a> Iterator for Ancestors<'a> {
1075
1073
}
1076
1074
}
1077
1075
1078
- #[ unstable ( feature = "path_ancestors" , issue = "48581 " ) ]
1076
+ #[ stable ( feature = "path_ancestors" , since = "1.28.0 " ) ]
1079
1077
impl < ' a > FusedIterator for Ancestors < ' a > { }
1080
1078
1081
1079
////////////////////////////////////////////////////////////////////////////////
@@ -1890,8 +1888,6 @@ impl Path {
1890
1888
/// # Examples
1891
1889
///
1892
1890
/// ```
1893
- /// #![feature(path_ancestors)]
1894
- ///
1895
1891
/// use std::path::Path;
1896
1892
///
1897
1893
/// let mut ancestors = Path::new("/foo/bar").ancestors();
@@ -1903,7 +1899,7 @@ impl Path {
1903
1899
///
1904
1900
/// [`None`]: ../../std/option/enum.Option.html#variant.None
1905
1901
/// [`parent`]: struct.Path.html#method.parent
1906
- #[ unstable ( feature = "path_ancestors" , issue = "48581 " ) ]
1902
+ #[ stable ( feature = "path_ancestors" , since = "1.28.0 " ) ]
1907
1903
pub fn ancestors ( & self ) -> Ancestors {
1908
1904
Ancestors {
1909
1905
next : Some ( & self ) ,
0 commit comments