File tree 4 files changed +16
-16
lines changed
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -2008,10 +2008,10 @@ impl From<Box<str>> for String {
2008
2008
}
2009
2009
}
2010
2010
2011
- #[ stable( feature = "box_from_str" , since = "1.18 .0" ) ]
2012
- impl Into < Box < str > > for String {
2013
- fn into ( self ) -> Box < str > {
2014
- self . into_boxed_str ( )
2011
+ #[ stable( feature = "box_from_str" , since = "1.20 .0" ) ]
2012
+ impl From < String > for Box < str > {
2013
+ fn from ( s : String ) -> Box < str > {
2014
+ s . into_boxed_str ( )
2015
2015
}
2016
2016
}
2017
2017
Original file line number Diff line number Diff line change @@ -585,11 +585,11 @@ impl From<Box<CStr>> for CString {
585
585
}
586
586
}
587
587
588
- #[ stable( feature = "box_from_c_string" , since = "1.18 .0" ) ]
589
- impl Into < Box < CStr > > for CString {
588
+ #[ stable( feature = "box_from_c_string" , since = "1.20 .0" ) ]
589
+ impl From < CString > for Box < CStr > {
590
590
#[ inline]
591
- fn into ( self ) -> Box < CStr > {
592
- self . into_boxed_c_str ( )
591
+ fn from ( s : CString ) -> Box < CStr > {
592
+ s . into_boxed_c_str ( )
593
593
}
594
594
}
595
595
Original file line number Diff line number Diff line change @@ -540,10 +540,10 @@ impl From<Box<OsStr>> for OsString {
540
540
}
541
541
}
542
542
543
- #[ stable( feature = "box_from_os_string" , since = "1.18 .0" ) ]
544
- impl Into < Box < OsStr > > for OsString {
545
- fn into ( self ) -> Box < OsStr > {
546
- self . into_boxed_os_str ( )
543
+ #[ stable( feature = "box_from_os_string" , since = "1.20 .0" ) ]
544
+ impl From < OsString > for Box < OsStr > {
545
+ fn from ( s : OsString ) -> Box < OsStr > {
546
+ s . into_boxed_os_str ( )
547
547
}
548
548
}
549
549
Original file line number Diff line number Diff line change @@ -1348,10 +1348,10 @@ impl From<Box<Path>> for PathBuf {
1348
1348
}
1349
1349
}
1350
1350
1351
- #[ stable( feature = "box_from_path_buf" , since = "1.18 .0" ) ]
1352
- impl Into < Box < Path > > for PathBuf {
1353
- fn into ( self ) -> Box < Path > {
1354
- self . into_boxed_path ( )
1351
+ #[ stable( feature = "box_from_path_buf" , since = "1.20 .0" ) ]
1352
+ impl From < PathBuf > for Box < Path > {
1353
+ fn from ( p : PathBuf ) -> Box < Path > {
1354
+ p . into_boxed_path ( )
1355
1355
}
1356
1356
}
1357
1357
You can’t perform that action at this time.
0 commit comments