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 Feb 12, 2024
1 parent 746bb7e commit e08c9d1
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 e08c9d1

Please sign in to comment.