Skip to content

Commit 04819ad

Browse files
committed
Allow dangerous_implicit_autorefs lint in some tests
1 parent 190aa5b commit 04819ad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/pass/dst-raw.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Test DST raw pointers
22

3+
#![allow(dangerous_implicit_autorefs)]
4+
35
trait Trait {
46
fn foo(&self) -> isize;
57
}

tests/pass/stacked-borrows/interior_mutability.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(dangerous_implicit_autorefs)]
2+
13
use std::cell::{Cell, Ref, RefCell, RefMut, UnsafeCell};
24
use std::mem::{self, MaybeUninit};
35

0 commit comments

Comments
 (0)