always check alignment during CTFE
This commit is contained in:
parent
397b66e77b
commit
fa83763491
8 changed files with 75 additions and 41 deletions
|
@ -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,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue