Feature gate: #![feature(likely_unlikely)]
This is a tracking issue for core::hint::{likely, unlikely}.
This tracking issue was split from #136873. Please also see the meta discussion at #26179.
Public API
// core::hint
pub const fn likely(b: bool) -> bool;
pub const fn unlikely(b: bool) -> bool;
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(likely_unlikely)]This is a tracking issue for
core::hint::{likely, unlikely}.This tracking issue was split from #136873. Please also see the meta discussion at #26179.
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)std::hint: Reexport likely/unlikely in std::hint #133695Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩