mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56:48 +00:00
Add a lint expectation
This commit is contained in:
parent
b4a1dc03f3
commit
8b5a6f0d58
@ -24,6 +24,7 @@ macro_rules! offset_of {
|
||||
let container_addr = &tmp as *const _;
|
||||
let field_addr = &tmp.$($field)* as *const _;
|
||||
|
||||
#[expect(clippy::forget_non_drop)]
|
||||
::core::mem::forget(tmp);
|
||||
|
||||
let field_offset = (field_addr as usize - container_addr as usize) as *const _;
|
||||
|
Loading…
x
Reference in New Issue
Block a user