1
Fork 0
rust/compiler/rustc_mir_build
bors 754d17121d Auto merge of #85195 - Mark-Simulacrum:variant-by-idx, r=petrochenkov
Store VariantIdx to distinguish enum variants

This saves ~24% of the instructions on the match-stress-enum benchmark, but I'm not 100% sure that this is OK - if we ever compare two constructors across enums (e.g., a Result and an Option), then this is obviously insufficient; I can experiment with continuing to store the DefId for comparison purposes in that case.
2021-05-14 00:59:01 +00:00
..
src Auto merge of #85195 - Mark-Simulacrum:variant-by-idx, r=petrochenkov 2021-05-14 00:59:01 +00:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00