We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ea34d commit bbda6e0Copy full SHA for bbda6e0
src/raw/mod.rs
@@ -44,6 +44,8 @@ use self::imp::Group;
44
#[cfg(feature = "nightly")]
45
use core::intrinsics::{likely, unlikely};
46
47
+// On stable we can use #[cold] to get a equivalent effect: this attributes
48
+// suggests that the function is unlikely to be called
49
#[cfg(not(feature = "nightly"))]
50
#[inline]
51
#[cold]
@@ -56,7 +58,6 @@ fn likely(b: bool) -> bool {
56
58
b
57
59
}
60
-#[cold]
61
62
fn unlikely(b: bool) -> bool {
63
if b { cold() }
0 commit comments