Skip to content

Commit

Permalink
Allow unions_with_drop_fields for unions with members with destructors
Browse files Browse the repository at this point in the history
(or generics that *might* have dtors)
  • Loading branch information
pnkfelix committed Sep 6, 2018
1 parent 84a02e1 commit 8e72955
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/run-pass/union/union-derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unions_with_drop_fields)]

// Some traits can be derived for unions.

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/union/union-drop-assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unions_with_drop_fields)]

// Drop works for union itself.

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/union/union-drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unions_with_drop_fields)]

// Drop works for union itself.

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/union/union-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unions_with_drop_fields)]

#![feature(untagged_unions)]

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/union/union-overwrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unions_with_drop_fields)]

#![feature(untagged_unions)]

Expand Down

0 comments on commit 8e72955

Please sign in to comment.