File tree 1 file changed +3
-2
lines changed
compiler/rustc_mir_transform/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1125,7 +1125,8 @@ fn build_async_destructor_ctor_shim<'tcx>(
1125
1125
GlueStrategy :: Slice { is_array : matches ! ( kind, ty:: Array ( ..) ) , elem_ty }
1126
1126
}
1127
1127
1128
- ty:: Tuple ( elem_tys) if !elem_tys. is_empty ( ) => {
1128
+ ty:: Tuple ( elem_tys) if elem_tys. is_empty ( ) => GlueStrategy :: Empty ,
1129
+ ty:: Tuple ( elem_tys) => {
1129
1130
GlueStrategy :: Chain { elem_tys, has_surface_async_drop : false }
1130
1131
}
1131
1132
ty:: Adt ( adt_def, args) if adt_def. is_struct ( ) => {
@@ -1139,6 +1140,7 @@ fn build_async_destructor_ctor_shim<'tcx>(
1139
1140
}
1140
1141
1141
1142
ty:: Foreign ( _)
1143
+ // TODO: implement enums, disallow unions
1142
1144
| ty:: Adt ( _, _)
1143
1145
| ty:: Dynamic ( _, _, _)
1144
1146
| ty:: Closure ( _, _)
@@ -1169,7 +1171,6 @@ fn build_async_destructor_ctor_shim<'tcx>(
1169
1171
| ty:: FnDef ( _, _)
1170
1172
| ty:: FnPtr ( _)
1171
1173
| ty:: Never
1172
- | ty:: Tuple ( _) => GlueStrategy :: Empty ,
1173
1174
} ;
1174
1175
1175
1176
let return_bb;
You can’t perform that action at this time.
0 commit comments