]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_expand/messages.ftl
New upstream version 1.70.0+dfsg1
[rustc.git] / compiler / rustc_expand / messages.ftl
CommitLineData
f2b60f7d 1expand_explain_doc_comment_outer =
064997fb
FG
2 outer doc comments expand to `#[doc = "..."]`, which is what this macro attempted to match
3
f2b60f7d 4expand_explain_doc_comment_inner =
064997fb 5 inner doc comments expand to `#![doc = "..."]`, which is what this macro attempted to match
f2b60f7d
FG
6
7expand_expr_repeat_no_syntax_vars =
8 attempted to repeat an expression containing no syntax variables matched as repeating at this depth
9
10expand_must_repeat_once =
11 this must repeat at least once
12
13expand_count_repetition_misplaced =
14 `count` can not be placed inside the inner-most repetition
15
16expand_meta_var_expr_unrecognized_var =
17 variable `{$key}` is not recognized in meta-variable expression
18
19expand_var_still_repeating =
20 variable '{$ident}' is still repeating at this depth
21
22expand_meta_var_dif_seq_matchers = {$msg}
9c376795
FG
23
24expand_macro_const_stability =
25 macros cannot have const stability attributes
26 .label = invalid const stability attribute
27 .label2 = const stability attribute affects this macro
28
29expand_macro_body_stability =
30 macros cannot have body stability attributes
31 .label = invalid body stability attribute
32 .label2 = body stability attribute affects this macro
33
34expand_resolve_relative_path =
35 cannot resolve relative path in non-file source `{$path}`
36
37expand_attr_no_arguments =
38 attribute must have either one or two arguments
39
40expand_not_a_meta_item =
41 not a meta item
42
43expand_only_one_word =
44 must only be one word
45
46expand_cannot_be_name_of_macro =
47 `{$trait_ident}` cannot be a name of {$macro_type} macro
48
49expand_arg_not_attributes =
50 second argument must be `attributes`
51
52expand_attributes_wrong_form =
53 attribute must be of form: `attributes(foo, bar)`
54
55expand_attribute_meta_item =
56 attribute must be a meta item, not a literal
57
58expand_attribute_single_word =
59 attribute must only be a single word
60
61expand_helper_attribute_name_invalid =
62 `{$name}` cannot be a name of derive helper attribute
63
64expand_expected_comma_in_list =
65 expected token: `,`
66
67expand_only_one_argument =
68 {$name} takes 1 argument
69
70expand_takes_no_arguments =
71 {$name} takes no arguments
72
73expand_feature_included_in_edition =
74 the feature `{$feature}` is included in the Rust {$edition} edition
75
76expand_feature_removed =
77 feature has been removed
78 .label = feature has been removed
79 .reason = {$reason}
80
81expand_feature_not_allowed =
82 the feature `{$name}` is not in the list of allowed features
83
84expand_recursion_limit_reached =
85 recursion limit reached while expanding `{$descr}`
86 .help = consider increasing the recursion limit by adding a `#![recursion_limit = "{$suggested_limit}"]` attribute to your crate (`{$crate_name}`)
87
88expand_malformed_feature_attribute =
89 malformed `feature` attribute input
90 .expected = expected just one word
91
92expand_remove_expr_not_supported =
93 removing an expression is not supported in this position
94
95expand_invalid_cfg_no_parens = `cfg` is not followed by parentheses
96expand_invalid_cfg_no_predicate = `cfg` predicate is not specified
97expand_invalid_cfg_multiple_predicates = multiple `cfg` predicates are specified
98expand_invalid_cfg_predicate_literal = `cfg` predicate key cannot be a literal
99expand_invalid_cfg_expected_syntax = expected syntax is
100
101expand_wrong_fragment_kind =
102 non-{$kind} macro in {$kind} position: {$name}
103
104expand_unsupported_key_value =
105 key-value macro attributes are not supported
106
107expand_incomplete_parse =
108 macro expansion ignores token `{$token}` and any following
109 .label = caused by the macro expansion here
110 .note = the usage of `{$macro_path}!` is likely invalid in {$kind_name} context
111 .suggestion_add_semi = you might be missing a semicolon here
112
113expand_remove_node_not_supported =
114 removing {$descr} is not supported in this position
115
116expand_module_circular =
117 circular modules: {$modules}
118
119expand_module_in_block =
120 cannot declare a non-inline module inside a block unless it has a path attribute
121 .note = maybe `use` the module `{$name}` instead of redeclaring it
122
123expand_module_file_not_found =
124 file not found for module `{$name}`
125 .help = to create the module `{$name}`, create file "{$default_path}" or "{$secondary_path}"
126
127expand_module_multiple_candidates =
128 file for module `{$name}` found at both "{$default_path}" and "{$secondary_path}"
129 .help = delete or rename one of them to remove the ambiguity
9ffffee4
FG
130
131expand_trace_macro = trace_macro
132
133expand_proc_macro_panicked =
134 proc macro panicked
135 .help = message: {$message}
136
137expand_proc_macro_derive_tokens =
353b0b11 138 proc-macro derive produced unparsable tokens