mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
3fb7e441ae
Likely unlikely fix RFC 1131 ( https://github.com/rust-lang/rust/issues/26179 ) added likely/unlikely intrinsics, but they have been broken for a while: https://github.com/rust-lang/rust/issues/96276 , https://github.com/rust-lang/rust/issues/96275 , https://github.com/rust-lang/rust/issues/88767 . This PR tries to fix them. Changes: - added a new `cold_path()` intrinsic - `likely()` and `unlikely()` changed to regular functions implemented using `cold_path()` |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |