You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2020. It is now read-only.
Here, this crate causes UB by "Producing an invalid value". Concretely, it produces a value of type geometry::ray::ShearingTransformCache with mem::uninitialized(), which contains a Permulation, which is an enum and thus must always contain a valid enum variant. 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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here, this crate causes UB by "Producing an invalid value". Concretely, it produces a value of type
geometry::ray::ShearingTransformCache
withmem::uninitialized()
, which contains aPermulation
, which is anenum
and thus must always contain a valid enum variant. 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.The text was updated successfully, but these errors were encountered: