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> {
12101210 }
12111211}
12121212
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-
12211213#[ stable( feature = "rust1" , since = "1.0.0" ) ]
12221214impl < ' a , T : ?Sized + AsRef < OsStr > > From < & ' a T > for PathBuf {
12231215 fn from ( s : & ' a T ) -> PathBuf {
@@ -3710,10 +3702,4 @@ mod tests {
37103702 assert_eq ! ( box1, box2) ;
37113703 assert_eq ! ( & * box2, path) ;
37123704 }
3713-
3714- #[ test]
3715- fn boxed_default ( ) {
3716- let boxed = <Box < Path > >:: default ( ) ;
3717- assert ! ( boxed. as_os_str( ) . is_empty( ) ) ;
3718- }
37193705}
You can’t perform that action at this time.
0 commit comments