Stabilize bench_black_box

This commit is contained in:
Urgau
2022-09-24 12:34:56 +02:00
parent 199fe1d169
commit 9ad2f00f6a
23 changed files with 8 additions and 28 deletions

View File

@@ -217,7 +217,7 @@ pub fn spin_loop() {
///
/// [`std::convert::identity`]: crate::convert::identity
#[inline]
#[unstable(feature = "bench_black_box", issue = "64102")]
#[stable(feature = "bench_black_box", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_unstable(feature = "const_black_box", issue = "none")]
pub const fn black_box<T>(dummy: T) -> T {
crate::intrinsics::black_box(dummy)