File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -1224,14 +1224,6 @@ impl Into<Box<Path>> for PathBuf {
12241224 }
12251225}
12261226
1227- #[ stable( feature = "box_default_extra" , since = "1.17.0" ) ]
1228- impl Default for Box < Path > {
1229- fn default ( ) -> Box < Path > {
1230- let boxed: Box < OsStr > = Default :: default ( ) ;
1231- unsafe { mem:: transmute ( boxed) }
1232- }
1233- }
1234-
12351227#[ stable( feature = "rust1" , since = "1.0.0" ) ]
12361228impl < ' a , T : ?Sized + AsRef < OsStr > > From < & ' a T > for PathBuf {
12371229 fn from ( s : & ' a T ) -> PathBuf {
@@ -3730,10 +3722,4 @@ mod tests {
37303722 assert_eq ! ( & * boxed, & * path_buf) ;
37313723 assert_eq ! ( & * path_buf, path) ;
37323724 }
3733-
3734- #[ test]
3735- fn boxed_default ( ) {
3736- let boxed = <Box < Path > >:: default ( ) ;
3737- assert ! ( boxed. as_os_str( ) . is_empty( ) ) ;
3738- }
37393725}
You can’t perform that action at this time.
0 commit comments