@@ -21,7 +21,7 @@ struct StructNoDrop<T1, T2> {
21
21
22
22
enum EnumWithDrop < T1 , T2 > {
23
23
A ( T1 ) ,
24
- B ( T2 )
24
+ B ( T2 ) ,
25
25
}
26
26
27
27
impl < T1 , T2 > Drop for EnumWithDrop < T1 , T2 > {
@@ -30,10 +30,9 @@ impl<T1, T2> Drop for EnumWithDrop<T1, T2> {
30
30
31
31
enum EnumNoDrop < T1 , T2 > {
32
32
A ( T1 ) ,
33
- B ( T2 )
33
+ B ( T2 ) ,
34
34
}
35
35
36
-
37
36
struct NonGenericNoDrop ( #[ allow( dead_code) ] i32 ) ;
38
37
39
38
struct NonGenericWithDrop ( #[ allow( dead_code) ] i32 ) ;
@@ -67,24 +66,24 @@ fn start(_: isize, _: *const *const u8) -> isize {
67
66
//~ MONO_ITEM fn <EnumWithDrop<i32, i64> as std::ops::Drop>::drop
68
67
let _ = match EnumWithDrop :: A :: < i32 , i64 > ( 0 ) {
69
68
EnumWithDrop :: A ( x) => x,
70
- EnumWithDrop :: B ( x) => x as i32
69
+ EnumWithDrop :: B ( x) => x as i32 ,
71
70
} ;
72
71
73
72
//~ MONO_ITEM fn std::ptr::drop_in_place::<EnumWithDrop<f64, f32>> - shim(Some(EnumWithDrop<f64, f32>)) @@ generic_drop_glue-cgu.0[Internal]
74
73
//~ MONO_ITEM fn <EnumWithDrop<f64, f32> as std::ops::Drop>::drop
75
74
let _ = match EnumWithDrop :: B :: < f64 , f32 > ( 1.0 ) {
76
75
EnumWithDrop :: A ( x) => x,
77
- EnumWithDrop :: B ( x) => x as f64
76
+ EnumWithDrop :: B ( x) => x as f64 ,
78
77
} ;
79
78
80
79
let _ = match EnumNoDrop :: A :: < i32 , i64 > ( 0 ) {
81
80
EnumNoDrop :: A ( x) => x,
82
- EnumNoDrop :: B ( x) => x as i32
81
+ EnumNoDrop :: B ( x) => x as i32 ,
83
82
} ;
84
83
85
84
let _ = match EnumNoDrop :: B :: < f64 , f32 > ( 1.0 ) {
86
85
EnumNoDrop :: A ( x) => x,
87
- EnumNoDrop :: B ( x) => x as f64
86
+ EnumNoDrop :: B ( x) => x as f64 ,
88
87
} ;
89
88
90
89
0
0 commit comments