Skip to content

Commit 7431970

Browse files
committed
fmt and fix lint
1 parent 7b1cb69 commit 7431970

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl Stack {
8383
self.borrows.truncate(write_idx);
8484

8585
#[cfg(not(feature = "stack-cache"))]
86-
drop(first_removed); // This is only needed for the stack-cache
86+
let _unused = first_removed; // This is only needed for the stack-cache
8787

8888
#[cfg(feature = "stack-cache")]
8989
if let Some(first_removed) = first_removed {

src/tools/miri/tests/fail/uninit_buffer_with_provenance.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@error-in-other-file: memory is uninitialized at [0x4..0x8]
22
//@normalize-stderr-test: "a[0-9]+" -> "ALLOC"
33
#![feature(strict_provenance)]
4-
54
#![allow(drop_copy)]
65

76
// Test printing allocations that contain single-byte provenance.

0 commit comments

Comments
 (0)