@@ -119,7 +119,7 @@ const SINGLE_VARIANT_VIRTUAL_DISR: u64 = 0;
119
119
///
120
120
/// The following pseudocode shows how to decode an enum value in a debugger:
121
121
///
122
- /// ```ignore
122
+ /// ```text
123
123
///
124
124
/// fn find_active_variant(enum_value) -> (VariantName, VariantValue) {
125
125
/// let is_128_bit = enum_value.has_field("tag128_lo");
@@ -365,7 +365,7 @@ fn build_single_variant_union_fields<'ll, 'tcx>(
365
365
unknown_file_metadata( cx) ,
366
366
UNKNOWN_LINE_NUMBER ,
367
367
variant_names_type_di_node,
368
- DIFlags :: FlagArtificial ,
368
+ DIFlags :: FlagZero ,
369
369
Some ( cx. const_u64( SINGLE_VARIANT_VIRTUAL_DISR ) ) ,
370
370
tag_base_type_align. bits( ) as u32 ,
371
371
)
@@ -482,7 +482,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
482
482
// NOTE: We use size and align of enum_type, not from variant_layout:
483
483
size_and_align_of ( enum_or_generator_type_and_layout) ,
484
484
Some ( enum_or_generator_type_di_node) ,
485
- DIFlags :: FlagArtificial ,
485
+ DIFlags :: FlagZero ,
486
486
) ,
487
487
|cx, wrapper_struct_type_di_node| {
488
488
enum DiscrKind {
@@ -526,7 +526,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
526
526
"value" ,
527
527
size_and_align_of ( enum_or_generator_type_and_layout) ,
528
528
Size :: ZERO ,
529
- DIFlags :: FlagArtificial ,
529
+ DIFlags :: FlagZero ,
530
530
variant_struct_type_di_node,
531
531
) ) ;
532
532
@@ -540,7 +540,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
540
540
unknown_file_metadata ( cx) ,
541
541
UNKNOWN_LINE_NUMBER ,
542
542
type_di_node,
543
- DIFlags :: FlagArtificial ,
543
+ DIFlags :: FlagZero ,
544
544
Some ( cx. const_u64 ( value) ) ,
545
545
align. bits ( ) as u32 ,
546
546
)
0 commit comments