@@ -99,7 +99,7 @@ const SINGLE_VARIANT_VIRTUAL_DISR: u64 = 0;
99
99
/// compiler versions.
100
100
///
101
101
/// Niche-tag enums have one special variant, usually called the
102
- /// "dataful variant". This variant has a field that
102
+ /// "untagged variant". This variant has a field that
103
103
/// doubles as the tag of the enum. The variant is active when the value of
104
104
/// that field is within a pre-defined range. Therefore the variant struct
105
105
/// has a `DISCR_BEGIN` and `DISCR_END` field instead of `DISCR_EXACT` in
@@ -249,7 +249,7 @@ pub(super) fn build_enum_type_di_node<'ll, 'tcx>(
249
249
None ,
250
250
) ,
251
251
Variants :: Multiple {
252
- tag_encoding : TagEncoding :: Niche { dataful_variant , .. } ,
252
+ tag_encoding : TagEncoding :: Niche { untagged_variant , .. } ,
253
253
ref variants,
254
254
tag_field,
255
255
..
@@ -260,7 +260,7 @@ pub(super) fn build_enum_type_di_node<'ll, 'tcx>(
260
260
enum_type_di_node,
261
261
variants. indices ( ) ,
262
262
tag_field,
263
- Some ( dataful_variant ) ,
263
+ Some ( untagged_variant ) ,
264
264
) ,
265
265
}
266
266
} ,
@@ -391,7 +391,7 @@ fn build_union_fields_for_enum<'ll, 'tcx>(
391
391
enum_type_di_node : & ' ll DIType ,
392
392
variant_indices : impl Iterator < Item = VariantIdx > + Clone ,
393
393
tag_field : usize ,
394
- dataful_variant_index : Option < VariantIdx > ,
394
+ untagged_variant_index : Option < VariantIdx > ,
395
395
) -> SmallVec < & ' ll DIType > {
396
396
let tag_base_type = super :: tag_base_type ( cx, enum_type_and_layout) ;
397
397
@@ -436,7 +436,7 @@ fn build_union_fields_for_enum<'ll, 'tcx>(
436
436
variant_names_type_di_node,
437
437
tag_base_type,
438
438
tag_field,
439
- dataful_variant_index ,
439
+ untagged_variant_index ,
440
440
)
441
441
}
442
442
@@ -472,7 +472,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
472
472
enum_or_generator_type_and_layout : TyAndLayout < ' tcx > ,
473
473
enum_or_generator_type_di_node : & ' ll DIType ,
474
474
variant_index : VariantIdx ,
475
- dataful_variant_index : Option < VariantIdx > ,
475
+ untagged_variant_index : Option < VariantIdx > ,
476
476
variant_struct_type_di_node : & ' ll DIType ,
477
477
variant_names_type_di_node : & ' ll DIType ,
478
478
tag_base_type_di_node : & ' ll DIType ,
@@ -517,7 +517,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
517
517
}
518
518
}
519
519
DiscrResult :: Range ( min, max) => {
520
- assert_eq ! ( Some ( variant_index) , dataful_variant_index ) ;
520
+ assert_eq ! ( Some ( variant_index) , untagged_variant_index ) ;
521
521
if is_128_bits {
522
522
DiscrKind :: Range128 ( min, max)
523
523
} else {
@@ -757,7 +757,7 @@ fn build_union_fields_for_direct_tag_enum_or_generator<'ll, 'tcx>(
757
757
discr_type_di_node : & ' ll DIType ,
758
758
tag_base_type : Ty < ' tcx > ,
759
759
tag_field : usize ,
760
- dataful_variant_index : Option < VariantIdx > ,
760
+ untagged_variant_index : Option < VariantIdx > ,
761
761
) -> SmallVec < & ' ll DIType > {
762
762
let tag_base_type_di_node = type_di_node ( cx, tag_base_type) ;
763
763
let mut unions_fields = SmallVec :: with_capacity ( variant_field_infos. len ( ) + 1 ) ;
@@ -776,7 +776,7 @@ fn build_union_fields_for_direct_tag_enum_or_generator<'ll, 'tcx>(
776
776
enum_type_and_layout,
777
777
enum_type_di_node,
778
778
variant_member_info. variant_index ,
779
- dataful_variant_index ,
779
+ untagged_variant_index ,
780
780
variant_member_info. variant_struct_type_di_node ,
781
781
discr_type_di_node,
782
782
tag_base_type_di_node,
0 commit comments