We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11a3376 commit 0739eceCopy full SHA for 0739ece
src/libstd/path.rs
@@ -1224,14 +1224,6 @@ impl Into<Box<Path>> for PathBuf {
1224
}
1225
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
#[stable(feature = "rust1", since = "1.0.0")]
1236
impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for PathBuf {
1237
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
0 commit comments