rust/compiler/rustc_middle
Matthias Krüger 4aa4ce6ee2
Rollup merge of #109621 - scottmcm:update-variantidx, r=compiler-errors
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](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_target/abi/struct.VariantIdx.html).
2023-03-26 08:39:28 +02:00
..
src Rollup merge of #109621 - scottmcm:update-variantidx, r=compiler-errors 2023-03-26 08:39:28 +02:00
Cargo.toml Upgrade thin-vec from 0.2.9 to 0.2.12. 2023-02-21 11:51:55 +11:00
messages.ftl Simplify message paths 2023-03-11 22:51:57 +01:00
README.md

For more information about how rustc works, see the rustc dev guide.