rustc_mir_transform
1.78.0-dev
Module uninhabited_enum_branching
Structs
Functions
In crate rustc_mir_transform
?
Module
rustc_mir_transform
::
uninhabited_enum_branching
source
·
[
−
]
Expand description
A pass that eliminates branches on uninhabited enum variants.
Structs
§
UninhabitedEnumBranching
Functions
§
get_discriminant_local
🔒
get_switched_on_type
🔒
If the basic block terminates by switching on a discriminant, this returns the
Ty
the discriminant is read from. Otherwise, returns None.
variant_discriminants
🔒