]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint_defs/src/lib.rs
Rollup merge of #102689 - ayrtonm:master, r=cjgillot
[rust.git] / compiler / rustc_lint_defs / src / lib.rs
index cbe7afc8e5558b2e2fe0bbe79f183d6ddf42c52a..aa54b3d8ac2bc058cc91b773f86db57130000014 100644 (file)
@@ -25,6 +25,9 @@ macro_rules! pluralize {
     ($x:expr) => {
         if $x != 1 { "s" } else { "" }
     };
+    ("has", $x:expr) => {
+        if $x == 1 { "has" } else { "have" }
+    };
     ("is", $x:expr) => {
         if $x == 1 { "is" } else { "are" }
     };