Skip to content

Commit

Permalink
fix outdated comment
Browse files Browse the repository at this point in the history
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
  • Loading branch information
RalfJung and cjgillot committed Dec 18, 2024
1 parent 85f0138 commit 397ae3c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ pub(super) fn build_enum_type_di_node<'ll, 'tcx>(
|cx, enum_type_di_node| {
match enum_type_and_layout.variants {
Variants::Empty => {
// Uninhabited enums have Variants::Single. We don't generate
// any members for them.
// We don't generate any members for uninhabited types.
return smallvec![];
}
Variants::Single { index: variant_index } => build_single_variant_union_fields(
Expand Down

0 comments on commit 397ae3c

Please sign in to comment.