Structsยง
- Check
Enums ๐ - This pass inserts checks for a valid enum discriminant where they are most likely to find UB, because checking everywhere like Miri would generate too much MIR.
- Enum
Finder ๐ - A Visitor that finds the construction of enums and evaluates which checks we should apply.
- TyAnd
Size ๐
Enumsยง
- Enum
Check ๐Type - Represent the different kind of enum checks we can insert.
Functionsยง
- insert_
direct_ ๐enum_ check - insert_
discr_ ๐cast_ to_ u128 - Inserts the cast of an operand (any type) to a u128 value that holds the discriminant value.
- insert_
niche_ ๐check - insert_
uninhabited_ ๐enum_ check - split_
block ๐