rust/library/core
bors 3fb7e441ae Auto merge of #120370 - x17jiri:likely_unlikely_fix, r=saethlin
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()`
2024-11-17 23:57:53 +00:00
..
benches Auto merge of #122770 - iximeow:ixi/int-formatting-optimization, r=workingjubilee 2024-11-14 04:17:20 +00:00
src Auto merge of #120370 - x17jiri:likely_unlikely_fix, r=saethlin 2024-11-17 23:57:53 +00:00
tests Rollup merge of #133003 - zachs18:clonetouninit-dyn-compat-u8, r=dtolnay 2024-11-13 22:43:37 -08:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00