rust/compiler/rustc_const_eval/src/transform
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
..
check_consts Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
mod.rs Don't re-export MirPass 2021-11-29 12:58:15 -08:00
promote_consts.rs use Result<(),()> instead of Validity enum 2022-05-09 17:13:30 +08:00
validate.rs Check that field projections have the correct type 2022-05-06 16:43:09 -04:00