From 5dce0e66b9424ed1070e5b37ca21ffee62957595 Mon Sep 17 00:00:00 2001
From: allaboutevemirolive <xkmxlfirdxus@gmail.com>
Date: Mon, 21 Aug 2023 13:31:58 -0400
Subject: [PATCH] Redefine the pluralize macro's arm

---
 compiler/rustc_lint_defs/src/lib.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/rustc_lint_defs/src/lib.rs b/compiler/rustc_lint_defs/src/lib.rs
index f350957f72f..1d0e367abba 100644
--- a/compiler/rustc_lint_defs/src/lib.rs
+++ b/compiler/rustc_lint_defs/src/lib.rs
@@ -23,8 +23,9 @@ pub mod builtin;
 
 #[macro_export]
 macro_rules! pluralize {
+    // Pluralize based on count (e.g., apples)
     ($x:expr) => {
-        if $x != 1 { "s" } else { "" }
+        if $x == 1 { "" } else { "s" }
     };
     ("has", $x:expr) => {
         if $x == 1 { "has" } else { "have" }