Allow dangling_pointers_from_locals lint in tests
This commit is contained in:
parent
8a3a7e625a
commit
21ec0d5a4c
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
// Make sure we catch this even without Stacked Borrows
|
||||
//@compile-flags: -Zmiri-disable-stacked-borrows
|
||||
|
||||
#![allow(dangling_pointers_from_locals)]
|
||||
|
||||
use std::mem;
|
||||
|
||||
fn dangling() -> *const u8 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue