Skip to content

Commit e8c42a8

Browse files
committed
Auto merge of #120370 - x17jiri:likely_unlikely_fix, r=saethlin
Likely unlikely fix RFC 1131 ( rust-lang/rust#26179 ) added likely/unlikely intrinsics, but they have been broken for a while: rust-lang/rust#96276 , rust-lang/rust#96275 , rust-lang/rust#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()`
2 parents 2cba2ac + 1da548f commit e8c42a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
The loop took around 1250ms
1+
The loop took around 1350ms
22
(It's fine for this number to change when you `--bless` this test.)

0 commit comments

Comments
 (0)