From aec5330082a0c4664abf0f6604c1b05768a90234 Mon Sep 17 00:00:00 2001 From: Michael Bradshaw Date: Sat, 29 Sep 2018 19:49:17 -0700 Subject: [PATCH] Fix ui/run-pass/union/union-nodrop.rs test --- src/test/ui/run-pass/union/union-nodrop.rs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/test/ui/run-pass/union/union-nodrop.rs b/src/test/ui/run-pass/union/union-nodrop.rs index 4f2456e43ba..d024aca0cd7 100644 --- a/src/test/ui/run-pass/union/union-nodrop.rs +++ b/src/test/ui/run-pass/union/union-nodrop.rs @@ -57,15 +57,13 @@ fn drop(&mut self) {} } fn main() { - unsafe { - // NoDrop should not make needs_drop true - assert!(!needs_drop::()); - assert!(!needs_drop::>()); - assert!(!needs_drop::>>()); - // presence of other drop types should still work - assert!(needs_drop::()); - // drop impl on union itself should work - assert!(needs_drop::>()); - assert!(needs_drop::>>()); - } + // NoDrop should not make needs_drop true + assert!(!needs_drop::()); + assert!(!needs_drop::>()); + assert!(!needs_drop::>>()); + // presence of other drop types should still work + assert!(needs_drop::()); + // drop impl on union itself should work + assert!(needs_drop::>()); + assert!(needs_drop::>>()); } -- 2.44.0