mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Allow dangerous_implicit_autorefs lint in some tests
This commit is contained in:
@@ -676,7 +676,7 @@
|
||||
//! let data_ptr = unpinned_src.data.as_ptr() as *const u8;
|
||||
//! let slice_ptr = unpinned_src.slice.as_ptr() as *const u8;
|
||||
//! let offset = slice_ptr.offset_from(data_ptr) as usize;
|
||||
//! let len = (*unpinned_src.slice.as_ptr()).len();
|
||||
//! let len = unpinned_src.slice.as_ptr().len();
|
||||
//!
|
||||
//! unpinned_self.slice = NonNull::from(&mut unpinned_self.data[offset..offset+len]);
|
||||
//! }
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// Test DST raw pointers
|
||||
|
||||
#![allow(dangerous_implicit_autorefs)]
|
||||
|
||||
trait Trait {
|
||||
fn foo(&self) -> isize;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#![allow(dangerous_implicit_autorefs)]
|
||||
|
||||
use std::cell::{Cell, Ref, RefCell, RefMut, UnsafeCell};
|
||||
use std::mem::{self, MaybeUninit};
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
//@ run-pass
|
||||
// Test DST raw pointers
|
||||
|
||||
#![allow(dangerous_implicit_autorefs)]
|
||||
|
||||
trait Trait {
|
||||
fn foo(&self) -> isize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user