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 @@ -1210,14 +1210,6 @@ impl<'a> From<&'a Path> for Box<Path> {
1210
1210
}
1211
1211
}
1212
1212
1213
- #[ stable( feature = "box_default_extra" , since = "1.17.0" ) ]
1214
- impl Default for Box < Path > {
1215
- fn default ( ) -> Box < Path > {
1216
- let boxed: Box < OsStr > = Default :: default ( ) ;
1217
- unsafe { mem:: transmute ( boxed) }
1218
- }
1219
- }
1220
-
1221
1213
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1222
1214
impl < ' a , T : ?Sized + AsRef < OsStr > > From < & ' a T > for PathBuf {
1223
1215
fn from ( s : & ' a T ) -> PathBuf {
@@ -3710,10 +3702,4 @@ mod tests {
3710
3702
assert_eq ! ( box1, box2) ;
3711
3703
assert_eq ! ( & * box2, path) ;
3712
3704
}
3713
-
3714
- #[ test]
3715
- fn boxed_default ( ) {
3716
- let boxed = <Box < Path > >:: default ( ) ;
3717
- assert ! ( boxed. as_os_str( ) . is_empty( ) ) ;
3718
- }
3719
3705
}
You can’t perform that action at this time.
0 commit comments