diff --git a/lib/dynasm-backend/src/codegen_x64.rs b/lib/dynasm-backend/src/codegen_x64.rs index 7a411af1da1..d815c704246 100644 --- a/lib/dynasm-backend/src/codegen_x64.rs +++ b/lib/dynasm-backend/src/codegen_x64.rs @@ -1,3 +1,5 @@ +#![allow(clippy::forget_copy)] // Used by dynasm. + use super::codegen::*; use super::stack::{ ControlFrame, ControlStack, IfElseState, ScratchRegister, ValueInfo, ValueLocation, ValueStack, @@ -5139,6 +5141,7 @@ enum CallIndirectLocalOrImport { Import, } +#[allow(clippy::cast_ptr_alignment)] unsafe extern "C" fn call_indirect( sig_index: usize, local_or_import: CallIndirectLocalOrImport, @@ -5214,6 +5217,7 @@ unsafe extern "C" fn _memory_size( ret.0 as u32 as u64 } +#[allow(clippy::cast_ptr_alignment)] unsafe extern "C" fn _memory_grow( op: MemoryKind, index: usize,