Skip to content

Commit 397ae3c

Browse files
RalfJungcjgillot
andcommitted
fix outdated comment
Co-authored-by: Camille Gillot <[email protected]>
1 parent 85f0138 commit 397ae3c

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums

1 file changed

+1
-2
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ pub(super) fn build_enum_type_di_node<'ll, 'tcx>(
213213
|cx, enum_type_di_node| {
214214
match enum_type_and_layout.variants {
215215
Variants::Empty => {
216-
// Uninhabited enums have Variants::Single. We don't generate
217-
// any members for them.
216+
// We don't generate any members for uninhabited types.
218217
return smallvec![];
219218
}
220219
Variants::Single { index: variant_index } => build_single_variant_union_fields(

0 commit comments

Comments
 (0)