Skip to content

Commit b731bfa

Browse files
committed
Refactor 'invalid issue' diagnostic to use labels within the same Fluent object
1 parent b3be769 commit b731bfa

File tree

1 file changed

+5
-10
lines changed
  • compiler/rustc_error_messages/locales/en-US

1 file changed

+5
-10
lines changed

compiler/rustc_error_messages/locales/en-US/attr.ftl

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,11 @@ attr_invalid_meta_item =
3333
3434
attr_invalid_issue_string =
3535
`issue` must be a non-zero numeric string or "none"
36-
attr_must_not_be_zero =
37-
`issue` must not be "0", use "none" instead
38-
attr_empty =
39-
cannot parse integer from empty string
40-
attr_invalid_digit =
41-
invalid digit found in string
42-
attr_pos_overflow =
43-
number too large to fit in target type
44-
attr_neg_overflow =
45-
number too small to fit in target type
36+
.must_not_be_zero = `issue` must not be "0", use "none" instead
37+
.empty = cannot parse integer from empty string
38+
.invalid_digit = invalid digit found in string
39+
.pos_overflow = number too large to fit in target type
40+
.neg_overflow = number too small to fit in target type
4641
4742
attr_missing_issue =
4843
missing 'issue'

0 commit comments

Comments
 (0)