optimize promote_consts
by caching the results of validate_local
#96815
Merged
bors merged 2 commits intorust-lang:masterfrom May 9, 2022
promote_consts
by caching the results of validate_local
#96815