We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b150d2 + 8ee6155 commit db4e1d2Copy full SHA for db4e1d2
compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -408,8 +408,8 @@ impl<'tcx> interpret::Machine<'tcx> for CompileTimeMachine<'tcx> {
408
}
409
410
#[inline(always)]
411
- fn enforce_validity(ecx: &InterpCx<'tcx, Self>, layout: TyAndLayout<'tcx>) -> bool {
412
- ecx.tcx.sess.opts.unstable_opts.extra_const_ub_checks || layout.is_uninhabited()
+ fn enforce_validity(_ecx: &InterpCx<'tcx, Self>, _layout: TyAndLayout<'tcx>) -> bool {
+ true
413
414
415
fn load_mir(
0 commit comments