Add guarantees regarding `repr(Rust)` structs and enums being ZSTs New rule `layout.repr.rust.struct-zst` adds the guarantee that `repr(Rust)` structs with no fields or all ZST fields are ZSTs. New rule `layout.repr.rust.enum-struct-like-zst` adds the guarantee that `repr(Rust)` enums with a single struct-like variant with no fields or all ZST fields are ZSTs. The glossary entry for ZSTs is expanded with references to these guarantees and examples.
This document is the primary reference for the Rust programming language.
See the Reference Developer Guide for information on contributing to the Reference.