rust/compiler/rustc_middle/src
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
..
dep_graph
hir RPITITs are DefKind::Opaque with new lowering strategy 2023-03-21 23:36:07 +00:00
infer
middle
mir Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
query rustc_interface: Add a new query pre_configure 2023-03-23 14:22:48 +04:00
thir
traits woops 2023-03-21 16:39:24 +01:00
ty Rollup merge of #109621 - scottmcm:update-variantidx, r=compiler-errors 2023-03-26 08:39:28 +02:00
util
arena.rs rustc_interface: Add a new query pre_configure 2023-03-23 14:22:48 +04:00
error.rs
lib.rs
lint.rs
macros.rs
metadata.rs
tests.rs
thir.rs
values.rs