diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-19 07:10:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-19 07:10:03 +0200 |
| commit | beec0a5db4ec2a103ad4374788ce05bd4e6b0d82 (patch) | |
| tree | 86930db0e8c3238370b05fe874b6311aa8f35e88 /src/liballoc/tests/lib.rs | |
| parent | 14f0ed64e306cfc232c3209985afb53fa2cadbb2 (diff) | |
| parent | 227db40a98e5bd903aa3658c16f19a3d6f694deb (diff) | |
| download | rust-beec0a5db4ec2a103ad4374788ce05bd4e6b0d82.tar.gz rust-beec0a5db4ec2a103ad4374788ce05bd4e6b0d82.zip | |
Rollup merge of #65174 - SimonSapin:zero-box, r=alexcrichton
Fix zero-size uninitialized boxes Requesting a zero-size allocation is not allowed, return a dangling pointer instead. CC https://github.com/rust-lang/rust/issues/63291#issuecomment-538692745
Diffstat (limited to 'src/liballoc/tests/lib.rs')
| -rw-r--r-- | src/liballoc/tests/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index f2a2c80f2f7..676874c8b27 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -2,6 +2,7 @@ #![feature(box_syntax)] #![feature(drain_filter)] #![feature(exact_size_is_empty)] +#![feature(new_uninit)] #![feature(option_flattening)] #![feature(pattern)] #![feature(trusted_len)] @@ -14,6 +15,7 @@ use std::collections::hash_map::DefaultHasher; mod arc; mod binary_heap; +mod boxed; mod btree; mod cow_str; mod fmt; |
