diff options
| author | Michael Goulet <michael@errs.io> | 2023-11-22 09:28:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-22 09:28:51 -0800 |
| commit | 040151a4be145871ef15e333d94f84d9039a5e0c (patch) | |
| tree | 7592bf7ce0eddaf91a1e9df1a132cfd6428693b0 /compiler/rustc_const_eval/src/const_eval | |
| parent | dd9f3ad806029a520a67d911493844c91fff5d1f (diff) | |
| parent | c089a162d80dbbcc0543649fa78ccabac569db81 (diff) | |
Rollup merge of #118147 - Nilstrieb:no-redundant-casts, r=WaffleLapkin
Fix some unnecessary casts `x clippy compiler -Aclippy::all -Wclippy::unnecessary_cast --fix` with some manual review to ensure every fix is correct.
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/machine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs index bc0327db22e..4b13a3404a0 100644 --- a/compiler/rustc_const_eval/src/const_eval/machine.rs +++ b/compiler/rustc_const_eval/src/const_eval/machine.rs @@ -493,7 +493,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir, }; let ptr = ecx.allocate_ptr( - Size::from_bytes(size as u64), + Size::from_bytes(size), align, interpret::MemoryKind::Machine(MemoryKind::Heap), )?; |
