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 {
1224
1224
}
1225
1225
}
1226
1226
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
-
1235
1227
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1236
1228
impl < ' a , T : ?Sized + AsRef < OsStr > > From < & ' a T > for PathBuf {
1237
1229
fn from ( s : & ' a T ) -> PathBuf {
@@ -3730,10 +3722,4 @@ mod tests {
3730
3722
assert_eq ! ( & * boxed, & * path_buf) ;
3731
3723
assert_eq ! ( & * path_buf, path) ;
3732
3724
}
3733
-
3734
- #[ test]
3735
- fn boxed_default ( ) {
3736
- let boxed = <Box < Path > >:: default ( ) ;
3737
- assert ! ( boxed. as_os_str( ) . is_empty( ) ) ;
3738
- }
3739
3725
}
You can’t perform that action at this time.
0 commit comments