summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-31 21:30:23 +0100
committerRalf Jung <post@ralfj.de>2024-11-03 17:00:44 +0100
commit19e287060de9a641d7000a5575bb943a9bfba318 (patch)
treee1a7182cb564a75d50f9bc6cd2125aa0a6308763 /compiler/rustc_codegen_llvm/src
parent67395551d07b0eaf6a45ed3bf1759530ca2235d7 (diff)
downloadrust-19e287060de9a641d7000a5575bb943a9bfba318.tar.gz
rust-19e287060de9a641d7000a5575bb943a9bfba318.zip
remove const-support for align_offset
Operations like is_aligned would return actively wrong results at compile-time,
i.e. calling it on the same pointer at compiletime and runtime could yield
different results. That's no good.

Instead of having hacks to make align_offset kind-of work in const-eval, just
use const_eval_select in the few places where it makes sense, which also ensures
those places are all aware they need to make sure the fallback behavior is
consistent.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions