File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0a22a4edbb2300e338ef01c524265ecc647cbff4
2
+ refs/heads/master: 3c200f3e14ff618431ea12c52031da43ee651984
Original file line number Diff line number Diff line change @@ -1467,8 +1467,9 @@ fn check_pat(&@fn_ctxt fcx, @ast.pat pat) -> @ast.pat {
1467
1467
// TODO: pluralize properly
1468
1468
auto err_msg = "tag type " + last_id + " has " +
1469
1469
_uint. to_str( subpats_len, 10 u) +
1470
- " fields, but this pattern has " +
1471
- _uint. to_str( arg_len, 10 u) + " fields";
1470
+ " field( s) , but this pattern has " +
1471
+ _uint. to_str( arg_len, 10 u) +
1472
+ " field( s) ";
1472
1473
1473
1474
fcx. ccx. sess. span_err( pat. span, err_msg) ;
1474
1475
fail; // TODO: recover
@@ -1491,10 +1492,10 @@ fn check_pat(&@fn_ctxt fcx, @ast.pat pat) -> @ast.pat {
1491
1492
if ( subpats_len > 0 u) {
1492
1493
// TODO: pluralize properly
1493
1494
auto err_msg = "tag type " + last_id +
1494
- " has no fields , " +
1495
+ " has no field ( s ) , " +
1495
1496
" but this pattern has " +
1496
1497
_uint. to_str( subpats_len, 10 u) +
1497
- " fields ";
1498
+ " field ( s ) ";
1498
1499
1499
1500
fcx. ccx. sess. span_err( pat. span, err_msg) ;
1500
1501
fail; // TODO: recover
You can’t perform that action at this time.
0 commit comments