uninit_vec
FP on Vec<MaybeUninit<T>>
#10565
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
Basic examples of
uninit_vec
seem to be broken. I think this is a regression but I'm not positive. In particular the example from #10407 is also broken. In short, the lint is supposed to not fire if the element type isMaybeUninit<T>
or similar types based on it which allow uninit values, but it doesn't seem to work.Lint Name
uninit_vec
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: no error
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: