make an inline expect triggered by a top-level expect work

This commit is contained in:
Folkert 2024-01-31 23:26:12 +01:00
parent 39a90ec32d
commit 41ad915c35
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 84 additions and 40 deletions

View file

@ -613,7 +613,8 @@ pub fn rebuild_host(
// Clean up c_host.o
if c_host_dest.exists() {
std::fs::remove_file(c_host_dest).unwrap();
// there can be a race condition on this file cleanup
let _ = std::fs::remove_file(c_host_dest);
}
}
} else if rust_host_src.exists() {