Expand description
A lint that checks for known panics like overflows, division by zero, out-of-bound access etc. Uses const propagation to determine the values of operands during checks.
Structsยง
- CanConst
Prop ๐ - A visitor that determines locals in a MIR body that can be const propagated
- Const
Propagator ๐ - Visits MIR nodes, performs const propagation and runs lint checks as it goes
- Known
Panics ๐Lint
Enumsยง
- Const
Prop ๐Mode - The mode that
ConstProp
is allowed to run in for a givenLocal
. - Value ๐
Constantsยง
- MAX_
ALLOC_ ๐LIMIT - The maximum number of bytes that weโll allocate space for a local or the return value. Needed for #66397, because otherwise we eval into large places and that can cause OOM or just Severely regress performance.