File tree 1 file changed +5
-5
lines changed
compiler/rustc_const_eval/src/interpret
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -423,14 +423,14 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
423
423
/// These places need to be protected to make sure the program cannot tell whether the
424
424
/// argument/return value was actually copied or passed in-place.
425
425
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 > ,
428
428
) -> InterpResult < ' tcx > {
429
429
// Without an aliasing model, all we can do is put `Uninit` into the place.
430
430
// 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
+ // }
434
434
Ok ( ( ) )
435
435
}
436
436
You can’t perform that action at this time.
0 commit comments