diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-25 18:43:03 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-25 18:58:25 -0700 |
| commit | bb5ac03edb1ee162fc6ace8985be98a93ba406f7 (patch) | |
| tree | 4528a8f650d3e72182cc36fe9811561f205a2fe1 /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff | |
| parent | 7ac6cc905e082e6f5af7138c6fff829a91cb146b (diff) | |
| download | rust-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_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
