rust/compiler/rustc_const_eval
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
..
src Auto merge of #96815 - SparrowLii:promote_const, r=oli-obk 2022-05-09 11:49:09 +00:00
Cargo.toml