We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1edc13 commit a99838aCopy full SHA for a99838a
compiler/rustc_codegen_ssa/src/back/archive.rs
@@ -290,11 +290,17 @@ impl<'a> ArArchiveBuilder<'a> {
290
false,
291
)?;
292
293
+ let any_entries = !entries.is_empty();
294
+ drop(entries);
295
+ // Drop src_archives to unmap all input archives, which is necessary if we want to write the
296
+ // output archive to the same location as an input archive on Windows.
297
+ drop(self.src_archives);
298
+
299
archive_tmpfile
300
.persist(output)
301
.map_err(|err| io_error_context("failed to rename archive file", err.error))?;
302
- Ok(!entries.is_empty())
303
+ Ok(any_entries)
304
}
305
306
0 commit comments