@@ -1184,14 +1184,6 @@ impl AsRef<OsStr> for PathBuf {
1184
1184
}
1185
1185
}
1186
1186
1187
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1188
- #[ deprecated( since = "1.0.0" , reason = "trait is deprecated" ) ]
1189
- impl AsOsStr for PathBuf {
1190
- fn as_os_str ( & self ) -> & OsStr {
1191
- & self . inner [ ..]
1192
- }
1193
- }
1194
-
1195
1187
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1196
1188
impl Into < OsString > for PathBuf {
1197
1189
fn into ( self ) -> OsString {
@@ -1652,14 +1644,6 @@ impl AsRef<OsStr> for Path {
1652
1644
}
1653
1645
}
1654
1646
1655
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1656
- #[ deprecated( since = "1.0.0" , reason = "trait is deprecated" ) ]
1657
- impl AsOsStr for Path {
1658
- fn as_os_str ( & self ) -> & OsStr {
1659
- & self . inner
1660
- }
1661
- }
1662
-
1663
1647
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1664
1648
impl fmt:: Debug for Path {
1665
1649
fn fmt ( & self , formatter : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
@@ -1711,22 +1695,6 @@ impl cmp::Ord for Path {
1711
1695
}
1712
1696
}
1713
1697
1714
- /// Freely convertible to a `Path`.
1715
- #[ unstable( feature = "std_misc" ) ]
1716
- #[ deprecated( since = "1.0.0" , reason = "use std::convert::AsRef<Path> instead" ) ]
1717
- pub trait AsPath {
1718
- /// Converts to a `Path`.
1719
- #[ unstable( feature = "std_misc" ) ]
1720
- fn as_path ( & self ) -> & Path ;
1721
- }
1722
-
1723
- #[ unstable( feature = "std_misc" ) ]
1724
- #[ deprecated( since = "1.0.0" , reason = "use std::convert::AsRef<Path> instead" ) ]
1725
- #[ allow( deprecated) ]
1726
- impl < T : AsOsStr + ?Sized > AsPath for T {
1727
- fn as_path ( & self ) -> & Path { Path :: new ( self . as_os_str ( ) ) }
1728
- }
1729
-
1730
1698
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1731
1699
impl AsRef < Path > for Path {
1732
1700
fn as_ref ( & self ) -> & Path { self }
0 commit comments