about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
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
commit0439d131768081174fe4ed53a6f09d41a9e5629f (patch)
treeefc8f62e4d041d9dd08285d87787e0ae71884583 /compiler/rustc_trait_selection/src/errors.rs
parent96bd50dd47b645efa52d1312b9cc32e507d9cd76 (diff)
downloadrust-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_trait_selection/src/errors.rs')
0 files changed, 0 insertions, 0 deletions