1
Fork 0

always check alignment during CTFE

This commit is contained in:
Ralf Jung 2022-11-19 23:36:20 +01:00 committed by Oli Scherer
parent 397b66e77b
commit fa83763491
8 changed files with 75 additions and 41 deletions

View file

@ -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,
),
);