File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1904,10 +1904,10 @@ impl<'a> FromIterator<String> for Cow<'a, str> {
19041904 }
19051905}
19061906
1907- #[ stable( feature = "rust1 " , since = "1.0 .0" ) ]
1908- impl Into < Vec < u8 > > for String {
1909- fn into ( self ) -> Vec < u8 > {
1910- self . into_bytes ( )
1907+ #[ stable( feature = "from_string_for_vec_u8 " , since = "1.14 .0" ) ]
1908+ impl From < String > for Vec < u8 > {
1909+ fn from ( string : String ) -> Vec < u8 > {
1910+ string . into_bytes ( )
19111911 }
19121912}
19131913
Original file line number Diff line number Diff line change @@ -1172,6 +1172,13 @@ impl From<OsString> for PathBuf {
11721172 }
11731173}
11741174
1175+ #[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
1176+ impl From < PathBuf > for OsString {
1177+ fn from ( path_buf : PathBuf ) -> OsString {
1178+ path_buf. inner
1179+ }
1180+ }
1181+
11751182#[ stable( feature = "rust1" , since = "1.0.0" ) ]
11761183impl From < String > for PathBuf {
11771184 fn from ( s : String ) -> PathBuf {
@@ -1282,13 +1289,6 @@ impl AsRef<OsStr> for PathBuf {
12821289 }
12831290}
12841291
1285- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1286- impl Into < OsString > for PathBuf {
1287- fn into ( self ) -> OsString {
1288- self . inner
1289- }
1290- }
1291-
12921292/// A slice of a path (akin to [`str`]).
12931293///
12941294/// This type supports a number of operations for inspecting a path, including
You can’t perform that action at this time.
0 commit comments