File tree 3 files changed +5
-1
lines changed
src/tools/miri/tests/pass
tests/ui/dynamically-sized-types
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 676
676
//! let data_ptr = unpinned_src.data.as_ptr() as *const u8;
677
677
//! let slice_ptr = unpinned_src.slice.as_ptr() as *const u8;
678
678
//! let offset = slice_ptr.offset_from(data_ptr) as usize;
679
- //! let len = (* unpinned_src.slice.as_ptr() ).len();
679
+ //! let len = unpinned_src.slice.as_ptr().len();
680
680
//!
681
681
//! unpinned_self.slice = NonNull::from(&mut unpinned_self.data[offset..offset+len]);
682
682
//! }
Original file line number Diff line number Diff line change 1
1
// Test DST raw pointers
2
2
3
+ #![ allow( dangerous_implicit_autorefs) ]
4
+
3
5
trait Trait {
4
6
fn foo ( & self ) -> isize ;
5
7
}
Original file line number Diff line number Diff line change 1
1
//@ run-pass
2
2
// Test DST raw pointers
3
3
4
+ #![ allow( dangerous_implicit_autorefs) ]
5
+
4
6
trait Trait {
5
7
fn foo ( & self ) -> isize ;
6
8
}
You can’t perform that action at this time.
0 commit comments