diff options
| author | bors <bors@rust-lang.org> | 2021-05-14 00:59:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-14 00:59:01 +0000 |
| commit | 754d17121d04d02bee634558129110b68fa95b00 (patch) | |
| tree | abc4e08170a57c707d9b8a5ed659811bbfdc0219 /src/librustdoc/html/static/source-script.js | |
| parent | 17f30e5451f581d753899d2f628e5be354df33cd (diff) | |
| parent | e400595190a221f67e19c0eea8163ef8b10e6458 (diff) | |
| download | rust-754d17121d04d02bee634558129110b68fa95b00.tar.gz rust-754d17121d04d02bee634558129110b68fa95b00.zip | |
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.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions
