mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 20:53:21 +00:00
Auto merge of #98919 - 5225225:stricter-invalid-value, r=RalfJung
Strengthen invalid_value lint to forbid uninit primitives, adjust docs to say that's UB For context: https://github.com/rust-lang/rust/issues/66151#issuecomment-1174477404= This does not make it a FCW, but it does explicitly state in the docs that uninit integers are UB. This also doesn't affect any runtime behavior, uninit u32's will still successfully be created through mem::uninitialized.
This commit is contained in:
commit
7ba06ec9c5
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
#![feature(stmt_expr_attributes)]
|
||||
#![allow(clippy::let_unit_value)]
|
||||
#![allow(clippy::let_unit_value, invalid_value)]
|
||||
|
||||
use std::mem::{self, MaybeUninit};
|
||||
|
||||
|
|
Loading…
Reference in a new issue