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 @@ -1173,6 +1173,13 @@ impl From<OsString> for PathBuf {
11731173 }
11741174}
11751175
1176+ #[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
1177+ impl From < PathBuf > for OsString {
1178+ fn from ( path_buf : PathBuf ) -> OsString {
1179+ path_buf. inner
1180+ }
1181+ }
1182+
11761183#[ stable( feature = "rust1" , since = "1.0.0" ) ]
11771184impl From < String > for PathBuf {
11781185 fn from ( s : String ) -> PathBuf {
@@ -1283,13 +1290,6 @@ impl AsRef<OsStr> for PathBuf {
12831290 }
12841291}
12851292
1286- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1287- impl Into < OsString > for PathBuf {
1288- fn into ( self ) -> OsString {
1289- self . inner
1290- }
1291- }
1292-
12931293/// A slice of a path (akin to [`str`]).
12941294///
12951295/// This type supports a number of operations for inspecting a path, including
You can’t perform that action at this time.
0 commit comments