mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 04:07:08 +00:00
add the `const_evaluatable_checked` feature Implements a rather small subset of https://github.com/rust-lang/compiler-team/issues/340 Unlike the MCP, this does not try to compare different constant, but instead only adds the constants found in where clauses to the predicates of a function. This PR adds the feature gate `const_evaluatable_checked`, without which nothing should change. r? @oli-obk @eddyb
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.