Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow dangerous_implicit_autorefs lint in some tests
  • Loading branch information
Urgau committed Apr 20, 2025
commit e8a6c175c51fbc347ea0b4479cc1b2de0932ddab
2 changes: 1 addition & 1 deletion library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
//! }
Expand Down
2 changes: 2 additions & 0 deletions src/tools/miri/tests/pass/dst-raw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Test DST raw pointers

#![allow(dangerous_implicit_autorefs)]

trait Trait {
fn foo(&self) -> isize;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(dangerous_implicit_autorefs)]

use std::cell::{Cell, Ref, RefCell, RefMut, UnsafeCell};
use std::mem::{self, MaybeUninit};

Expand Down
2 changes: 2 additions & 0 deletions tests/ui/dynamically-sized-types/dst-raw.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//@ run-pass
// Test DST raw pointers

#![allow(dangerous_implicit_autorefs)]

trait Trait {
fn foo(&self) -> isize;
}
Expand Down
Loading