Skip to content

Commit 0739ece

Browse files
author
Clar Charr
committed
Removes Default for Box<Path>.
1 parent 11a3376 commit 0739ece

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/libstd/path.rs

-14
Original file line numberDiff line numberDiff 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")]
12361228
impl<'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
}

0 commit comments

Comments
 (0)