We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
invalid_null_arguments
1 parent 022dbba commit 02effeeCopy full SHA for 02effee
tests/assembly/auxiliary/dep-exports.rs
@@ -4,7 +4,7 @@
4
5
pub fn dep_public_symbol() -> u8 {
6
// read_volatile stops LTO inlining the function in the calling crate
7
- unsafe { core::ptr::read_volatile(0 as *const u8) }
+ unsafe { core::ptr::read_volatile(core::ptr::dangling()) }
8
}
9
10
#[no_mangle]
tests/btf/assembly/auxiliary/dep-exports.rs
@@ -5,7 +5,7 @@
#[inline(never)]
11
0 commit comments