Here, this crate causes UB by "Producing an invalid value". Concretely, it produces a value of an arbitrary type L with mem::uninitialized(). In the near future the call to mem::uninitialized()will panic to avoid UB, and our crater run determined that this crate will be affected.
mem::uninitialized() is deprecated since Rust 1.39. The intended replacement is MaybeUninit, which tracks the possibility of uninitialized values at the type level to make sure the compiler does not make any false assumptions.
Here, this crate causes UB by "Producing an invalid value". Concretely, it produces a value of an arbitrary type
L
withmem::uninitialized()
. In the near future the call tomem::uninitialized()
will panic to avoid UB, and our crater run determined that this crate will be affected.mem::uninitialized()
is deprecated since Rust 1.39. The intended replacement isMaybeUninit
, which tracks the possibility of uninitialized values at the type level to make sure the compiler does not make any false assumptions.