about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-14 00:59:01 +0000
committerbors <bors@rust-lang.org>2021-05-14 00:59:01 +0000
commit754d17121d04d02bee634558129110b68fa95b00 (patch)
treeabc4e08170a57c707d9b8a5ed659811bbfdc0219 /src/librustdoc/html/static/source-script.js
parent17f30e5451f581d753899d2f628e5be354df33cd (diff)
parente400595190a221f67e19c0eea8163ef8b10e6458 (diff)
downloadrust-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