Skip to content

Commit aec5330

Browse files
committed
Fix ui/run-pass/union/union-nodrop.rs test
1 parent 2c3c882 commit aec5330

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

Diff for: src/test/ui/run-pass/union/union-nodrop.rs

+9-11
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,13 @@ impl<T> Drop for ActuallyDrop<T> {
5757
}
5858

5959
fn main() {
60-
unsafe {
61-
// NoDrop should not make needs_drop true
62-
assert!(!needs_drop::<Foo>());
63-
assert!(!needs_drop::<NoDrop<u8>>());
64-
assert!(!needs_drop::<NoDrop<Box<u8>>>());
65-
// presence of other drop types should still work
66-
assert!(needs_drop::<Baz>());
67-
// drop impl on union itself should work
68-
assert!(needs_drop::<ActuallyDrop<u8>>());
69-
assert!(needs_drop::<ActuallyDrop<Box<u8>>>());
70-
}
60+
// NoDrop should not make needs_drop true
61+
assert!(!needs_drop::<Foo>());
62+
assert!(!needs_drop::<NoDrop<u8>>());
63+
assert!(!needs_drop::<NoDrop<Box<u8>>>());
64+
// presence of other drop types should still work
65+
assert!(needs_drop::<Baz>());
66+
// drop impl on union itself should work
67+
assert!(needs_drop::<ActuallyDrop<u8>>());
68+
assert!(needs_drop::<ActuallyDrop<Box<u8>>>());
7169
}

0 commit comments

Comments
 (0)