We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
integer_to_ptr_transmutes
1 parent f685a59 commit b8f46d7Copy full SHA for b8f46d7
src/tools/miri/tests/pass/binops.rs
@@ -32,6 +32,7 @@ fn test_bool() {
32
assert_eq!(true ^ true, false);
33
}
34
35
+#[allow(integer_to_ptr_transmutes)]
36
fn test_ptr() {
37
unsafe {
38
let p1: *const u8 = ::std::mem::transmute(0_usize);
tests/ui/binop/binops.rs
@@ -35,6 +35,7 @@ fn test_bool() {
39
40
41
0 commit comments