X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fcore%2Fsrc%2Fhint.rs;h=c53175ba4f3f0f7bb23c701eda24d79abfae5926;hb=e9493d63c2a57b91556dccd219e21821432c7445;hp=3412d3730d01175de0d2febcaa1d6615f4a05ff2;hpb=0f72a6d617ccfb449286ccae136776fef2182224;p=rust.git diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs index 3412d3730d0..c53175ba4f3 100644 --- a/library/core/src/hint.rs +++ b/library/core/src/hint.rs @@ -220,7 +220,7 @@ pub fn spin_loop() { /// /// [`std::convert::identity`]: crate::convert::identity #[inline] -#[stable(feature = "bench_black_box", since = "CURRENT_RUSTC_VERSION")] +#[stable(feature = "bench_black_box", since = "1.66.0")] #[rustc_const_unstable(feature = "const_black_box", issue = "none")] pub const fn black_box(dummy: T) -> T { crate::intrinsics::black_box(dummy)