diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index 4b112f1c6083..e042fe1f8196 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -495,7 +495,7 @@ impl Diagnostic<'_, G> for LinkingFailed<'_> { }; let mut arg = dir.into_os_string(); arg.push("/"); - let needs_braces = 2 <= rlibs.len(); + let needs_braces = rlibs.len() >= 2; if needs_braces { arg.push("{"); }