Skip to content

Commit 33055ee

Browse files
Sort fluent messages
1 parent 4b5be79 commit 33055ee

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
@@ -238,84 +321,3 @@ attr_parsing_doc_alias_duplicated = doc alias is duplicated
238321
239322
attr_parsing_whole_archive_needs_static =
240323
linking modifier `whole-archive` is only compatible with `static` linking kind
241-
242-
attr_parsing_unused_no_lints_note =
243-
attribute `{$name}` without any lints has no effect
244-
245-
attr_parsing_doc_alias_empty =
246-
{$attr_str} attribute cannot have empty value
247-
248-
attr_parsing_doc_alias_bad_char =
249-
{$char_} character isn't allowed in {$attr_str}
250-
251-
attr_parsing_doc_alias_start_end =
252-
{$attr_str} cannot start or end with ' '
253-
254-
attr_parsing_doc_keyword_not_keyword =
255-
nonexistent keyword `{$keyword}` used in `#[doc(keyword = "...")]`
256-
.help = only existing keywords are allowed in core/std
257-
258-
attr_parsing_doc_attribute_not_attribute =
259-
nonexistent builtin attribute `{$attribute}` used in `#[doc(attribute = "...")]`
260-
.help = only existing builtin attributes are allowed in core/std
261-
262-
attr_parsing_doc_inline_conflict =
263-
conflicting doc inlining attributes
264-
.help = remove one of the conflicting attributes
265-
266-
attr_parsing_doc_inline_conflict_first =
267-
this attribute...
268-
269-
attr_parsing_doc_inline_conflict_second =
270-
{"."}..conflicts with this attribute
271-
272-
attr_parsing_doc_auto_cfg_expects_hide_or_show =
273-
only `hide` or `show` are allowed in `#[doc(auto_cfg(...))]`
274-
275-
attr_parsing_doc_auto_cfg_hide_show_unexpected_item =
276-
`#![doc(auto_cfg({$attr_name}(...)))]` only accepts identifiers or key/value items
277-
278-
attr_parsing_doc_auto_cfg_hide_show_expects_list =
279-
`#![doc(auto_cfg({$attr_name}(...)))]` expects a list of items
280-
281-
attr_parsing_doc_invalid =
282-
invalid `doc` attribute
283-
284-
attr_parsing_doc_unknown_include =
285-
unknown `doc` attribute `include`
286-
.suggestion = use `doc = include_str!` instead
287-
288-
attr_parsing_doc_unknown_spotlight =
289-
unknown `doc` attribute `spotlight`
290-
.note = `doc(spotlight)` was renamed to `doc(notable_trait)`
291-
.suggestion = use `notable_trait` instead
292-
.no_op_note = `doc(spotlight)` is now a no-op
293-
294-
attr_parsing_doc_unknown_passes =
295-
unknown `doc` attribute `{$name}`
296-
.note = `doc` attribute `{$name}` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
297-
.label = no longer functions
298-
.no_op_note = `doc({$name})` is now a no-op
299-
300-
attr_parsing_doc_unknown_plugins =
301-
unknown `doc` attribute `plugins`
302-
.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>
303-
.label = no longer functions
304-
.no_op_note = `doc(plugins)` is now a no-op
305-
306-
attr_parsing_doc_unknown_any =
307-
unknown `doc` attribute `{$name}`
308-
309-
attr_parsing_doc_auto_cfg_wrong_literal =
310-
expected boolean for `#[doc(auto_cfg = ...)]`
311-
312-
attr_parsing_doc_test_takes_list =
313-
`#[doc(test(...)]` takes a list of attributes
314-
315-
attr_parsing_doc_test_unknown =
316-
unknown `doc(test)` attribute `{$name}`
317-
318-
attr_parsing_doc_test_literal = `#![doc(test(...)]` does not take a literal
319-
320-
attr_parsing_doc_alias_malformed =
321-
doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`

0 commit comments

Comments
 (0)