]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_messages/locales/en-US/passes.ftl
Merge remote-tracking branch 'origin/master' into mpk/add-long-error-message-for...
[rust.git] / compiler / rustc_error_messages / locales / en-US / passes.ftl
1 -passes_previously_accepted =
2     this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3
4 -passes_see_issue =
5     see issue #{$issue} <https://github.com/rust-lang/rust/issues/{$issue}> for more information
6
7 passes_outer_crate_level_attr =
8     crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
9
10 passes_inner_crate_level_attr =
11     crate-level attribute should be in the root module
12
13 passes_ignored_attr_with_macro = `#[{$sym}]` is ignored on struct fields, match arms and macro defs
14     .warn = {-passes_previously_accepted}
15     .note = {-passes_see_issue(issue: "80564")}
16
17 passes_ignored_attr = `#[{$sym}]` is ignored on struct fields and match arms
18     .warn = {-passes_previously_accepted}
19     .note = {-passes_see_issue(issue: "80564")}
20
21 passes_inline_ignored_function_prototype = `#[inline]` is ignored on function prototypes
22
23 passes_inline_ignored_constants = `#[inline]` is ignored on constants
24     .warn = {-passes_previously_accepted}
25     .note = {-passes_see_issue(issue: "65833")}
26
27 passes_inline_not_fn_or_closure = attribute should be applied to function or closure
28     .label = not a function or closure
29
30 passes_no_coverage_ignored_function_prototype = `#[no_coverage]` is ignored on function prototypes
31
32 passes_no_coverage_propagate =
33     `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly
34
35 passes_no_coverage_fn_defn = `#[no_coverage]` may only be applied to function definitions
36
37 passes_no_coverage_not_coverable = `#[no_coverage]` must be applied to coverable code
38     .label = not coverable code
39
40 passes_should_be_applied_to_fn = attribute should be applied to a function definition
41     .label = not a function definition
42
43 passes_naked_tracked_caller = cannot use `#[track_caller]` with `#[naked]`
44
45 passes_should_be_applied_to_struct_enum = attribute should be applied to a struct or enum
46     .label = not a struct or enum
47
48 passes_should_be_applied_to_trait = attribute should be applied to a trait
49     .label = not a trait
50
51 passes_target_feature_on_statement = {passes_should_be_applied_to_fn}
52     .warn = {-passes_previously_accepted}
53     .label = {passes_should_be_applied_to_fn.label}
54
55 passes_should_be_applied_to_static = attribute should be applied to a static
56     .label = not a static
57
58 passes_doc_expect_str = doc {$attr_name} attribute expects a string: #[doc({$attr_name} = "a")]
59
60 passes_doc_alias_empty = {$attr_str} attribute cannot have empty value
61
62 passes_doc_alias_bad_char = {$char_} character isn't allowed in {$attr_str}
63
64 passes_doc_alias_start_end = {$attr_str} cannot start or end with ' '
65
66 passes_doc_alias_bad_location = {$attr_str} isn't allowed on {$location}
67
68 passes_doc_alias_not_an_alias = {$attr_str} is the same as the item's name
69
70 passes_doc_alias_duplicated = doc alias is duplicated
71     .label = first defined here
72
73 passes_doc_alias_not_string_literal = `#[doc(alias("a"))]` expects string literals
74
75 passes_doc_alias_malformed =
76     doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`
77
78 passes_doc_keyword_empty_mod = `#[doc(keyword = "...")]` should be used on empty modules
79
80 passes_doc_keyword_not_mod = `#[doc(keyword = "...")]` should be used on modules
81
82 passes_doc_keyword_invalid_ident = `{$doc_keyword}` is not a valid identifier
83
84 passes_doc_fake_variadic_not_valid =
85     `#[doc(fake_variadic)]` must be used on the first of a set of tuple or fn pointer trait impls with varying arity
86
87 passes_doc_keyword_only_impl = `#[doc(keyword = "...")]` should be used on impl blocks
88
89 passes_doc_inline_conflict_first = this attribute...
90 passes_doc_inline_conflict_second = ...conflicts with this attribute
91 passes_doc_inline_conflict = conflicting doc inlining attributes
92     .help = remove one of the conflicting attributes
93
94 passes_doc_inline_only_use = this attribute can only be applied to a `use` item
95     .label = only applicable on `use` items
96     .not_a_use_item_label = not a `use` item
97     .note = read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
98
99 passes_doc_attr_not_crate_level =
100     `#![doc({$attr_name} = "...")]` isn't allowed as a crate-level attribute
101
102 passes_attr_crate_level = this attribute can only be applied at the crate level
103     .suggestion = to apply to the crate, use an inner attribute
104     .help = to apply to the crate, use an inner attribute
105     .note = read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
106
107 passes_doc_test_unknown = unknown `doc(test)` attribute `{$path}`
108
109 passes_doc_test_takes_list = `#[doc(test(...)]` takes a list of attributes
110
111 passes_doc_primitive = `doc(primitive)` should never have been stable
112
113 passes_doc_test_unknown_any = unknown `doc` attribute `{$path}`
114
115 passes_doc_test_unknown_spotlight = unknown `doc` attribute `{$path}`
116     .note = `doc(spotlight)` was renamed to `doc(notable_trait)`
117     .suggestion = use `notable_trait` instead
118     .no_op_note = `doc(spotlight)` is now a no-op
119
120 passes_doc_test_unknown_include = unknown `doc` attribute `{$path}`
121     .suggestion = use `doc = include_str!` instead
122
123 passes_doc_invalid = invalid `doc` attribute
124
125 passes_pass_by_value = `pass_by_value` attribute should be applied to a struct, enum or type alias
126     .label = is not a struct, enum or type alias
127
128 passes_allow_incoherent_impl =
129     `rustc_allow_incoherent_impl` attribute should be applied to impl items.
130     .label = the only currently supported targets are inherent methods
131
132 passes_has_incoherent_inherent_impl =
133     `rustc_has_incoherent_inherent_impls` attribute should be applied to types or traits.
134     .label = only adts, extern types and traits are supported
135
136 passes_must_use_async =
137     `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
138     .label = this attribute does nothing, the `Future`s returned by async functions are already `must_use`
139
140 passes_must_use_no_effect = `#[must_use]` has no effect when applied to {$article} {$target}
141
142 passes_must_not_suspend = `must_not_suspend` attribute should be applied to a struct, enum, or trait
143     .label = is not a struct, enum, or trait
144
145 passes_cold = {passes_should_be_applied_to_fn}
146     .warn = {-passes_previously_accepted}
147     .label = {passes_should_be_applied_to_fn.label}
148
149 passes_link = attribute should be applied to an `extern` block with non-Rust ABI
150     .warn = {-passes_previously_accepted}
151     .label = not an `extern` block
152
153 passes_link_name = attribute should be applied to a foreign function or static
154     .warn = {-passes_previously_accepted}
155     .label = not a foreign function or static
156     .help = try `#[link(name = "{$value}")]` instead
157
158 passes_no_link = attribute should be applied to an `extern crate` item
159     .label = not an `extern crate` item
160
161 passes_export_name = attribute should be applied to a free function, impl method or static
162     .label = not a free function, impl method or static
163
164 passes_rustc_layout_scalar_valid_range_not_struct = attribute should be applied to a struct
165     .label = not a struct
166
167 passes_rustc_layout_scalar_valid_range_arg = expected exactly one integer literal argument
168
169 passes_rustc_legacy_const_generics_only = #[rustc_legacy_const_generics] functions must only have const generics
170     .label = non-const generic parameter
171
172 passes_rustc_legacy_const_generics_index = #[rustc_legacy_const_generics] must have one index for each generic parameter
173     .label = generic parameters
174
175 passes_rustc_legacy_const_generics_index_exceed = index exceeds number of arguments
176     .label = there {$arg_count ->
177         [one] is
178         *[other] are
179     } only {$arg_count} {$arg_count ->
180         [one] argument
181         *[other] arguments
182     }
183
184 passes_rustc_legacy_const_generics_index_negative = arguments should be non-negative integers
185
186 passes_rustc_dirty_clean = attribute requires -Z query-dep-graph to be enabled
187
188 passes_link_section = attribute should be applied to a function or static
189     .warn = {-passes_previously_accepted}
190     .label = not a function or static
191
192 passes_no_mangle_foreign = `#[no_mangle]` has no effect on a foreign {$foreign_item_kind}
193     .warn = {-passes_previously_accepted}
194     .label = foreign {$foreign_item_kind}
195     .note = symbol names in extern blocks are not mangled
196     .suggestion = remove this attribute
197
198 passes_no_mangle = attribute should be applied to a free function, impl method or static
199     .warn = {-passes_previously_accepted}
200     .label = not a free function, impl method or static
201
202 passes_repr_ident = meta item in `repr` must be an identifier
203
204 passes_repr_conflicting = conflicting representation hints
205
206 passes_used_static = attribute must be applied to a `static` variable
207
208 passes_used_compiler_linker = `used(compiler)` and `used(linker)` can't be used together
209
210 passes_allow_internal_unstable = attribute should be applied to a macro
211     .label = not a macro
212
213 passes_debug_visualizer_placement = attribute should be applied to a module
214
215 passes_debug_visualizer_invalid = invalid argument
216     .note_1 = expected: `natvis_file = "..."`
217     .note_2 = OR
218     .note_3 = expected: `gdb_script_file = "..."`
219
220 passes_rustc_allow_const_fn_unstable = attribute should be applied to `const fn`
221     .label = not a `const fn`
222
223 passes_rustc_std_internal_symbol = attribute should be applied to functions or statics
224     .label = not a function or static
225
226 passes_const_trait = attribute should be applied to a trait
227
228 passes_stability_promotable = attribute cannot be applied to an expression
229
230 passes_deprecated = attribute is ignored here
231
232 passes_macro_use = `#[{$name}]` only has an effect on `extern crate` and modules
233
234 passes_macro_export = `#[macro_export]` only has an effect on macro definitions
235
236 passes_plugin_registrar = `#[plugin_registrar]` only has an effect on functions
237
238 passes_unused_empty_lints_note = attribute `{$name}` with an empty list has no effect
239
240 passes_unused_no_lints_note = attribute `{$name}` without any lints has no effect
241
242 passes_unused_default_method_body_const_note =
243     `default_method_body_is_const` has been replaced with `#[const_trait]` on traits
244
245 passes_unused = unused attribute
246     .suggestion = remove this attribute
247
248 passes_non_exported_macro_invalid_attrs = attribute should be applied to function or closure
249     .label = not a function or closure
250
251 passes_unused_duplicate = unused attribute
252     .suggestion = remove this attribute
253     .note = attribute also specified here
254     .warn = {-passes_previously_accepted}
255
256 passes_unused_multiple = multiple `{$name}` attributes
257     .suggestion = remove this attribute
258     .note = attribute also specified here
259
260 passes_rustc_lint_opt_ty = `#[rustc_lint_opt_ty]` should be applied to a struct
261     .label = not a struct
262
263 passes_rustc_lint_opt_deny_field_access = `#[rustc_lint_opt_deny_field_access]` should be applied to a field
264     .label = not a field
265
266 passes_link_ordinal = attribute should be applied to a foreign function or static
267     .label = not a foreign function or static
268
269 passes_collapse_debuginfo = `collapse_debuginfo` attribute should be applied to macro definitions
270     .label = not a macro definition
271
272 passes_deprecated_annotation_has_no_effect = this `#[deprecated]` annotation has no effect
273     .suggestion = remove the unnecessary deprecation attribute