about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-03-25 18:43:03 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-03-25 18:58:25 -0700
commitbb5ac03edb1ee162fc6ace8985be98a93ba406f7 (patch)
tree4528a8f650d3e72182cc36fe9811561f205a2fe1 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent7ac6cc905e082e6f5af7138c6fff829a91cb146b (diff)
downloadrust-bb5ac03edb1ee162fc6ace8985be98a93ba406f7.tar.gz
rust-bb5ac03edb1ee162fc6ace8985be98a93ba406f7.zip
Refactor: `VariantIdx::from_u32(0)` -> `FIRST_VARIANT`
Since structs are always `VariantIdx(0)`, there's a bunch of files where the only reason they had `VariantIdx` or `vec::Idx` imported at all was to get the first variant.

So this uses a constant for that, and adds some doc-comments to `VariantIdx` while I'm there, since it doesn't have any today.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions