diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-07 18:37:33 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-18 11:01:54 +0100 |
| commit | 397ae3cdf641b8d303ab9d004013f956c2991727 (patch) | |
| tree | a4f58366f1ee42d8f988fe126f653d7a8a590b05 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 85f01386daef14e107cb87c27fc6271f1f2fa584 (diff) | |
| download | rust-397ae3cdf641b8d303ab9d004013f956c2991727.tar.gz rust-397ae3cdf641b8d303ab9d004013f956c2991727.zip | |
fix outdated comment
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs index 12a46184d10..23e11748e52 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs @@ -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( |
