summaryrefslogtreecommitdiff
path: root/src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs')
-rw-r--r--src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs b/src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs
index 064dbe025af..a1e949183ad 100644
--- a/src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs
+++ b/src/tools/miri/src/borrow_tracker/stacked_borrows/stack.rs
@@ -83,7 +83,7 @@ impl Stack {
self.borrows.truncate(write_idx);
#[cfg(not(feature = "stack-cache"))]
- drop(first_removed); // This is only needed for the stack-cache
+ let _unused = first_removed; // This is only needed for the stack-cache
#[cfg(feature = "stack-cache")]
if let Some(first_removed) = first_removed {