Module rustc_mir::transform::remove_zsts[−][src]

Removes assignments to ZST places.

Structs

RemoveZsts

Functions

involves_a_union

Miri lazily allocates memory for locals on assignment, so we must preserve writes to unions and union fields, or it will ICE on reads of those fields.

is_union
maybe_zst

A cheap, approximate check to avoid unnecessary layout_of calls.