diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-09-28 13:07:17 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 13:07:17 +0900 |
| commit | 07bb2e65276d21ef97a6bdbcfdd74cfce47baa37 (patch) | |
| tree | 9ad2f332441e8bdd9001f346e3c0d042b9a53a85 /src/tools | |
| parent | 49bc6684932b2a11b69cc0b037b2636e90bc2b22 (diff) | |
| parent | 9ad2f00f6a9ba359f35b270162a7ca6c412876eb (diff) | |
| download | rust-07bb2e65276d21ef97a6bdbcfdd74cfce47baa37.tar.gz rust-07bb2e65276d21ef97a6bdbcfdd74cfce47baa37.zip | |
Rollup merge of #102232 - Urgau:stabilize-bench_black_box, r=TaKO8Ki
Stabilize bench_black_box This PR stabilize `feature(bench_black_box)`. ```rust pub fn black_box<T>(dummy: T) -> T; ``` The FCP was completed in https://github.com/rust-lang/rust/issues/64102. `@rustbot` label +T-libs-api -T-libs
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/miri/tests/fail/invalid_bool.rs | 2 | ||||
| -rw-r--r-- | src/tools/miri/tests/pass/float.rs | 2 | ||||
| -rw-r--r-- | src/tools/miri/tests/pass/u128.rs | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/miri/tests/fail/invalid_bool.rs b/src/tools/miri/tests/fail/invalid_bool.rs index 525f8831c1c..dde414f4177 100644 --- a/src/tools/miri/tests/fail/invalid_bool.rs +++ b/src/tools/miri/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::<u8, bool>(2) }; diff --git a/src/tools/miri/tests/pass/float.rs b/src/tools/miri/tests/pass/float.rs index 48dd99441eb..ce62fb0de04 100644 --- a/src/tools/miri/tests/pass/float.rs +++ b/src/tools/miri/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/src/tools/miri/tests/pass/u128.rs b/src/tools/miri/tests/pass/u128.rs index 0ef7a514cb6..6def529dbe7 100644 --- a/src/tools/miri/tests/pass/u128.rs +++ b/src/tools/miri/tests/pass/u128.rs @@ -1,4 +1,3 @@ -#![feature(bench_black_box)] use std::hint::black_box as b; fn main() { |
