compiler: use addr_of!
This commit is contained in:
parent
ff187a92d8
commit
613cb3262d
7 changed files with 9 additions and 9 deletions
|
@ -435,7 +435,7 @@ pub(crate) fn print(req: &PrintRequest, mut out: &mut dyn PrintBackendInfo, sess
|
|||
&tm,
|
||||
cpu_cstring.as_ptr(),
|
||||
callback,
|
||||
&mut out as *mut &mut dyn PrintBackendInfo as *mut c_void,
|
||||
std::ptr::addr_of_mut!(out) as *mut c_void,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue