Skip to content

Commit fbc5f67

Browse files
committed
Add #[inline] back to black_box
1 parent 3cf2a69 commit fbc5f67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/hint.rs

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ pub fn spin_loop() {
152152
/// backend used. Programs cannot rely on `black_box` for *correctness* in any way.
153153
///
154154
/// [`std::convert::identity`]: crate::convert::identity
155+
#[inline]
155156
#[unstable(feature = "bench_black_box", issue = "64102")]
156157
#[cfg_attr(not(bootstrap), allow(unused_mut))]
157158
pub fn black_box<T>(mut dummy: T) -> T {

0 commit comments

Comments
 (0)