rust/compiler/rustc_const_eval/src
bors e013f9e0ca Auto merge of #96815 - SparrowLii:promote_const, r=oli-obk
optimize `promote_consts` by caching the results of `validate_local`

From the FIXME in the impl of `promote_consts`. Early return the `validate_local` should save some compile time.

`qualif_local` is similar to this, but requires futher changing because there are different types of qualif checks. If this PR is effective, I will do it as well.
2022-05-09 11:49:09 +00:00
..
const_eval rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
interpret give it a scary name 2022-05-05 09:55:38 +02:00
transform Auto merge of #96815 - SparrowLii:promote_const, r=oli-obk 2022-05-09 11:49:09 +00:00
util rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
lib.rs Stabilize bool::then_some 2022-05-04 13:22:08 +02:00