rust/compiler/rustc_hir/src
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
..
arena.rs Remove unused arena kinds in rustc_hir and rustc_middle. 2023-11-20 15:05:26 +11:00
def.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
def_path_hash_map.rs Do not store stable crate id in on-disk hash map. 2023-12-24 17:22:48 +00:00
definitions.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
diagnostic_items.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hir.rs Encode cross-crate opaque type origin 2024-10-31 01:35:13 +00:00
hir_id.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
intravisit.rs Remap impl-trait lifetimes on HIR instead of AST lowering. 2024-10-30 16:18:50 +00:00
lang_items.rs remove const-support for align_offset 2024-11-03 17:00:44 +01:00
lib.rs dont regenerate new links for rexports 2024-09-20 21:49:37 +08:00
pat_util.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
stable_hash_impls.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
target.rs rm ItemKind::OpaqueTy 2024-10-04 23:28:22 +00:00
tests.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
weak_lang_items.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00