From 52698060e493bc517930cfc819c4f932dfce87b4 Mon Sep 17 00:00:00 2001 From: Urgau Date: Sat, 24 Sep 2022 12:34:56 +0200 Subject: [PATCH] Stabilize bench_black_box --- tests/fail/invalid_bool.rs | 2 +- tests/pass/float.rs | 2 +- tests/pass/u128.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/fail/invalid_bool.rs b/tests/fail/invalid_bool.rs index 525f8831c1c00..dde414f417740 100644 --- a/tests/fail/invalid_bool.rs +++ b/tests/fail/invalid_bool.rs @@ -1,7 +1,7 @@ // Validation makes this fail in the wrong place // Make sure we find these even with many checks disabled. //@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation -#![feature(bench_black_box)] + fn main() { let b = unsafe { std::mem::transmute::(2) }; diff --git a/tests/pass/float.rs b/tests/pass/float.rs index 48dd99441ebff..ce62fb0de04f8 100644 --- a/tests/pass/float.rs +++ b/tests/pass/float.rs @@ -1,4 +1,4 @@ -#![feature(stmt_expr_attributes, bench_black_box)] +#![feature(stmt_expr_attributes)] #![allow(arithmetic_overflow)] use std::fmt::Debug; use std::hint::black_box; diff --git a/tests/pass/u128.rs b/tests/pass/u128.rs index 0ef7a514cb653..6def529dbe7c3 100644 --- a/tests/pass/u128.rs +++ b/tests/pass/u128.rs @@ -1,4 +1,3 @@ -#![feature(bench_black_box)] use std::hint::black_box as b; fn main() {