Skip to content

Commit ce482f3

Browse files
Clar Charralexcrichton
authored andcommitted
Removes Default for Box<Path>.
1 parent 2475eb3 commit ce482f3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/libstd/path.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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")]
12221214
impl<'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
}

0 commit comments

Comments
 (0)