diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-08-11 12:55:14 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-08-14 05:39:53 -0400 |
| commit | 2601c864878412814134f417b7a738e5ee8898f2 (patch) | |
| tree | 494a8734730f506a23e08e2b4f8c948565c375bb /src/liballoc/collections | |
| parent | e9b3a0176440fa1696c730b55d82e68e8e6c41f6 (diff) | |
| download | rust-2601c864878412814134f417b7a738e5ee8898f2.tar.gz rust-2601c864878412814134f417b7a738e5ee8898f2.zip | |
Handle cfg(bootstrap) throughout
Diffstat (limited to 'src/liballoc/collections')
| -rw-r--r-- | src/liballoc/collections/btree/node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/collections/btree/node.rs b/src/liballoc/collections/btree/node.rs index e067096f0c7..0b5a271dbea 100644 --- a/src/liballoc/collections/btree/node.rs +++ b/src/liballoc/collections/btree/node.rs @@ -106,8 +106,8 @@ impl<K, V> LeafNode<K, V> { LeafNode { // As a general policy, we leave fields uninitialized if they can be, as this should // be both slightly faster and easier to track in Valgrind. - keys: uninit_array![_; CAPACITY], - vals: uninit_array![_; CAPACITY], + keys: [MaybeUninit::UNINIT; CAPACITY], + vals: [MaybeUninit::UNINIT; CAPACITY], parent: ptr::null(), parent_idx: MaybeUninit::uninit(), len: 0 @@ -159,7 +159,7 @@ impl<K, V> InternalNode<K, V> { unsafe fn new() -> Self { InternalNode { data: LeafNode::new(), - edges: uninit_array![_; 2*B], + edges: [MaybeUninit::UNINIT; 2*B] } } } |
