rust/compiler/rustc_const_eval
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
..
src Auto merge of #120370 - x17jiri:likely_unlikely_fix, r=saethlin 2024-11-17 23:57:53 +00:00
Cargo.toml compiler: Factor rustc_target::abi out of const_eval 2024-10-08 18:24:56 -07:00
messages.ftl require const_impl_trait gate for all conditional and trait const calls 2024-11-09 23:02:20 +01:00