diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2023-12-19 18:14:34 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2023-12-23 00:04:20 +0100 |
| commit | f6af7478ba66fc016b5baabd689883b88316bfc2 (patch) | |
| tree | af64f90d3de5fadda0226de10a3f2d5456737508 /compiler/rustc_index/src | |
| parent | c6aa16c469146082613aebbd138d1614c5254131 (diff) | |
| download | rust-f6af7478ba66fc016b5baabd689883b88316bfc2.tar.gz rust-f6af7478ba66fc016b5baabd689883b88316bfc2.zip | |
Mention the relevant tracking issue next to my `bit_set` hack
Diffstat (limited to 'compiler/rustc_index/src')
| -rw-r--r-- | compiler/rustc_index/src/bit_set.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_index/src/bit_set.rs b/compiler/rustc_index/src/bit_set.rs index 3ea1a52ae28..d730ef58deb 100644 --- a/compiler/rustc_index/src/bit_set.rs +++ b/compiler/rustc_index/src/bit_set.rs @@ -502,6 +502,7 @@ impl<T: Idx> ChunkedBitSet<T> { }; #[cfg(not(feature = "nightly"))] let mut words = { + // FIXME: unconditionally use `Rc::new_zeroed` once it is stable (#63291). let words = mem::MaybeUninit::<[Word; CHUNK_WORDS]>::zeroed(); // SAFETY: `words` can safely be all zeroes. let words = unsafe { words.assume_init() }; @@ -567,6 +568,7 @@ impl<T: Idx> ChunkedBitSet<T> { }; #[cfg(not(feature = "nightly"))] let mut words = { + // FIXME: unconditionally use `Rc::new_zeroed` once it is stable (#63291). let words = mem::MaybeUninit::<[Word; CHUNK_WORDS]>::zeroed(); // SAFETY: `words` can safely be all zeroes. let words = unsafe { words.assume_init() }; |
