Skip to content

Commit 8e72955

Browse files
committed
Allow unions_with_drop_fields for unions with members with destructors
(or generics that *might* have dtors)
1 parent 84a02e1 commit 8e72955

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

src/test/ui/run-pass/union/union-derive.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unions_with_drop_fields)]
1213

1314
// Some traits can be derived for unions.
1415

src/test/ui/run-pass/union/union-drop-assign.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unions_with_drop_fields)]
1213

1314
// Drop works for union itself.
1415

src/test/ui/run-pass/union/union-drop.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unions_with_drop_fields)]
1213

1314
// Drop works for union itself.
1415

src/test/ui/run-pass/union/union-generic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unions_with_drop_fields)]
1213

1314
#![feature(untagged_unions)]
1415

src/test/ui/run-pass/union/union-overwrite.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unions_with_drop_fields)]
1213

1314
#![feature(untagged_unions)]
1415

0 commit comments

Comments
 (0)