about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-19 18:57:39 +0000
committerbors <bors@rust-lang.org>2022-11-19 18:57:39 +0000
commitc5d82ed7a4ad94a538bb87e5016e7d5ce0bd434b (patch)
treed750ff6e8581c0f61102ea195f0409ca77bd2f39 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent2a434286a96d61e9f55a3144004beec48206bb29 (diff)
parentc9c017dfb55e375800c3e424311939a7ba3d4deb (diff)
downloadrust-c5d82ed7a4ad94a538bb87e5016e7d5ce0bd434b.tar.gz
rust-c5d82ed7a4ad94a538bb87e5016e7d5ce0bd434b.zip
Auto merge of #102795 - lukas-code:constify-is-aligned-via-align-offset, r=oli-obk
Constify `is_aligned` via `align_offset`

Alternative to https://github.com/rust-lang/rust/pull/102753

Make `align_offset` work in const eval (and not always return `usize::MAX`) and then use that to constify `is_aligned{_to}`.

Tracking Issue: https://github.com/rust-lang/rust/issues/104203
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions