Skip to content

Commit e52e0d8

Browse files
committed
fix warnings
1 parent 9c01e9f commit e52e0d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: <TAG> is this argument
1616
|
1717
LL | core::ptr::drop_in_place(x);
1818
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
19-
= note: BACKTRACE:
19+
= note: BACKTRACE (of the first span):
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x1]
1414
|
1515
LL | let x = core::ptr::addr_of!(x);
1616
| ^^^^^^^^^^^^^^^^^^^^^^
17-
= note: BACKTRACE:
17+
= note: BACKTRACE (of the first span):
1818
= note: inside `std::ptr::drop_in_place::<u8> - shim(None)` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
1919
note: inside `main`
2020
--> $DIR/drop_in_place_retag.rs:LL:CC

src/tools/miri/tests/pass/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn vec_into_iter_zst() {
4848
assert_eq!(v, 0);
4949

5050
let mut it = vec![[0u64; 0], [0u64; 0]].into_iter();
51-
it.advance_by(1);
51+
it.advance_by(1).unwrap();
5252
drop(it);
5353

5454
let mut it = vec![[0u64; 0], [0u64; 0]].into_iter();

0 commit comments

Comments
 (0)