diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-21 13:53:00 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-04-23 23:02:54 +0200 |
| commit | 173d1bd36be1925c0cb0b0bf55740c26db4ac476 (patch) | |
| tree | a4ecdef1b76bd546deb5d3346ad378310c62868b /src | |
| parent | bf021ea6258bcd886fae523e8448f3697dd041fe (diff) | |
| download | rust-173d1bd36be1925c0cb0b0bf55740c26db4ac476.tar.gz rust-173d1bd36be1925c0cb0b0bf55740c26db4ac476.zip | |
properly fill a promoted's required_consts
then we can also make all_required_consts_are_checked a constant instead of a function
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/miri/src/machine.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tools/miri/src/machine.rs b/src/tools/miri/src/machine.rs index 045df6111ff..cbe70cbffee 100644 --- a/src/tools/miri/src/machine.rs +++ b/src/tools/miri/src/machine.rs @@ -873,12 +873,6 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> { const PANIC_ON_ALLOC_FAIL: bool = false; #[inline(always)] - fn all_required_consts_are_checked(_ecx: &InterpCx<'mir, 'tcx, Self>) -> bool { - // We want to catch any cases of missing required_consts - true - } - - #[inline(always)] fn enforce_alignment(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool { ecx.machine.check_alignment != AlignmentCheck::None } |
