Skip to content

Commit b8f46d7

Browse files
committed
Allow integer_to_ptr_transmutes in tests
1 parent f685a59 commit b8f46d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/tools/miri/tests/pass/binops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fn test_bool() {
3232
assert_eq!(true ^ true, false);
3333
}
3434

35+
#[allow(integer_to_ptr_transmutes)]
3536
fn test_ptr() {
3637
unsafe {
3738
let p1: *const u8 = ::std::mem::transmute(0_usize);

tests/ui/binop/binops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn test_bool() {
3535
assert_eq!(true ^ true, false);
3636
}
3737

38+
#[allow(integer_to_ptr_transmutes)]
3839
fn test_ptr() {
3940
unsafe {
4041
let p1: *const u8 = ::std::mem::transmute(0_usize);

0 commit comments

Comments
 (0)