diff --git a/src/cargo/core/compiler/mod.rs b/src/cargo/core/compiler/mod.rs index 5079046e767..0d72a9491a3 100644 --- a/src/cargo/core/compiler/mod.rs +++ b/src/cargo/core/compiler/mod.rs @@ -394,7 +394,7 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc) -> Car } for (lt, arg) in &output.linker_args { - if lt.applies_to(&target) { + if lt.applies_to(target) { rustc.arg("-C").arg(format!("link-arg={}", arg)); } }