@@ -13,26 +13,6 @@ passes_abi_ne =
13
13
passes_abi_of =
14
14
fn_abi_of({ $fn_name } ) = { $fn_abi }
15
15
16
- passes_align_attr_application =
17
- `#[rustc_align(...)]` should be applied to a function item
18
- .label = not a function item
19
-
20
- passes_align_on_fields =
21
- attribute should be applied to a function or method
22
- .warn = { -passes_previously_accepted }
23
-
24
- passes_align_should_be_repr_align =
25
- `#[rustc_align(...)]` is not supported on { $item } items
26
- .suggestion = use `#[repr(align(...))]` instead
27
-
28
- passes_allow_incoherent_impl =
29
- `rustc_allow_incoherent_impl` attribute should be applied to impl items
30
- .label = the only currently supported targets are inherent methods
31
-
32
- passes_allow_internal_unstable =
33
- attribute should be applied to a macro
34
- .label = not a macro
35
-
36
16
passes_attr_application_enum =
37
17
attribute should be applied to an enum
38
18
.label = not an enum
@@ -78,18 +58,10 @@ passes_change_fields_to_be_of_unit_type =
78
58
*[ other ] fields
79
59
}
80
60
81
- passes_cold =
82
- { passes_should_be_applied_to_fn }
83
- .warn = { -passes_previously_accepted }
84
- .label = { passes_should_be_applied_to_fn .label }
85
-
86
61
passes_collapse_debuginfo =
87
62
`collapse_debuginfo` attribute should be applied to macro definitions
88
63
.label = not a macro definition
89
64
90
- passes_confusables = attribute should be applied to an inherent method
91
- .label = not an inherent method
92
-
93
65
passes_const_continue_attr =
94
66
`#[const_continue]` should be applied to a break expression
95
67
.label = not a break expression
@@ -98,16 +70,6 @@ passes_const_stable_not_stable =
98
70
attribute `#[rustc_const_stable]` can only be applied to functions that are declared `#[stable]`
99
71
.label = attribute specified here
100
72
101
- passes_coroutine_on_non_closure =
102
- attribute should be applied to closures
103
- .label = not a closure
104
-
105
- passes_coverage_attribute_not_allowed =
106
- coverage attribute not allowed here
107
- .not_fn_impl_mod = not a function, impl block, or module
108
- .no_body = function has no body
109
- .help = coverage attribute can be applied to a function (with body), impl block, or module
110
-
111
73
passes_dead_codes =
112
74
{ $multiple ->
113
75
*[ true ] multiple { $descr } s are
@@ -129,9 +91,6 @@ passes_debug_visualizer_placement =
129
91
passes_debug_visualizer_unreadable =
130
92
couldn't read { $file } : { $error }
131
93
132
- passes_deprecated =
133
- attribute is ignored here
134
-
135
94
passes_deprecated_annotation_has_no_effect =
136
95
this `#[deprecated]` annotation has no effect
137
96
.suggestion = remove the unnecessary deprecation attribute
@@ -304,10 +263,6 @@ passes_duplicate_lang_item_crate_depends =
304
263
passes_enum_variant_same_name =
305
264
it is impossible to refer to the { $dead_descr } `{ $dead_name } ` because it is shadowed by this enum variant with the same name
306
265
307
- passes_export_name =
308
- attribute should be applied to a free function, impl method or static
309
- .label = not a free function, impl method or static
310
-
311
266
passes_extern_main =
312
267
the `main` function cannot be declared in an `extern` block
313
268
@@ -317,21 +272,10 @@ passes_feature_previously_declared =
317
272
passes_feature_stable_twice =
318
273
feature `{ $feature } ` is declared stable since { $since } , but was previously declared stable since { $prev_since }
319
274
320
- passes_ffi_const_invalid_target =
321
- `#[ffi_const]` may only be used on foreign functions
322
-
323
- passes_ffi_pure_invalid_target =
324
- `#[ffi_pure]` may only be used on foreign functions
325
-
326
275
passes_has_incoherent_inherent_impl =
327
276
`rustc_has_incoherent_inherent_impls` attribute should be applied to types or traits
328
277
.label = only adts, extern types and traits are supported
329
278
330
- passes_ignored_attr =
331
- `#[{ $sym } ]` is ignored on struct fields and match arms
332
- .warn = { -passes_previously_accepted }
333
- .note = { -passes_see_issue (issue : " 80564 " )}
334
-
335
279
passes_ignored_attr_with_macro =
336
280
`#[{ $sym } ]` is ignored on struct fields, match arms and macro defs
337
281
.warn = { -passes_previously_accepted }
@@ -358,7 +302,7 @@ passes_incorrect_do_not_recommend_location =
358
302
`#[diagnostic::do_not_recommend]` can only be placed on trait implementations
359
303
360
304
passes_incorrect_target =
361
- `{ $name } ` lang item must be applied to a { $kind } with { $at_least ->
305
+ `{ $name } ` lang item must be applied to { $kind } with { $at_least ->
362
306
[ true ] at least { $num }
363
307
*[ false ] { $num }
364
308
} generic { $num ->
@@ -373,22 +317,10 @@ passes_incorrect_target =
373
317
passes_ineffective_unstable_impl = an `#[unstable]` annotation here has no effect
374
318
.note = see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information
375
319
376
- passes_inline_ignored_constants =
377
- `#[inline]` is ignored on constants
378
- .warn = { -passes_previously_accepted }
379
- .note = { -passes_see_issue (issue : " 65833 " )}
380
-
381
320
passes_inline_ignored_for_exported =
382
321
`#[inline]` is ignored on externally exported functions
383
322
.help = externally exported functions are functions with `#[no_mangle]`, `#[export_name]`, or `#[linkage]`
384
323
385
- passes_inline_ignored_function_prototype =
386
- `#[inline]` is ignored on function prototypes
387
-
388
- passes_inline_not_fn_or_closure =
389
- attribute should be applied to function or closure
390
- .label = not a function or closure
391
-
392
324
passes_inner_crate_level_attr =
393
325
crate-level attribute should be in the root module
394
326
@@ -438,21 +370,6 @@ passes_link =
438
370
.warn = { -passes_previously_accepted }
439
371
.label = not an `extern` block
440
372
441
- passes_link_name =
442
- attribute should be applied to a foreign function or static
443
- .warn = { -passes_previously_accepted }
444
- .label = not a foreign function or static
445
- .help = try `#[link(name = "{ $value } ")]` instead
446
-
447
- passes_link_ordinal =
448
- attribute should be applied to a foreign function or static
449
- .label = not a foreign function or static
450
-
451
- passes_link_section =
452
- attribute should be applied to a function or static
453
- .warn = { -passes_previously_accepted }
454
- .label = not a function or static
455
-
456
373
passes_linkage =
457
374
attribute should be applied to a function or static
458
375
.label = not a function definition or static
@@ -468,9 +385,6 @@ passes_macro_export_on_decl_macro =
468
385
`#[macro_export]` has no effect on declarative macro definitions
469
386
.note = declarative macros follow the same exporting rules as regular items
470
387
471
- passes_macro_use =
472
- `#[{ $name } ]` only has an effect on `extern crate` and modules
473
-
474
388
passes_may_dangle =
475
389
`#[may_dangle]` must be applied to a lifetime or type generic parameter in `Drop` impl
476
390
@@ -509,7 +423,7 @@ passes_must_not_suspend =
509
423
.label = is not a struct, enum, union, or trait
510
424
511
425
passes_must_use_no_effect =
512
- `#[must_use]` has no effect when applied to { $article } { $ target}
426
+ `#[must_use]` has no effect when applied to { $target }
513
427
514
428
passes_no_link =
515
429
attribute should be applied to an `extern crate` item
@@ -529,18 +443,6 @@ passes_no_main_function =
529
443
.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/
530
444
.non_function_main = non-function item at `crate::main` is found
531
445
532
- passes_no_mangle =
533
- attribute should be applied to a free function, impl method or static
534
- .warn = { -passes_previously_accepted }
535
- .label = not a free function, impl method or static
536
-
537
- passes_no_mangle_foreign =
538
- `#[no_mangle]` has no effect on a foreign { $foreign_item_kind }
539
- .warn = { -passes_previously_accepted }
540
- .label = foreign { $foreign_item_kind }
541
- .note = symbol names in extern blocks are not mangled
542
- .suggestion = remove this attribute
543
-
544
446
passes_no_sanitize =
545
447
`#[no_sanitize({ $attr_str } )]` should be applied to { $accepted_kind }
546
448
.label = not { $accepted_kind }
@@ -556,19 +458,6 @@ passes_non_exported_macro_invalid_attrs =
556
458
passes_object_lifetime_err =
557
459
{ $repr }
558
460
559
- passes_only_has_effect_on =
560
- `#[{ $attr_name } ]` only has an effect on { $target_name ->
561
- [ function ] functions
562
- [ module ] modules
563
- [ trait_implementation_block ] trait implementation blocks
564
- [ inherent_implementation_block ] inherent implementation blocks
565
- *[ unspecified ] (unspecified--this is a compiler bug)
566
- }
567
-
568
- passes_optimize_invalid_target =
569
- attribute applied to an invalid target
570
- .label = invalid target
571
-
572
461
passes_outer_crate_level_attr =
573
462
crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
574
463
@@ -584,10 +473,6 @@ passes_parent_info =
584
473
*[ other ] { $descr } s
585
474
} in this { $parent_descr }
586
475
587
- passes_pass_by_value =
588
- `pass_by_value` attribute should be applied to a struct, enum or type alias
589
- .label = is not a struct, enum or type alias
590
-
591
476
passes_proc_macro_bad_sig = { $kind } has incorrect signature
592
477
593
478
passes_remove_fields =
@@ -604,7 +489,7 @@ passes_repr_align_greater_than_target_max =
604
489
.note = `isize::MAX` is { $size } for the current target
605
490
606
491
passes_repr_align_should_be_align =
607
- `#[repr(align(...))]` is not supported on { $item } items
492
+ `#[repr(align(...))]` is not supported on { $item }
608
493
.help = use `#[rustc_align(...)]` instead
609
494
610
495
passes_repr_conflicting =
@@ -619,18 +504,10 @@ passes_rustc_const_stable_indirect_pairing =
619
504
passes_rustc_dirty_clean =
620
505
attribute requires -Z query-dep-graph to be enabled
621
506
622
- passes_rustc_force_inline =
623
- attribute should be applied to a function
624
- .label = not a function definition
625
-
626
507
passes_rustc_force_inline_coro =
627
508
attribute cannot be applied to a `async`, `gen` or `async gen` function
628
509
.label = `async`, `gen` or `async gen` function
629
510
630
- passes_rustc_layout_scalar_valid_range_not_struct =
631
- attribute should be applied to a struct
632
- .label = not a struct
633
-
634
511
passes_rustc_legacy_const_generics_index =
635
512
#[rustc_legacy_const_generics] must have one index for each generic parameter
636
513
.label = generic parameters
@@ -664,14 +541,6 @@ passes_rustc_pub_transparent =
664
541
attribute should be applied to `#[repr(transparent)]` types
665
542
.label = not a `#[repr(transparent)]` type
666
543
667
- passes_rustc_std_internal_symbol =
668
- attribute should be applied to functions or statics
669
- .label = not a function or static
670
-
671
- passes_rustc_unstable_feature_bound =
672
- attribute should be applied to `impl` or free function outside of any `impl` or trait
673
- .label = not an `impl` or free function
674
-
675
544
passes_should_be_applied_to_fn =
676
545
attribute should be applied to a function definition
677
546
.label = { $on_crate ->
@@ -683,24 +552,12 @@ passes_should_be_applied_to_static =
683
552
attribute should be applied to a static
684
553
.label = not a static
685
554
686
- passes_should_be_applied_to_struct_enum =
687
- attribute should be applied to a struct or enum
688
- .label = not a struct or enum
689
-
690
555
passes_should_be_applied_to_trait =
691
556
attribute should be applied to a trait
692
557
.label = not a trait
693
558
694
- passes_stability_promotable =
695
- attribute cannot be applied to an expression
696
-
697
559
passes_string_interpolation_only_works = string interpolation only works in `format!` invocations
698
560
699
- passes_target_feature_on_statement =
700
- { passes_should_be_applied_to_fn }
701
- .warn = { -passes_previously_accepted }
702
- .label = { passes_should_be_applied_to_fn .label }
703
-
704
561
passes_trait_impl_const_stability_mismatch = const stability on the impl does not match the const stability on the trait
705
562
passes_trait_impl_const_stability_mismatch_impl_stable = this impl is (implicitly) stable...
706
563
passes_trait_impl_const_stability_mismatch_impl_unstable = this impl is unstable...
@@ -825,11 +682,6 @@ passes_unused_variable_try_prefix = unused variable: `{$name}`
825
682
.label = unused variable
826
683
.suggestion = if this is intentional, prefix it with an underscore
827
684
828
-
829
- passes_used_static =
830
- attribute must be applied to a `static` variable
831
- .label = but this is a { $target }
832
-
833
685
passes_useless_assignment =
834
686
useless assignment of { $is_field_assign ->
835
687
[ true ] field
0 commit comments