Skip to content

Commit

Permalink
Unrolled build for rust-lang#136874
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#136874 - tgross35:likely-unlikely-tracking, r=jhpratt

Change the issue number for `likely_unlikely` and `cold_path`

These currently point to rust-lang#26179, which is nearly a decade old and has a lot of outdated discussion. Move these features to a new tracking issue specifically for the recently added API.

New tracking issue: rust-lang#136873
  • Loading branch information
rust-timer authored Feb 12, 2025
2 parents 672e3aa + e32f795 commit 3efc29c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ pub const fn must_use<T>(value: T) -> T {
/// ```
///
///
#[unstable(feature = "likely_unlikely", issue = "26179")]
#[unstable(feature = "likely_unlikely", issue = "136873")]
#[inline(always)]
pub const fn likely(b: bool) -> bool {
crate::intrinsics::likely(b)
Expand Down Expand Up @@ -696,7 +696,7 @@ pub const fn likely(b: bool) -> bool {
/// }
/// }
/// ```
#[unstable(feature = "likely_unlikely", issue = "26179")]
#[unstable(feature = "likely_unlikely", issue = "136873")]
#[inline(always)]
pub const fn unlikely(b: bool) -> bool {
crate::intrinsics::unlikely(b)
Expand Down Expand Up @@ -729,7 +729,7 @@ pub const fn unlikely(b: bool) -> bool {
/// }
/// }
/// ```
#[unstable(feature = "cold_path", issue = "26179")]
#[unstable(feature = "cold_path", issue = "136873")]
#[inline(always)]
pub const fn cold_path() {
crate::intrinsics::cold_path()
Expand Down

0 comments on commit 3efc29c

Please sign in to comment.