mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Bless tests
This commit is contained in:
parent
c359ab0b5d
commit
37e00165e4
@ -20,7 +20,7 @@ LL | core::ptr::drop_in_place(x);
|
||||
= note: inside `<HasDrop as std::ops::Drop>::drop` at $DIR/drop_in_place_protector.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<HasDrop> - shim(Some(HasDrop))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
= note: inside `std::ptr::drop_in_place::<(HasDrop, u8)> - shim(Some((HasDrop, u8)))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/drop_in_place_protector.rs:LL:CC
|
||||
note: inside `main`
|
||||
--> $DIR/drop_in_place_protector.rs:LL:CC
|
||||
|
|
||||
LL | core::ptr::drop_in_place(x);
|
||||
|
@ -5,7 +5,7 @@ LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |
|
||||
| trying to retag from <TAG> for Unique permission at ALLOC[0x0], but that tag only grants SharedReadOnly permission for this location
|
||||
| this error occurs as part of FnEntry retag at ALLOC[0x0..0x1]
|
||||
| this error occurs as part of retag at ALLOC[0x0..0x1]
|
||||
|
|
||||
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
|
||||
= help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
|
||||
@ -16,7 +16,7 @@ LL | let x = core::ptr::addr_of!(x);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: BACKTRACE:
|
||||
= note: inside `std::ptr::drop_in_place::<u8> - shim(None)` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/drop_in_place_retag.rs:LL:CC
|
||||
note: inside `main`
|
||||
--> $DIR/drop_in_place_retag.rs:LL:CC
|
||||
|
|
||||
LL | core::ptr::drop_in_place(x.cast_mut());
|
||||
|
@ -8,7 +8,7 @@ LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
|
||||
= note: BACKTRACE:
|
||||
= note: inside `std::ptr::drop_in_place::<PartialDrop> - shim(Some(PartialDrop))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
||||
note: inside `main` at $DIR/drop_in_place.rs:LL:CC
|
||||
note: inside `main`
|
||||
--> $DIR/drop_in_place.rs:LL:CC
|
||||
|
|
||||
LL | core::ptr::drop_in_place(p);
|
||||
|
Loading…
Reference in New Issue
Block a user