fmt and fix lint

This commit is contained in:
Ralf Jung 2023-05-13 10:55:42 +02:00
parent 7b1cb69efa
commit 7431970758
2 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,7 @@ pub fn retain(&mut self, tags: &FxHashSet<BorTag>) {
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 {

View File

@ -1,7 +1,6 @@
//@error-in-other-file: memory is uninitialized at [0x4..0x8]
//@normalize-stderr-test: "a[0-9]+" -> "ALLOC"
#![feature(strict_provenance)]
#![allow(drop_copy)]
// Test printing allocations that contain single-byte provenance.