Skip to content

Commit 37e0016

Browse files
committed
Bless tests
1 parent c359ab0 commit 37e0016

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/tools/miri/tests/fail/stacked_borrows/drop_in_place_protector.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LL | core::ptr::drop_in_place(x);
2020
= note: inside `<HasDrop as std::ops::Drop>::drop` at $DIR/drop_in_place_protector.rs:LL:CC
2121
= note: inside `std::ptr::drop_in_place::<HasDrop> - shim(Some(HasDrop))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
2222
= note: inside `std::ptr::drop_in_place::<(HasDrop, u8)> - shim(Some((HasDrop, u8)))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
23-
note: inside `main` at $DIR/drop_in_place_protector.rs:LL:CC
23+
note: inside `main`
2424
--> $DIR/drop_in_place_protector.rs:LL:CC
2525
|
2626
LL | core::ptr::drop_in_place(x);

src/tools/miri/tests/fail/stacked_borrows/drop_in_place_retag.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
| |
77
| trying to retag from <TAG> for Unique permission at ALLOC[0x0], but that tag only grants SharedReadOnly permission for this location
8-
| this error occurs as part of FnEntry retag at ALLOC[0x0..0x1]
8+
| this error occurs as part of retag at ALLOC[0x0..0x1]
99
|
1010
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
1111
= 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);
1616
| ^^^^^^^^^^^^^^^^^^^^^^
1717
= note: BACKTRACE:
1818
= note: inside `std::ptr::drop_in_place::<u8> - shim(None)` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
19-
note: inside `main` at $DIR/drop_in_place_retag.rs:LL:CC
19+
note: inside `main`
2020
--> $DIR/drop_in_place_retag.rs:LL:CC
2121
|
2222
LL | core::ptr::drop_in_place(x.cast_mut());

src/tools/miri/tests/fail/unaligned_pointers/drop_in_place.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
1010
= note: inside `std::ptr::drop_in_place::<PartialDrop> - shim(Some(PartialDrop))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
11-
note: inside `main` at $DIR/drop_in_place.rs:LL:CC
11+
note: inside `main`
1212
--> $DIR/drop_in_place.rs:LL:CC
1313
|
1414
LL | core::ptr::drop_in_place(p);

0 commit comments

Comments
 (0)