Update compiler/rustc_codegen_llvm/src/back/archive.rs

Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
This commit is contained in:
SLASHLogin 2022-11-08 20:32:09 +01:00
parent a8a8055cc7
commit 0baac880fc

View File

@ -315,7 +315,7 @@ impl<'a> LlvmArchiveBuilder<'a> {
let kind = kind
.parse::<ArchiveKind>()
.map_err(|_| kind)
.unwrap_or_else(|kind| self.sess.emit_fatal(UnknownArchiveKind { kind: kind }));
.unwrap_or_else(|kind| self.sess.emit_fatal(UnknownArchiveKind { kind }));
let mut additions = mem::take(&mut self.additions);
let mut strings = Vec::new();