Skip to content

Commit b8c1747

Browse files
committed
Update doc comment about black_box
1 parent 8ab76de commit b8c1747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/benchlib/src/benchmark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub fn passes_filter(name: &str, exclude: Option<&str>, include: Option<&str>) -
120120
}
121121
}
122122

123-
/// Copied from `iai`, so that we don't have to use unstable features.
123+
/// Copied from `iai`, so that it works on Rustc older than 1.66.
124124
pub fn black_box<T>(dummy: T) -> T {
125125
unsafe {
126126
let ret = std::ptr::read_volatile(&dummy);

0 commit comments

Comments
 (0)