mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-22 04:27:33 +00:00
![]() Use `const_eval_select!()` macro to enable contract checking only at runtime. The existing contract logic relies on closures, which are not supported in constant functions. This commit also removes one level of indirection for ensures clauses, however, it currently has a spurious warning message when the bottom of the function is unreachable. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |