File tree 1 file changed +4
-5
lines changed
src/librustdoc/html/render
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ pub(crate) fn document_type_layout<'a, 'cx: 'a>(
56
56
} else {
57
57
span_bug ! ( cx. tcx( ) . def_span( ty_def_id) , "tag is neither niche nor int" )
58
58
} ;
59
- let variants = variants
59
+ variants
60
60
. iter_enumerated ( )
61
61
. map ( |( variant_idx, variant_layout) | {
62
62
let Adt ( adt, _) = type_layout. ty . kind ( ) else {
@@ -68,12 +68,11 @@ pub(crate) fn document_type_layout<'a, 'cx: 'a>(
68
68
let size = variant_layout. size . bytes ( ) - tag_size;
69
69
let type_layout_size = TypeLayoutSize { is_unsized, is_uninhabited, size } ;
70
70
( name, type_layout_size)
71
- } ) . collect ( ) ;
72
- variants
71
+ } )
72
+ . collect ( )
73
73
} else {
74
74
Vec :: new ( )
75
- }
76
- ;
75
+ } ;
77
76
78
77
let type_layout_size = tcx. layout_of ( param_env. and ( ty) ) . map ( |layout| {
79
78
let is_unsized = layout. abi . is_unsized ( ) ;
You can’t perform that action at this time.
0 commit comments