rust/library/core/src/ptr
Ralf Jung 19e287060d 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.
2024-11-03 17:00:44 +01:00
..
alignment.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
const_ptr.rs remove const-support for align_offset 2024-11-03 17:00:44 +01:00
metadata.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
mod.rs remove const-support for align_offset 2024-11-03 17:00:44 +01:00
mut_ptr.rs remove const-support for align_offset 2024-11-03 17:00:44 +01:00
non_null.rs remove const-support for align_offset 2024-11-03 17:00:44 +01:00
unique.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00