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. |
||
|---|---|---|
| .. | ||
| build | ||
| thir | ||
| check_unsafety.rs | ||
| lib.rs | ||
| lints.rs | ||