Skip to content

Commit cd50846

Browse files
Add deny(unsafe_op_in_unsafe_fn) to do_resolve
1 parent 260fdad commit cd50846

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/symbolize/dbghelp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ unsafe fn resolve_with_inline(
219219
}
220220

221221
/// This function is only meant to be called with SymFromAddrW as the argument
222+
#[deny(unsafe_op_in_unsafe_fn)]
222223
unsafe fn do_resolve(
223224
sym_from_addr: impl FnOnce(*mut SYMBOL_INFOW) -> BOOL,
224225
get_line_from_addr: impl FnOnce(&mut IMAGEHLP_LINEW64) -> BOOL,

0 commit comments

Comments
 (0)