about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-22 10:54:53 +0000
committerbors <bors@rust-lang.org>2024-06-22 10:54:53 +0000
commitd03d6c0fead582c98c6446ec92456ca8fd03ff65 (patch)
treef6de5b8fb96542402f5f756e16dd6872c62911d1 /compiler/rustc_pattern_analysis/src/constructor.rs
parentf1b0d54ca9a5ea43950c279985a6e12dcf387de8 (diff)
parenta314f7363aa74c4a7fa72233ff7edbbabf917f80 (diff)
downloadrust-d03d6c0fead582c98c6446ec92456ca8fd03ff65.tar.gz
rust-d03d6c0fead582c98c6446ec92456ca8fd03ff65.zip
Auto merge of #126750 - scottmcm:less-unlikely, r=jhpratt
Stop using `unlikely` in `strict_*` methods

The `strict_*` methods don't need (un)likely, because the `overflow_panic` calls are all `#[cold]`, [meaning](https://llvm.org/docs/LangRef.html#function-attributes) that LLVM knows any branch to them is unlikely without us needing to say so.

r? libs
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
0 files changed, 0 insertions, 0 deletions