clippy::uninit_vec
(probable) false positive for Vec<UnsafeCell<MaybeUninit<T>>>
#13364
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
AFAIU an
UnsafeCell<MaybeUninit<T>>
doesn't need to be initialized, although I couldn't find anything definite about this.clippy::uninit_vec
should therefore not trigger on a vector with this element type.Lint Name
clippy::uninit_vec
Reproducer
I tried this code:
I saw this happen:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: