fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
29.2 KiB803 linesraw
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
7passes_abi_invalid_attribute =
8    `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
9passes_abi_ne =
10    ABIs are not compatible
11    left ABI = {$left}
12    right ABI = {$right}
13passes_abi_of =
14    fn_abi_of({$fn_name}) = {$fn_abi}
15
16passes_allow_incoherent_impl =
17    `rustc_allow_incoherent_impl` attribute should be applied to impl items.
18    .label = the only currently supported targets are inherent methods
19
20passes_allow_internal_unstable =
21    attribute should be applied to a macro
22    .label = not a macro
23
24passes_attr_application_enum =
25    attribute should be applied to an enum
26    .label = not an enum
27
28passes_attr_application_struct =
29    attribute should be applied to a struct
30    .label = not a struct
31
32passes_attr_application_struct_enum_function_method_union =
33    attribute should be applied to a struct, enum, function, associated function, or union
34    .label = not a struct, enum, function, associated function, or union
35
36passes_attr_application_struct_enum_union =
37    attribute should be applied to a struct, enum, or union
38    .label = not a struct, enum, or union
39
40passes_attr_application_struct_union =
41    attribute should be applied to a struct or union
42    .label = not a struct or union
43
44passes_attr_crate_level =
45    this attribute can only be applied at the crate level
46    .suggestion = to apply to the crate, use an inner attribute
47    .note = read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
48
49passes_attr_only_in_functions =
50    `{$attr}` attribute can only be used on functions
51
52passes_attr_only_on_main =
53    `{$attr}` attribute can only be used on `fn main()`
54
55passes_attr_only_on_root_main =
56    `{$attr}` attribute can only be used on root `fn main()`
57
58passes_both_ffi_const_and_pure =
59    `#[ffi_const]` function cannot be `#[ffi_pure]`
60
61passes_break_inside_async_block =
62    `{$name}` inside of an `async` block
63    .label = cannot `{$name}` inside of an `async` block
64    .async_block_label = enclosing `async` block
65
66passes_break_inside_closure =
67    `{$name}` inside of a closure
68    .label = cannot `{$name}` inside of a closure
69    .closure_label = enclosing closure
70
71passes_break_non_loop =
72    `break` with value from a `{$kind}` loop
73    .label = can only break with a value inside `loop` or breakable block
74    .label2 = you can't `break` with a value in a `{$kind}` loop
75    .suggestion = use `break` on its own without a value inside this `{$kind}` loop
76    .break_expr_suggestion = alternatively, you might have meant to use the available loop label
77
78passes_cannot_inline_naked_function =
79    naked functions cannot be inlined
80
81passes_cannot_stabilize_deprecated =
82    an API can't be stabilized after it is deprecated
83    .label = invalid version
84    .item = the stability attribute annotates this item
85
86passes_change_fields_to_be_of_unit_type =
87    consider changing the { $num ->
88      [one] field
89     *[other] fields
90    } to be of unit type to suppress this warning while preserving the field numbering, or remove the { $num ->
91      [one] field
92     *[other] fields
93    }
94
95passes_cold =
96    {passes_should_be_applied_to_fn}
97    .warn = {-passes_previously_accepted}
98    .label = {passes_should_be_applied_to_fn.label}
99
100passes_collapse_debuginfo =
101    `collapse_debuginfo` attribute should be applied to macro definitions
102    .label = not a macro definition
103
104passes_confusables = attribute should be applied to an inherent method
105    .label = not an inherent method
106
107passes_continue_labeled_block =
108    `continue` pointing to a labeled block
109    .label = labeled blocks cannot be `continue`'d
110    .block_label = labeled block the `continue` points to
111
112passes_coverage_fn_defn =
113    `#[coverage]` may only be applied to function definitions
114
115passes_coverage_ignored_function_prototype =
116    `#[coverage]` is ignored on function prototypes
117
118passes_coverage_not_coverable =
119    `#[coverage]` must be applied to coverable code
120    .label = not coverable code
121
122passes_coverage_propagate =
123    `#[coverage]` does not propagate into items and must be applied to the contained functions directly
124
125passes_dead_codes =
126    { $multiple ->
127      *[true] multiple {$descr}s are
128       [false] { $num ->
129         [one] {$descr} {$name_list} is
130        *[other] {$descr}s {$name_list} are
131       }
132    } never {$participle}
133
134passes_debug_visualizer_invalid =
135    invalid argument
136    .note_1 = expected: `natvis_file = "..."`
137    .note_2 = OR
138    .note_3 = expected: `gdb_script_file = "..."`
139
140passes_debug_visualizer_placement =
141    attribute should be applied to a module
142
143passes_debug_visualizer_unreadable =
144    couldn't read {$file}: {$error}
145
146passes_deprecated =
147    attribute is ignored here
148
149passes_deprecated_annotation_has_no_effect =
150    this `#[deprecated]` annotation has no effect
151    .suggestion = remove the unnecessary deprecation attribute
152
153passes_deprecated_attribute =
154    deprecated attribute must be paired with either stable or unstable attribute
155
156passes_diagnostic_diagnostic_on_unimplemented_only_for_traits =
157    `#[diagnostic::on_unimplemented]` can only be applied to trait definitions
158
159passes_diagnostic_item_first_defined =
160    the diagnostic item is first defined here
161
162passes_doc_alias_bad_char =
163    {$char_} character isn't allowed in {$attr_str}
164
165passes_doc_alias_bad_location =
166    {$attr_str} isn't allowed on {$location}
167
168passes_doc_alias_duplicated = doc alias is duplicated
169    .label = first defined here
170
171passes_doc_alias_empty =
172    {$attr_str} attribute cannot have empty value
173
174passes_doc_alias_malformed =
175    doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`
176
177passes_doc_alias_not_an_alias =
178    {$attr_str} is the same as the item's name
179
180passes_doc_alias_not_string_literal =
181    `#[doc(alias("a"))]` expects string literals
182
183passes_doc_alias_start_end =
184    {$attr_str} cannot start or end with ' '
185
186passes_doc_attr_not_crate_level =
187    `#![doc({$attr_name} = "...")]` isn't allowed as a crate-level attribute
188
189passes_doc_cfg_hide_takes_list =
190    `#[doc(cfg_hide(...)]` takes a list of attributes
191
192passes_doc_expect_str =
193    doc {$attr_name} attribute expects a string: #[doc({$attr_name} = "a")]
194
195passes_doc_fake_variadic_not_valid =
196    `#[doc(fake_variadic)]` must be used on the first of a set of tuple or fn pointer trait impls with varying arity
197
198passes_doc_inline_conflict =
199    conflicting doc inlining attributes
200    .help = remove one of the conflicting attributes
201
202passes_doc_inline_conflict_first =
203    this attribute...
204
205passes_doc_inline_conflict_second =
206    {"."}..conflicts with this attribute
207
208passes_doc_inline_only_use =
209    this attribute can only be applied to a `use` item
210    .label = only applicable on `use` items
211    .not_a_use_item_label = not a `use` item
212    .note = read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
213
214passes_doc_invalid =
215    invalid `doc` attribute
216
217passes_doc_keyword_empty_mod =
218    `#[doc(keyword = "...")]` should be used on empty modules
219
220passes_doc_keyword_invalid_ident =
221    `{$doc_keyword}` is not a valid identifier
222
223passes_doc_keyword_not_mod =
224    `#[doc(keyword = "...")]` should be used on modules
225
226passes_doc_keyword_only_impl =
227    `#[doc(keyword = "...")]` should be used on impl blocks
228
229passes_doc_masked_not_extern_crate_self =
230    this attribute cannot be applied to an `extern crate self` item
231    .label = not applicable on `extern crate self` items
232    .extern_crate_self_label = `extern crate self` defined here
233
234passes_doc_masked_only_extern_crate =
235    this attribute can only be applied to an `extern crate` item
236    .label = only applicable on `extern crate` items
237    .not_an_extern_crate_label = not an `extern crate` item
238    .note = read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
239
240passes_doc_test_literal = `#![doc(test(...)]` does not take a literal
241
242passes_doc_test_takes_list =
243    `#[doc(test(...)]` takes a list of attributes
244
245passes_doc_test_unknown =
246    unknown `doc(test)` attribute `{$path}`
247
248passes_doc_test_unknown_any =
249    unknown `doc` attribute `{$path}`
250
251passes_doc_test_unknown_include =
252    unknown `doc` attribute `{$path}`
253    .suggestion = use `doc = include_str!` instead
254
255passes_doc_test_unknown_spotlight =
256    unknown `doc` attribute `{$path}`
257    .note = `doc(spotlight)` was renamed to `doc(notable_trait)`
258    .suggestion = use `notable_trait` instead
259    .no_op_note = `doc(spotlight)` is now a no-op
260
261passes_duplicate_diagnostic_item_in_crate =
262    duplicate diagnostic item in crate `{$crate_name}`: `{$name}`.
263    .note = the diagnostic item is first defined in crate `{$orig_crate_name}`.
264
265passes_duplicate_feature_err =
266    the feature `{$feature}` has already been declared
267
268passes_duplicate_lang_item =
269    found duplicate lang item `{$lang_item_name}`
270    .first_defined_span = the lang item is first defined here
271    .first_defined_crate_depends = the lang item is first defined in crate `{$orig_crate_name}` (which `{$orig_dependency_of}` depends on)
272    .first_defined_crate = the lang item is first defined in crate `{$orig_crate_name}`.
273    .first_definition_local = first definition in the local crate (`{$orig_crate_name}`)
274    .second_definition_local = second definition in the local crate (`{$crate_name}`)
275    .first_definition_path = first definition in `{$orig_crate_name}` loaded from {$orig_path}
276    .second_definition_path = second definition in `{$crate_name}` loaded from {$path}
277
278passes_duplicate_lang_item_crate =
279    duplicate lang item in crate `{$crate_name}`: `{$lang_item_name}`.
280    .first_defined_span = the lang item is first defined here
281    .first_defined_crate_depends = the lang item is first defined in crate `{$orig_crate_name}` (which `{$orig_dependency_of}` depends on)
282    .first_defined_crate = the lang item is first defined in crate `{$orig_crate_name}`.
283    .first_definition_local = first definition in the local crate (`{$orig_crate_name}`)
284    .second_definition_local = second definition in the local crate (`{$crate_name}`)
285    .first_definition_path = first definition in `{$orig_crate_name}` loaded from {$orig_path}
286    .second_definition_path = second definition in `{$crate_name}` loaded from {$path}
287
288passes_duplicate_lang_item_crate_depends =
289    duplicate lang item in crate `{$crate_name}` (which `{$dependency_of}` depends on): `{$lang_item_name}`.
290    .first_defined_span = the lang item is first defined here
291    .first_defined_crate_depends = the lang item is first defined in crate `{$orig_crate_name}` (which `{$orig_dependency_of}` depends on)
292    .first_defined_crate = the lang item is first defined in crate `{$orig_crate_name}`.
293    .first_definition_local = first definition in the local crate (`{$orig_crate_name}`)
294    .second_definition_local = second definition in the local crate (`{$crate_name}`)
295    .first_definition_path = first definition in `{$orig_crate_name}` loaded from {$orig_path}
296    .second_definition_path = second definition in `{$crate_name}` loaded from {$path}
297
298passes_empty_confusables =
299    expected at least one confusable name
300
301passes_export_name =
302    attribute should be applied to a free function, impl method or static
303    .label = not a free function, impl method or static
304
305passes_expr_not_allowed_in_context =
306    {$expr} is not allowed in a `{$context}`
307
308passes_extern_main =
309    the `main` function cannot be declared in an `extern` block
310
311passes_feature_only_on_nightly =
312    `#![feature]` may not be used on the {$release_channel} release channel
313
314passes_feature_previously_declared =
315    feature `{$feature}` is declared {$declared}, but was previously declared {$prev_declared}
316
317passes_feature_stable_twice =
318    feature `{$feature}` is declared stable since {$since}, but was previously declared stable since {$prev_since}
319
320passes_ffi_const_invalid_target =
321    `#[ffi_const]` may only be used on foreign functions
322
323passes_ffi_pure_invalid_target =
324    `#[ffi_pure]` may only be used on foreign functions
325
326passes_ffi_returns_twice_invalid_target =
327    `#[ffi_returns_twice]` may only be used on foreign functions
328
329passes_has_incoherent_inherent_impl =
330    `rustc_has_incoherent_inherent_impls` attribute should be applied to types or traits.
331    .label = only adts, extern types and traits are supported
332
333passes_ignored_attr =
334    `#[{$sym}]` is ignored on struct fields and match arms
335    .warn = {-passes_previously_accepted}
336    .note = {-passes_see_issue(issue: "80564")}
337
338passes_ignored_attr_with_macro =
339    `#[{$sym}]` is ignored on struct fields, match arms and macro defs
340    .warn = {-passes_previously_accepted}
341    .note = {-passes_see_issue(issue: "80564")}
342
343passes_ignored_derived_impls =
344    `{$name}` has {$trait_list_len ->
345      [one] a derived impl
346     *[other] derived impls
347    } for the {$trait_list_len ->
348      [one] trait {$trait_list}, but this is
349     *[other] traits {$trait_list}, but these are
350    } intentionally ignored during dead code analysis
351
352passes_implied_feature_not_exist =
353    feature `{$implied_by}` implying `{$feature}` does not exist
354
355passes_incorrect_do_not_recommend_location =
356    `#[do_not_recommend]` can only be placed on trait implementations
357
358passes_incorrect_meta_item = expected a quoted string literal
359passes_incorrect_meta_item_suggestion = consider surrounding this with quotes
360
361passes_incorrect_target =
362    `{$name}` language item must be applied to a {$kind} with {$at_least ->
363        [true] at least {$num}
364        *[false] {$num}
365    } generic {$num ->
366        [one] argument
367        *[other] arguments
368    }
369    .label = this {$kind} has {$actual_num} generic {$actual_num ->
370        [one] argument
371        *[other] arguments
372    }
373
374passes_ineffective_unstable_impl = an `#[unstable]` annotation here has no effect
375    .note = see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information
376
377passes_inline_ignored_constants =
378    `#[inline]` is ignored on constants
379    .warn = {-passes_previously_accepted}
380    .note = {-passes_see_issue(issue: "65833")}
381
382passes_inline_ignored_function_prototype =
383    `#[inline]` is ignored on function prototypes
384
385passes_inline_not_fn_or_closure =
386    attribute should be applied to function or closure
387    .label = not a function or closure
388
389passes_inner_crate_level_attr =
390    crate-level attribute should be in the root module
391
392passes_invalid_attr_at_crate_level =
393    `{$name}` attribute cannot be used at crate level
394    .suggestion = perhaps you meant to use an outer attribute
395
396passes_invalid_deprecation_version =
397    invalid deprecation version found
398    .label = invalid deprecation version
399    .item = the stability attribute annotates this item
400
401passes_invalid_macro_export_arguments = `{$name}` isn't a valid `#[macro_export]` argument
402
403passes_invalid_macro_export_arguments_too_many_items = `#[macro_export]` can only take 1 or 0 arguments
404
405passes_invalid_stability =
406    invalid stability version found
407    .label = invalid stability version
408    .item = the stability attribute annotates this item
409
410passes_lang_item_fn_with_target_feature =
411    `{$name}` language item function is not allowed to have `#[target_feature]`
412    .label = `{$name}` language item function is not allowed to have `#[target_feature]`
413
414passes_lang_item_on_incorrect_target =
415    `{$name}` language item must be applied to a {$expected_target}
416    .label = attribute should be applied to a {$expected_target}, not a {$actual_target}
417
418passes_layout =
419    layout error: {$layout_error}
420passes_layout_abi =
421    abi: {$abi}
422passes_layout_align =
423    align: {$align}
424passes_layout_homogeneous_aggregate =
425    homogeneous_aggregate: {$homogeneous_aggregate}
426passes_layout_invalid_attribute =
427    `#[rustc_layout]` can only be applied to `struct`/`enum`/`union` declarations and type aliases
428passes_layout_of =
429    layout_of({$normalized_ty}) = {$ty_layout}
430passes_layout_size =
431    size: {$size}
432
433passes_link =
434    attribute should be applied to an `extern` block with non-Rust ABI
435    .warn = {-passes_previously_accepted}
436    .label = not an `extern` block
437
438passes_link_name =
439    attribute should be applied to a foreign function or static
440    .warn = {-passes_previously_accepted}
441    .label = not a foreign function or static
442    .help = try `#[link(name = "{$value}")]` instead
443
444passes_link_ordinal =
445    attribute should be applied to a foreign function or static
446    .label = not a foreign function or static
447
448passes_link_section =
449    attribute should be applied to a function or static
450    .warn = {-passes_previously_accepted}
451    .label = not a function or static
452
453passes_macro_export =
454    `#[macro_export]` only has an effect on macro definitions
455
456passes_macro_export_on_decl_macro =
457    `#[macro_export]` has no effect on declarative macro definitions
458    .note = declarative macros follow the same exporting rules as regular items
459
460passes_macro_use =
461    `#[{$name}]` only has an effect on `extern crate` and modules
462
463passes_maybe_string_interpolation = you might have meant to use string interpolation in this string literal
464passes_missing_const_err =
465    attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
466    .help = make the function or method const
467    .label = attribute specified here
468
469passes_missing_const_stab_attr =
470    {$descr} has missing const stability attribute
471
472passes_missing_lang_item =
473    language item required, but not found: `{$name}`
474    .note = this can occur when a binary crate with `#![no_std]` is compiled for a target where `{$name}` is defined in the standard library
475    .help = you may be able to compile for a target that doesn't need `{$name}`, specify a target with `--target` or in `.cargo/config`
476
477passes_missing_panic_handler =
478    `#[panic_handler]` function required, but not found
479
480passes_missing_stability_attr =
481    {$descr} has missing stability attribute
482
483passes_multiple_rustc_main =
484    multiple functions with a `#[rustc_main]` attribute
485    .first = first `#[rustc_main]` function
486    .additional = additional `#[rustc_main]` function
487
488passes_multiple_start_functions =
489    multiple `start` functions
490    .label = multiple `start` functions
491    .previous = previous `#[start]` function here
492
493passes_must_not_suspend =
494    `must_not_suspend` attribute should be applied to a struct, enum, or trait
495    .label = is not a struct, enum, or trait
496
497passes_must_use_async =
498    `must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
499    .label = this attribute does nothing, the `Future`s returned by async functions are already `must_use`
500
501passes_must_use_no_effect =
502    `#[must_use]` has no effect when applied to {$article} {$target}
503
504passes_naked_functions_asm_block =
505    naked functions must contain a single asm block
506    .label_multiple_asm = multiple asm blocks are unsupported in naked functions
507    .label_non_asm = non-asm is unsupported in naked functions
508
509passes_naked_functions_asm_options =
510    asm options unsupported in naked functions: {$unsupported_options}
511
512passes_naked_functions_must_use_noreturn =
513    asm in naked functions must use `noreturn` option
514    .suggestion = consider specifying that the asm block is responsible for returning from the function
515
516passes_naked_functions_operands =
517    only `const` and `sym` operands are supported in naked functions
518
519passes_naked_tracked_caller =
520    cannot use `#[track_caller]` with `#[naked]`
521
522passes_no_link =
523    attribute should be applied to an `extern crate` item
524    .label = not an `extern crate` item
525
526passes_no_main_function =
527    `main` function not found in crate `{$crate_name}`
528    .here_is_main = here is a function named `main`
529    .one_or_more_possible_main = you have one or more functions named `main` not defined at the crate level
530    .consider_moving_main = consider moving the `main` function definitions
531    .main_must_be_defined_at_crate = the main function must be defined at the crate level{$has_filename ->
532        [true] {" "}(in `{$filename}`)
533        *[false] {""}
534    }
535    .consider_adding_main_to_file = consider adding a `main` function to `{$filename}`
536    .consider_adding_main_at_crate = consider adding a `main` function at the crate level
537    .teach_note = If you don't know the basics of Rust, you can go look to the Rust Book to get started: https://doc.rust-lang.org/book/
538    .non_function_main = non-function item at `crate::main` is found
539
540passes_no_mangle =
541    attribute should be applied to a free function, impl method or static
542    .warn = {-passes_previously_accepted}
543    .label = not a free function, impl method or static
544
545passes_no_mangle_foreign =
546    `#[no_mangle]` has no effect on a foreign {$foreign_item_kind}
547    .warn = {-passes_previously_accepted}
548    .label = foreign {$foreign_item_kind}
549    .note = symbol names in extern blocks are not mangled
550    .suggestion = remove this attribute
551
552passes_no_patterns =
553    patterns not allowed in naked function parameters
554
555passes_non_exported_macro_invalid_attrs =
556    attribute should be applied to function or closure
557    .label = not a function or closure
558
559passes_object_lifetime_err =
560    {$repr}
561
562passes_only_has_effect_on =
563    `#[{$attr_name}]` only has an effect on {$target_name ->
564        [function] functions
565        [module] modules
566        [implementation_block] implementation blocks
567        *[unspecified] (unspecified--this is a compiler bug)
568    }
569
570passes_outer_crate_level_attr =
571    crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
572
573passes_outside_loop =
574    `{$name}` outside of a loop{$is_break ->
575        [true] {" or labeled block"}
576        *[false] {""}
577    }
578    .label = cannot `{$name}` outside of a loop{$is_break ->
579        [true] {" or labeled block"}
580        *[false] {""}
581    }
582
583passes_params_not_allowed =
584    referencing function parameters is not allowed in naked functions
585    .help = follow the calling convention in asm block to use parameters
586
587passes_parent_info =
588    {$num ->
589      [one] {$descr}
590     *[other] {$descr}s
591    } in this {$parent_descr}
592
593passes_pass_by_value =
594    `pass_by_value` attribute should be applied to a struct, enum or type alias
595    .label = is not a struct, enum or type alias
596
597passes_plugin_registrar =
598    `#[plugin_registrar]` only has an effect on functions
599
600passes_proc_macro_bad_sig = {$kind} has incorrect signature
601
602passes_repr_conflicting =
603    conflicting representation hints
604
605passes_repr_ident =
606    meta item in `repr` must be an identifier
607
608passes_rustc_allow_const_fn_unstable =
609    attribute should be applied to `const fn`
610    .label = not a `const fn`
611
612passes_rustc_dirty_clean =
613    attribute requires -Z query-dep-graph to be enabled
614
615passes_rustc_layout_scalar_valid_range_arg =
616    expected exactly one integer literal argument
617
618passes_rustc_layout_scalar_valid_range_not_struct =
619    attribute should be applied to a struct
620    .label = not a struct
621
622passes_rustc_legacy_const_generics_index =
623    #[rustc_legacy_const_generics] must have one index for each generic parameter
624    .label = generic parameters
625
626passes_rustc_legacy_const_generics_index_exceed =
627    index exceeds number of arguments
628    .label = there {$arg_count ->
629        [one] is
630        *[other] are
631    } only {$arg_count} {$arg_count ->
632        [one] argument
633        *[other] arguments
634    }
635
636passes_rustc_legacy_const_generics_index_negative =
637    arguments should be non-negative integers
638
639passes_rustc_legacy_const_generics_only =
640    #[rustc_legacy_const_generics] functions must only have const generics
641    .label = non-const generic parameter
642
643passes_rustc_lint_opt_deny_field_access =
644    `#[rustc_lint_opt_deny_field_access]` should be applied to a field
645    .label = not a field
646
647passes_rustc_lint_opt_ty =
648    `#[rustc_lint_opt_ty]` should be applied to a struct
649    .label = not a struct
650
651passes_rustc_safe_intrinsic =
652    attribute should be applied to intrinsic functions
653    .label = not an intrinsic function
654
655passes_rustc_std_internal_symbol =
656    attribute should be applied to functions or statics
657    .label = not a function or static
658
659passes_should_be_applied_to_fn =
660    attribute should be applied to a function definition
661    .label = {$on_crate ->
662        [true] cannot be applied to crates
663        *[false] not a function definition
664    }
665
666passes_should_be_applied_to_static =
667    attribute should be applied to a static
668    .label = not a static
669
670passes_should_be_applied_to_struct_enum =
671    attribute should be applied to a struct or enum
672    .label = not a struct or enum
673
674passes_should_be_applied_to_trait =
675    attribute should be applied to a trait
676    .label = not a trait
677
678passes_skipping_const_checks = skipping const checks
679
680passes_stability_promotable =
681    attribute cannot be applied to an expression
682
683passes_string_interpolation_only_works = string interpolation only works in `format!` invocations
684
685passes_target_feature_on_statement =
686    {passes_should_be_applied_to_fn}
687    .warn = {-passes_previously_accepted}
688    .label = {passes_should_be_applied_to_fn.label}
689
690passes_trait_impl_const_stable =
691    trait implementations cannot be const stable yet
692    .note = see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
693
694passes_transparent_incompatible =
695    transparent {$target} cannot have other repr hints
696
697passes_undefined_naked_function_abi =
698    Rust ABI is unsupported in naked functions
699
700passes_unix_sigpipe_values =
701    valid values for `#[unix_sigpipe = "..."]` are `inherit`, `sig_ign`, or `sig_dfl`
702
703passes_unknown_external_lang_item =
704    unknown external lang item: `{$lang_item}`
705
706passes_unknown_feature =
707    unknown feature `{$feature}`
708
709passes_unknown_lang_item =
710    definition of an unknown language item: `{$name}`
711    .label = definition of unknown language item `{$name}`
712
713passes_unlabeled_cf_in_while_condition =
714    `break` or `continue` with no label in the condition of a `while` loop
715    .label = unlabeled `{$cf_type}` in the condition of a `while` loop
716
717passes_unlabeled_in_labeled_block =
718    unlabeled `{$cf_type}` inside of a labeled block
719    .label = `{$cf_type}` statements that would diverge to or through a labeled block need to bear a label
720
721passes_unnecessary_partial_stable_feature = the feature `{$feature}` has been partially stabilized since {$since} and is succeeded by the feature `{$implies}`
722    .suggestion = if you are using features which are still unstable, change to using `{$implies}`
723    .suggestion_remove = if you are using features which are now stable, remove this line
724
725passes_unnecessary_stable_feature = the feature `{$feature}` has been stable since {$since} and no longer requires an attribute to enable
726
727passes_unreachable_due_to_uninhabited = unreachable {$descr}
728    .label = unreachable {$descr}
729    .label_orig = any code following this expression is unreachable
730    .note = this expression has type `{$ty}`, which is uninhabited
731
732passes_unrecognized_field =
733    unrecognized field name `{$name}`
734
735passes_unrecognized_repr_hint =
736    unrecognized representation hint
737    .help = valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
738
739passes_unused =
740    unused attribute
741    .suggestion = remove this attribute
742
743passes_unused_assign = value assigned to `{$name}` is never read
744    .help = maybe it is overwritten before being read?
745
746passes_unused_assign_passed = value passed to `{$name}` is never read
747    .help = maybe it is overwritten before being read?
748
749passes_unused_capture_maybe_capture_ref = value captured by `{$name}` is never read
750    .help = did you mean to capture by reference instead?
751
752passes_unused_default_method_body_const_note =
753    `default_method_body_is_const` has been replaced with `#[const_trait]` on traits
754
755passes_unused_duplicate =
756    unused attribute
757    .suggestion = remove this attribute
758    .note = attribute also specified here
759    .warn = {-passes_previously_accepted}
760
761passes_unused_empty_lints_note =
762    attribute `{$name}` with an empty list has no effect
763
764passes_unused_multiple =
765    multiple `{$name}` attributes
766    .suggestion = remove this attribute
767    .note = attribute also specified here
768
769passes_unused_no_lints_note =
770    attribute `{$name}` without any lints has no effect
771
772passes_unused_var_assigned_only = variable `{$name}` is assigned to, but never used
773    .note = consider using `_{$name}` instead
774
775passes_unused_var_maybe_capture_ref = unused variable: `{$name}`
776    .help = did you mean to capture by reference instead?
777
778passes_unused_var_remove_field = unused variable: `{$name}`
779passes_unused_var_remove_field_suggestion = try removing the field
780
781passes_unused_variable_try_ignore = unused variable: `{$name}`
782    .suggestion = try ignoring the field
783
784passes_unused_variable_try_prefix = unused variable: `{$name}`
785    .label = unused variable
786    .suggestion = if this is intentional, prefix it with an underscore
787
788passes_used_compiler_linker =
789    `used(compiler)` and `used(linker)` can't be used together
790
791passes_used_static =
792    attribute must be applied to a `static` variable
793
794passes_useless_assignment =
795    useless assignment of {$is_field_assign ->
796        [true] field
797        *[false] variable
798    } of type `{$ty}` to itself
799
800passes_useless_stability =
801    this stability annotation is useless
802    .label = useless stability annotation
803    .item = the stability attribute annotates this item