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
In the most recent update, Rust provides two methods permits_zero_init and permits_uninit_init for the type context (where layout is the argument) instead of the method might_permit_raw_init for layouts.
Rust's
layout.might_permit_raw_init
went from taking true/false flag to taking:InitKind::Zero, *
which corresponds to the oldtrue
(and the intrinsicassert_zero_valid
)InitKind::Uninit, false
which corresponds to the oldfalse
(and the instrinsicassert_uninit_valid
)InitKind::Uninit, false
which adds an additional strict check. Unclear if we want it for something.Upstream PR: rust-lang/rust#97323
The text was updated successfully, but these errors were encountered: