os-rust/compiler/rustc_codegen_ssa
许杰友 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 make no-variant types a dedicated Variants variant 2024-12-18 11:01:54 +01:00
Cargo.toml Auto merge of #134425 - clubby789:cargo-update, r=jieyouxu 2024-12-18 09:23:22 +00:00
messages.ftl fix: rust-lang/rust#47446 2024-11-15 15:25:19 +01:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.