mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Mention the relevant tracking issue next to my bit_set
hack
This commit is contained in:
parent
c6aa16c469
commit
f6af7478ba
@ -502,6 +502,7 @@ impl<T: Idx> ChunkedBitSet<T> {
|
|||||||
};
|
};
|
||||||
#[cfg(not(feature = "nightly"))]
|
#[cfg(not(feature = "nightly"))]
|
||||||
let mut words = {
|
let mut words = {
|
||||||
|
// FIXME: unconditionally use `Rc::new_zeroed` once it is stable (#63291).
|
||||||
let words = mem::MaybeUninit::<[Word; CHUNK_WORDS]>::zeroed();
|
let words = mem::MaybeUninit::<[Word; CHUNK_WORDS]>::zeroed();
|
||||||
// SAFETY: `words` can safely be all zeroes.
|
// SAFETY: `words` can safely be all zeroes.
|
||||||
let words = unsafe { words.assume_init() };
|
let words = unsafe { words.assume_init() };
|
||||||
@ -567,6 +568,7 @@ impl<T: Idx> ChunkedBitSet<T> {
|
|||||||
};
|
};
|
||||||
#[cfg(not(feature = "nightly"))]
|
#[cfg(not(feature = "nightly"))]
|
||||||
let mut words = {
|
let mut words = {
|
||||||
|
// FIXME: unconditionally use `Rc::new_zeroed` once it is stable (#63291).
|
||||||
let words = mem::MaybeUninit::<[Word; CHUNK_WORDS]>::zeroed();
|
let words = mem::MaybeUninit::<[Word; CHUNK_WORDS]>::zeroed();
|
||||||
// SAFETY: `words` can safely be all zeroes.
|
// SAFETY: `words` can safely be all zeroes.
|
||||||
let words = unsafe { words.assume_init() };
|
let words = unsafe { words.assume_init() };
|
||||||
|
Loading…
Reference in New Issue
Block a user