about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-11-19 23:36:20 +0100
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-15 15:36:11 +0000
commitfa83763491bd388e131ee8456468727b2a95854e (patch)
tree425be3023b9d0081c025b8569187a99a31ee8168 /compiler/rustc_const_eval/src
parent397b66e77b279de5006facf87979f9ecff5c7f87 (diff)
downloadrust-fa83763491bd388e131ee8456468727b2a95854e.tar.gz
rust-fa83763491bd388e131ee8456468727b2a95854e.zip
always check alignment during CTFE
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/eval_queries.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
index 319f2b2c25e..4dfa42d15e0 100644
--- a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
+++ b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -311,7 +311,7 @@ pub fn eval_to_allocation_raw_provider<'tcx>(
         CompileTimeInterpreter::new(
             tcx.const_eval_limit(),
             /*can_access_statics:*/ is_static,
-            /*check_alignment:*/ tcx.sess.opts.unstable_opts.extra_const_ub_checks,
+            /*check_alignment:*/ true,
         ),
     );