rust/compiler/rustc_mir_transform
许杰友 Jieyou Xu (Joe) 2a43ce03fb
Rollup merge of #133702 - RalfJung:single-variant, r=oli-obk
Variants::Single: do not use invalid VariantIdx for uninhabited enums

~~Stacked on top of https://github.com/rust-lang/rust/pull/133681, only the last commit is new.~~

Currently, `Variants::Single` for an empty enum contains a `VariantIdx` of 0; looking that up in the enum variant list will ICE. That's quite confusing. So let's fix that by adding a new `Variants::Empty` case for types that have 0 variants.

try-job: i686-msvc
2024-12-19 16:48:07 +08:00
..
src Rollup merge of #133702 - RalfJung:single-variant, r=oli-obk 2024-12-19 16:48:07 +08:00
Cargo.toml rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
messages.ftl reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00