Closed
Description
Eventually, we want rustc to be able to limit the amount of time spent evaluating a constant value, since Miri const eval could have infinite loops or simply very long calculations.
Thanks to the EvalContext::step
interface, this should be pretty easy. Likely, we can just have a step count limit which will be configurable like rustc's recursion_depth
.