diff options
| author | Ralf Jung <post@ralfj.de> | 2022-12-24 10:12:28 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-12-24 10:40:50 +0100 |
| commit | e52e0d855799fe651922be4a038fe84fe9009c72 (patch) | |
| tree | b44bd3e79fa5019f0e8648737e71c432bc784188 | |
| parent | 9c01e9f7f56694db0179673fca221358d3524903 (diff) | |
| download | rust-e52e0d855799fe651922be4a038fe84fe9009c72.tar.gz rust-e52e0d855799fe651922be4a038fe84fe9009c72.zip | |
fix warnings
3 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_protector.stderr b/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_protector.stderr index bd51a6645a6..3d0cef241c3 100644 --- a/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_protector.stderr +++ b/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_protector.stderr @@ -16,7 +16,7 @@ help: <TAG> is this argument | LL | core::ptr::drop_in_place(x); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = note: BACKTRACE: + = note: BACKTRACE (of the first span): = 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 diff --git a/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_retag.stderr b/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_retag.stderr index 3f9e6708bda..7f2917e7950 100644 --- a/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_retag.stderr +++ b/src/tools/miri/tests/fail/stacked_borrows/drop_in_place_retag.stderr @@ -14,7 +14,7 @@ help: <TAG> was created by a SharedReadOnly retag at offsets [0x0..0x1] | LL | let x = core::ptr::addr_of!(x); | ^^^^^^^^^^^^^^^^^^^^^^ - = note: BACKTRACE: + = note: BACKTRACE (of the first span): = note: inside `std::ptr::drop_in_place::<u8> - shim(None)` at RUSTLIB/core/src/ptr/mod.rs:LL:CC note: inside `main` --> $DIR/drop_in_place_retag.rs:LL:CC diff --git a/src/tools/miri/tests/pass/vec.rs b/src/tools/miri/tests/pass/vec.rs index fb1d8e306f2..3a6655e2ba6 100644 --- a/src/tools/miri/tests/pass/vec.rs +++ b/src/tools/miri/tests/pass/vec.rs @@ -48,7 +48,7 @@ fn vec_into_iter_zst() { assert_eq!(v, 0); let mut it = vec![[0u64; 0], [0u64; 0]].into_iter(); - it.advance_by(1); + it.advance_by(1).unwrap(); drop(it); let mut it = vec![[0u64; 0], [0u64; 0]].into_iter(); |
