diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-02-13 11:12:50 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-13 11:12:50 +0530 |
| commit | 2ec6aebb417a067b6ec4c1dd2b4e62ce0be0698e (patch) | |
| tree | 610bbf6008b08610f886236082cc0442d604041e /compiler/rustc_codegen_llvm/src | |
| parent | c0d1e324d554a3799b95723a4d9c558405c4779f (diff) | |
| parent | 404e9c5e3ad75057b6bbb3bcd44fe60480e50294 (diff) | |
| download | rust-2ec6aebb417a067b6ec4c1dd2b4e62ce0be0698e.tar.gz rust-2ec6aebb417a067b6ec4c1dd2b4e62ce0be0698e.zip | |
Rollup merge of #107961 - scottmcm:unify-ilog-panics, r=Mark-Simulacrum
Avoid copy-pasting the `ilog` panic string in a bunch of places I also ended up changing the implementations to `if let` because it doesn't work to ```rust self.checked_ilog2().unwrap_or_else(panic_for_nonpositive_argument) ``` due to the `!`. But as a bonus that meant I could remove the `rustc_allow_const_fn_unstable` too.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
