about summary refs log tree commit diff
path: root/tests/rustdoc-ui/coverage/enum-tuple.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-19 16:48:07 +0800
committerGitHub <noreply@github.com>2024-12-19 16:48:07 +0800
commitb39498c727671a315a548c6d1509fb9f726937cf (patch)
tree14eaf341795b8d25532f75bfd94f4219e5511acc /tests/rustdoc-ui/coverage/enum-tuple.rs
parentc3eed20ab1df4ac0b39418f1243accdc45a937c9 (diff)
parentbd26db466465b82546daed7cbf96d872637970c3 (diff)
downloadrust-b39498c727671a315a548c6d1509fb9f726937cf.tar.gz
rust-b39498c727671a315a548c6d1509fb9f726937cf.zip
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
Diffstat (limited to 'tests/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions