Files
rust/compiler/rustc_codegen_cranelift/src
许杰友 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
..
2024-12-06 16:42:09 -05:00
2024-07-29 08:26:52 +10:00
2024-12-06 16:42:09 -05:00
2024-12-18 23:23:44 +08:00
2024-12-06 16:42:09 -05:00
2024-05-17 20:33:02 -07:00
2024-12-06 16:42:09 -05:00