Skip to content

Commit b27592e

Browse files
Sort fluent messages
1 parent 99104ef commit b27592e

File tree

1 file changed

+71
-85
lines changed

1 file changed

+71
-85
lines changed

compiler/rustc_attr_parsing/messages.ftl

Lines changed: 71 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,77 @@ 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+
1788
attr_parsing_empty_attribute =
1889
unused attribute
1990
.suggestion = {$valid_without_list ->
@@ -261,93 +332,8 @@ attr_parsing_unused_multiple =
261332
.suggestion = remove this attribute
262333
.note = attribute also specified here
263334
264-
265-
attr_parsing_doc_alias_duplicated = doc alias is duplicated
266-
.label = first defined here
267-
268335
-attr_parsing_previously_accepted =
269336
this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
270337
271338
attr_parsing_whole_archive_needs_static =
272339
linking modifier `whole-archive` is only compatible with `static` linking kind
273-
274-
attr_parsing_unused_no_lints_note =
275-
attribute `{$name}` without any lints has no effect
276-
277-
attr_parsing_doc_alias_empty =
278-
{$attr_str} attribute cannot have empty value
279-
280-
attr_parsing_doc_alias_bad_char =
281-
{$char_} character isn't allowed in {$attr_str}
282-
283-
attr_parsing_doc_alias_start_end =
284-
{$attr_str} cannot start or end with ' '
285-
286-
attr_parsing_doc_keyword_not_keyword =
287-
nonexistent keyword `{$keyword}` used in `#[doc(keyword = "...")]`
288-
.help = only existing keywords are allowed in core/std
289-
290-
attr_parsing_doc_attribute_not_attribute =
291-
nonexistent builtin attribute `{$attribute}` used in `#[doc(attribute = "...")]`
292-
.help = only existing builtin attributes are allowed in core/std
293-
294-
attr_parsing_doc_inline_conflict =
295-
conflicting doc inlining attributes
296-
.help = remove one of the conflicting attributes
297-
298-
attr_parsing_doc_inline_conflict_first =
299-
this attribute...
300-
301-
attr_parsing_doc_inline_conflict_second =
302-
{"."}..conflicts with this attribute
303-
304-
attr_parsing_doc_auto_cfg_expects_hide_or_show =
305-
only `hide` or `show` are allowed in `#[doc(auto_cfg(...))]`
306-
307-
attr_parsing_doc_auto_cfg_hide_show_unexpected_item =
308-
`#![doc(auto_cfg({$attr_name}(...)))]` only accepts identifiers or key/value items
309-
310-
attr_parsing_doc_auto_cfg_hide_show_expects_list =
311-
`#![doc(auto_cfg({$attr_name}(...)))]` expects a list of items
312-
313-
attr_parsing_doc_invalid =
314-
invalid `doc` attribute
315-
316-
attr_parsing_doc_unknown_include =
317-
unknown `doc` attribute `include`
318-
.suggestion = use `doc = include_str!` instead
319-
320-
attr_parsing_doc_unknown_spotlight =
321-
unknown `doc` attribute `spotlight`
322-
.note = `doc(spotlight)` was renamed to `doc(notable_trait)`
323-
.suggestion = use `notable_trait` instead
324-
.no_op_note = `doc(spotlight)` is now a no-op
325-
326-
attr_parsing_doc_unknown_passes =
327-
unknown `doc` attribute `{$name}`
328-
.note = `doc` attribute `{$name}` no longer functions; see issue #44136 <https://github.com/rust-lang/rust/issues/44136>
329-
.label = no longer functions
330-
.no_op_note = `doc({$name})` is now a no-op
331-
332-
attr_parsing_doc_unknown_plugins =
333-
unknown `doc` attribute `plugins`
334-
.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>
335-
.label = no longer functions
336-
.no_op_note = `doc(plugins)` is now a no-op
337-
338-
attr_parsing_doc_unknown_any =
339-
unknown `doc` attribute `{$name}`
340-
341-
attr_parsing_doc_auto_cfg_wrong_literal =
342-
expected boolean for `#[doc(auto_cfg = ...)]`
343-
344-
attr_parsing_doc_test_takes_list =
345-
`#[doc(test(...)]` takes a list of attributes
346-
347-
attr_parsing_doc_test_unknown =
348-
unknown `doc(test)` attribute `{$name}`
349-
350-
attr_parsing_doc_test_literal = `#![doc(test(...)]` does not take a literal
351-
352-
attr_parsing_doc_alias_malformed =
353-
doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`

0 commit comments

Comments
 (0)