Rollup merge of #116350 - Nilstrieb:in-situ, r=Dylan-DPC

Improve wording of `hint::black_box` docs

The wording is a bit confusing.

squash of #109634
This commit is contained in:
Tyler Mandry 2023-10-02 16:09:43 -04:00 committed by GitHub
commit 132e38366f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ pub fn spin_loop() {
/// - Treats the call to `contains` and its result as volatile: the body of `benchmark` cannot
/// optimize this away
///
/// This makes our benchmark much more realistic to how the function would be used in situ, where
/// This makes our benchmark much more realistic to how the function would actually be used, where
/// arguments are usually not known at compile time and the result is used in some way.
#[inline]
#[stable(feature = "bench_black_box", since = "1.66.0")]