From 57b1e7a428c16a1b692b88cc25ce8b09d8ea503b Mon Sep 17 00:00:00 2001 From: DutchGhost Date: Mon, 16 Mar 2020 10:51:00 +0100 Subject: [PATCH] Remove the call that makes miri fail --- src/libcore/tests/mem.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libcore/tests/mem.rs b/src/libcore/tests/mem.rs index 8337ab10341..2329bf97ff5 100644 --- a/src/libcore/tests/mem.rs +++ b/src/libcore/tests/mem.rs @@ -142,8 +142,4 @@ fn test_const_forget() { const fn const_forget_box(x: Box) { forget(x); } - - // Call the forget_box at runtime, - // as we can't const-construct a box yet. - const_forget_box(Box::new(0i32)); }