Skip to content

Commit 9834a41

Browse files
committed
TEMP: try to reproduce earlier perf results
1 parent 0ee0889 commit 9834a41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/rustc_const_eval/src/interpret/machine.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,14 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
423423
/// These places need to be protected to make sure the program cannot tell whether the
424424
/// argument/return value was actually copied or passed in-place.
425425
fn protect_in_place_function_argument(
426-
ecx: &mut InterpCx<'mir, 'tcx, Self>,
427-
place: &PlaceTy<'tcx, Self::Provenance>,
426+
_ecx: &mut InterpCx<'mir, 'tcx, Self>,
427+
_place: &PlaceTy<'tcx, Self::Provenance>,
428428
) -> InterpResult<'tcx> {
429429
// Without an aliasing model, all we can do is put `Uninit` into the place.
430430
// This can only be violated with custom MIR though so we avoid the perf hit.
431-
if ecx.tcx.sess.opts.unstable_opts.extra_const_ub_checks {
432-
ecx.write_uninit(place)?;
433-
}
431+
//if ecx.tcx.sess.opts.unstable_opts.extra_const_ub_checks {
432+
// ecx.write_uninit(place)?;
433+
//}
434434
Ok(())
435435
}
436436

0 commit comments

Comments
 (0)