File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/rustc_const_eval/src/interpret Expand file tree Collapse file tree 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 {
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
You can’t perform that action at this time.
0 commit comments