We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae50d3 commit 7523af9Copy full SHA for 7523af9
library/core/src/hint.rs
@@ -322,6 +322,11 @@ pub fn spin_loop() {
322
///
323
/// </div>
324
325
+/// You should not be able to write a better `black_box` than the standard library provides. If you
326
+/// can write a function that looks like `black_box` but is more effective at hiding the value of
327
+/// the argument from optimizations, that would be a bug and should be reported. It just would not
328
+/// be a *security* bug.
329
+///
330
/// [`std::convert::identity`]: crate::convert::identity
331
332
/// # When is this useful?
0 commit comments