about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/errors.rs
diff options
context:
space:
mode:
authorJulien Cretin <github@ia0.eu>2025-07-07 08:49:10 +0200
committerGitHub <noreply@github.com>2025-07-07 08:49:10 +0200
commitcdbdd8a4ad9b65fec77b5b94d5650823b52fa910 (patch)
tree1bb263f7016f35641c145f8e6002e2e9c97546c5 /compiler/rustc_codegen_ssa/src/errors.rs
parent4bdd671358ef8019f5f8bf048b5241419c2160b8 (diff)
downloadrust-cdbdd8a4ad9b65fec77b5b94d5650823b52fa910.tar.gz
rust-cdbdd8a4ad9b65fec77b5b94d5650823b52fa910.zip
Reverse comparison order
Co-authored-by: beef <ent3rm4n@gmail.com>
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs
index 4b112f1c608..e042fe1f819 100644
--- a/compiler/rustc_codegen_ssa/src/errors.rs
+++ b/compiler/rustc_codegen_ssa/src/errors.rs
@@ -495,7 +495,7 @@ impl<G: EmissionGuarantee> 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("{");
                         }