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 | 0439d131768081174fe4ed53a6f09d41a9e5629f (patch) | |
| tree | efc8f62e4d041d9dd08285d87787e0ae71884583 /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | 96bd50dd47b645efa52d1312b9cc32e507d9cd76 (diff) | |
| download | rust-0439d131768081174fe4ed53a6f09d41a9e5629f.tar.gz rust-0439d131768081174fe4ed53a6f09d41a9e5629f.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 'compiler/rustc_codegen_llvm/src/context.rs')
0 files changed, 0 insertions, 0 deletions
