Skip to content

Commit 6663db8

Browse files
authored
Rollup merge of #129608 - RalfJung:const-eval-ub-checks, r=saethlin
const-eval: do not make UbChecks behavior depend on current crate's flags Fixes rust-lang/rust#129552 Let's see if we can get away with just always enabling these checks.
2 parents d40056e + 91127ac commit 6663db8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/machine.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,10 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
10601060
ecx.generate_nan(inputs)
10611061
}
10621062

1063+
fn ub_checks(ecx: &InterpCx<'tcx, Self>) -> InterpResult<'tcx, bool> {
1064+
Ok(ecx.tcx.sess.ub_checks())
1065+
}
1066+
10631067
fn thread_local_static_pointer(
10641068
ecx: &mut MiriInterpCx<'tcx>,
10651069
def_id: DefId,

0 commit comments

Comments
 (0)