diff options
| author | est31 <MTest31@outlook.com> | 2022-03-14 17:55:14 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-03-15 15:37:49 +0100 |
| commit | 3bf9124f14f68f8c3cd26dd27d0ef27c516a5f06 (patch) | |
| tree | 514047e6dbfc97972aee02110fc0a89ab493992c /compiler/rustc_passes | |
| parent | bce19cf7f19ee5729defaccc86b068cc3c206c9c (diff) | |
| download | rust-3bf9124f14f68f8c3cd26dd27d0ef27c516a5f06.tar.gz rust-3bf9124f14f68f8c3cd26dd27d0ef27c516a5f06.zip | |
Support other types of pluralization in pluralize macro
Diffstat (limited to 'compiler/rustc_passes')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index 01b12eec628..06184b47972 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -1410,7 +1410,7 @@ impl CheckAttrVisitor<'_> { span, format!( "there {} only {} argument{}", - if arg_count != 1 { "are" } else { "is" }, + pluralize!("is", arg_count), arg_count, pluralize!(arg_count) ), |
