Skip to content

Commit 3fa499b

Browse files
Sort fluent messages
1 parent e4f57dd commit 3fa499b

File tree

1 file changed

+83
-81
lines changed

1 file changed

+83
-81
lines changed

compiler/rustc_attr_parsing/messages.ftl

Lines changed: 83 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,91 @@ attr_parsing_deprecated_item_suggestion =
1414
.help = add `#![feature(deprecated_suggestion)]` to the crate root
1515
.note = see #94785 for more details
1616
17+
attr_parsing_doc_alias_bad_char =
18+
{$char_} character isn't allowed in {$attr_str}
19+
20+
attr_parsing_doc_alias_duplicated = doc alias is duplicated
21+
.label = first defined here
22+
23+
attr_parsing_doc_alias_empty =
24+
{$attr_str} attribute cannot have empty value
25+
26+
attr_parsing_doc_alias_malformed =
27+
doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`
28+
29+
attr_parsing_doc_alias_start_end =
30+
{$attr_str} cannot start or end with ' '
31+
32+
attr_parsing_doc_attribute_not_attribute =
33+
nonexistent builtin attribute `{$attribute}` used in `#[doc(attribute = "...")]`
34+
.help = only existing builtin attributes are allowed in core/std
35+
36+
attr_parsing_doc_auto_cfg_expects_hide_or_show =
37+
only `hide` or `show` are allowed in `#[doc(auto_cfg(...))]`
38+
39+
attr_parsing_doc_auto_cfg_hide_show_expects_list =
40+
`#![doc(auto_cfg({$attr_name}(...)))]` expects a list of items
41+
42+
attr_parsing_doc_auto_cfg_hide_show_unexpected_item =
43+
`#![doc(auto_cfg({$attr_name}(...)))]` only accepts identifiers or key/value items
44+
45+
attr_parsing_doc_auto_cfg_wrong_literal =
46+
expected boolean for `#[doc(auto_cfg = ...)]`
47+
48+
attr_parsing_doc_invalid =
49+
invalid `doc` attribute
50+
51+
attr_parsing_doc_keyword_not_keyword =
52+
nonexistent keyword `{$keyword}` used in `#[doc(keyword = "...")]`
53+
.help = only existing keywords are allowed in core/std
54+
55+
attr_parsing_doc_test_literal = `#![doc(test(...)]` does not take a literal
56+
57+
attr_parsing_doc_test_takes_list =
58+
`#[doc(test(...)]` takes a list of attributes
59+
60+
attr_parsing_doc_test_unknown =
61+
unknown `doc(test)` attribute `{$name}`
62+
63+
attr_parsing_doc_unknown_any =
64+
unknown `doc` attribute `{$name}`
65+
66+
attr_parsing_doc_unknown_include =
67+
unknown `doc` attribute `include`
68+
.suggestion = use `doc = include_str!` instead
69+
70+
attr_parsing_doc_unknown_passes =
71+
unknown `doc` attribute `{$name}`
72+
.note = `doc` attribute `{$name}` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
73+
.label = no longer functions
74+
.no_op_note = `doc({$name})` is now a no-op
75+
76+
attr_parsing_doc_unknown_plugins =
77+
unknown `doc` attribute `plugins`
78+
.note = `doc` attribute `plugins` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136> and CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>
79+
.label = no longer functions
80+
.no_op_note = `doc(plugins)` is now a no-op
81+
82+
attr_parsing_doc_unknown_spotlight =
83+
unknown `doc` attribute `spotlight`
84+
.note = `doc(spotlight)` was renamed to `doc(notable_trait)`
85+
.suggestion = use `notable_trait` instead
86+
.no_op_note = `doc(spotlight)` is now a no-op
87+
88+
attr_parsing_empty_attribute =
89+
unused attribute
90+
.suggestion = {$valid_without_list ->
91+
[true] remove these parentheses
92+
*[other] remove this attribute
93+
}
94+
.note = {$valid_without_list ->
95+
[true] using `{$attr_path}` with an empty list is equivalent to not using a list at all
96+
*[other] using `{$attr_path}` with an empty list has no effect
97+
}
98+
1799
attr_parsing_empty_confusables =
18100
expected at least one confusable name
101+
19102
attr_parsing_empty_link_name =
20103
link name must not be empty
21104
.label = empty link name
@@ -239,84 +322,3 @@ attr_parsing_doc_alias_duplicated = doc alias is duplicated
239322
240323
attr_parsing_whole_archive_needs_static =
241324
linking modifier `whole-archive` is only compatible with `static` linking kind
242-
243-
attr_parsing_unused_no_lints_note =
244-
attribute `{$name}` without any lints has no effect
245-
246-
attr_parsing_doc_alias_empty =
247-
{$attr_str} attribute cannot have empty value
248-
249-
attr_parsing_doc_alias_bad_char =
250-
{$char_} character isn't allowed in {$attr_str}
251-
252-
attr_parsing_doc_alias_start_end =
253-
{$attr_str} cannot start or end with ' '
254-
255-
attr_parsing_doc_keyword_not_keyword =
256-
nonexistent keyword `{$keyword}` used in `#[doc(keyword = "...")]`
257-
.help = only existing keywords are allowed in core/std
258-
259-
attr_parsing_doc_attribute_not_attribute =
260-
nonexistent builtin attribute `{$attribute}` used in `#[doc(attribute = "...")]`
261-
.help = only existing builtin attributes are allowed in core/std
262-
263-
attr_parsing_doc_inline_conflict =
264-
conflicting doc inlining attributes
265-
.help = remove one of the conflicting attributes
266-
267-
attr_parsing_doc_inline_conflict_first =
268-
this attribute...
269-
270-
attr_parsing_doc_inline_conflict_second =
271-
{"."}..conflicts with this attribute
272-
273-
attr_parsing_doc_auto_cfg_expects_hide_or_show =
274-
only `hide` or `show` are allowed in `#[doc(auto_cfg(...))]`
275-
276-
attr_parsing_doc_auto_cfg_hide_show_unexpected_item =
277-
`#![doc(auto_cfg({$attr_name}(...)))]` only accepts identifiers or key/value items
278-
279-
attr_parsing_doc_auto_cfg_hide_show_expects_list =
280-
`#![doc(auto_cfg({$attr_name}(...)))]` expects a list of items
281-
282-
attr_parsing_doc_invalid =
283-
invalid `doc` attribute
284-
285-
attr_parsing_doc_unknown_include =
286-
unknown `doc` attribute `include`
287-
.suggestion = use `doc = include_str!` instead
288-
289-
attr_parsing_doc_unknown_spotlight =
290-
unknown `doc` attribute `spotlight`
291-
.note = `doc(spotlight)` was renamed to `doc(notable_trait)`
292-
.suggestion = use `notable_trait` instead
293-
.no_op_note = `doc(spotlight)` is now a no-op
294-
295-
attr_parsing_doc_unknown_passes =
296-
unknown `doc` attribute `{$name}`
297-
.note = `doc` attribute `{$name}` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
298-
.label = no longer functions
299-
.no_op_note = `doc({$name})` is now a no-op
300-
301-
attr_parsing_doc_unknown_plugins =
302-
unknown `doc` attribute `plugins`
303-
.note = `doc` attribute `plugins` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136> and CVE-2018-1000622 <https://nvd.nist.gov/vuln/detail/CVE-2018-1000622>
304-
.label = no longer functions
305-
.no_op_note = `doc(plugins)` is now a no-op
306-
307-
attr_parsing_doc_unknown_any =
308-
unknown `doc` attribute `{$name}`
309-
310-
attr_parsing_doc_auto_cfg_wrong_literal =
311-
expected boolean for `#[doc(auto_cfg = ...)]`
312-
313-
attr_parsing_doc_test_takes_list =
314-
`#[doc(test(...)]` takes a list of attributes
315-
316-
attr_parsing_doc_test_unknown =
317-
unknown `doc(test)` attribute `{$name}`
318-
319-
attr_parsing_doc_test_literal = `#![doc(test(...)]` does not take a literal
320-
321-
attr_parsing_doc_alias_malformed =
322-
doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`

0 commit comments

Comments
 (0)