Skip to content

Commit

Permalink
Allow invalid ref casting in Miri unaligned_ref_addr_of test
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Dec 18, 2023
1 parent d0e6104 commit 3b0b09e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 1,8 @@
// This should fail even without Stacked Borrows.
//@compile-flags: -Zmiri-disable-stacked-borrows -Cdebug-assertions=no

#![allow(invalid_reference_casting)] // for u16 -> u32

fn main() {
// Try many times as this might work by chance.
for _ in 0..20 {
Expand Down

0 comments on commit 3b0b09e

Please sign in to comment.