Expand description
A simple const eval API, for use on arbitrary HIR expressions.
This cannot use rustc’s const eval, aka miri, as arbitrary HIR expressions cannot be lowered to executable MIR bodies, so we have to do this instead.
Structs§
- The context required to evaluate a constant expression.
Enums§
- A
LitKind
-like enum to fold constantExpr
s into. - The source of a constant value.
Traits§
Functions§
- Parses a
LitKind
to aConstant
.