@@ -74,12 +74,6 @@ passes_coroutine_on_non_closure =
7474 attribute should be applied to closures
7575 .label = not a closure
7676
77- passes_coverage_attribute_not_allowed =
78- coverage attribute not allowed here
79- .not_fn_impl_mod = not a function, impl block, or module
80- .no_body = function has no body
81- .help = coverage attribute can be applied to a function (with body), impl block, or module
82-
8377passes_dead_codes =
8478 { $multiple ->
8579 *[ true ] multiple { $descr } s are
@@ -282,12 +276,6 @@ passes_feature_previously_declared =
282276passes_feature_stable_twice =
283277 feature `{ $feature } ` is declared stable since { $since } , but was previously declared stable since { $prev_since }
284278
285- passes_ffi_const_invalid_target =
286- `#[ffi_const]` may only be used on foreign functions
287-
288- passes_ffi_pure_invalid_target =
289- `#[ffi_pure]` may only be used on foreign functions
290-
291279passes_has_incoherent_inherent_impl =
292280 `rustc_has_incoherent_inherent_impls` attribute should be applied to types or traits
293281 .label = only adts, extern types and traits are supported
@@ -386,21 +374,6 @@ passes_link =
386374 .warn = { -passes_previously_accepted }
387375 .label = not an `extern` block
388376
389- passes_link_name =
390- attribute should be applied to a foreign function or static
391- .warn = { -passes_previously_accepted }
392- .label = not a foreign function or static
393- .help = try `#[link(name = "{ $value } ")]` instead
394-
395- passes_link_ordinal =
396- attribute should be applied to a foreign function or static
397- .label = not a foreign function or static
398-
399- passes_link_section =
400- attribute should be applied to a function or static
401- .warn = { -passes_previously_accepted }
402- .label = not a function or static
403-
404377passes_linkage =
405378 attribute should be applied to a function or static
406379 .label = not a function definition or static
@@ -416,9 +389,6 @@ passes_macro_export_on_decl_macro =
416389 `#[macro_export]` has no effect on declarative macro definitions
417390 .note = declarative macros follow the same exporting rules as regular items
418391
419- passes_macro_use =
420- `#[{ $name } ]` only has an effect on `extern crate` and modules
421-
422392passes_may_dangle =
423393 `#[may_dangle]` must be applied to a lifetime or type generic parameter in `Drop` impl
424394
@@ -477,18 +447,6 @@ passes_no_main_function =
477447 .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/
478448 .non_function_main = non-function item at `crate::main` is found
479449
480- passes_no_mangle =
481- attribute should be applied to a free function, impl method or static
482- .warn = { -passes_previously_accepted }
483- .label = not a free function, impl method or static
484-
485- passes_no_mangle_foreign =
486- `#[no_mangle]` has no effect on a foreign { $foreign_item_kind }
487- .warn = { -passes_previously_accepted }
488- .label = foreign { $foreign_item_kind }
489- .note = symbol names in extern blocks are not mangled
490- .suggestion = remove this attribute
491-
492450passes_no_sanitize =
493451 `#[no_sanitize({ $attr_str } )]` should be applied to { $accepted_kind }
494452 .label = not { $accepted_kind }
@@ -528,10 +486,6 @@ passes_parent_info =
528486 *[ other ] { $descr } s
529487 } in this { $parent_descr }
530488
531- passes_pass_by_value =
532- `pass_by_value` attribute should be applied to a struct, enum or type alias
533- .label = is not a struct, enum or type alias
534-
535489passes_proc_macro_bad_sig = { $kind } has incorrect signature
536490
537491passes_remove_fields =
@@ -571,10 +525,6 @@ passes_rustc_force_inline_coro =
571525 attribute cannot be applied to a `async`, `gen` or `async gen` function
572526 .label = `async`, `gen` or `async gen` function
573527
574- passes_rustc_layout_scalar_valid_range_not_struct =
575- attribute should be applied to a struct
576- .label = not a struct
577-
578528passes_rustc_legacy_const_generics_index =
579529 #[rustc_legacy_const_generics] must have one index for each generic parameter
580530 .label = generic parameters
@@ -608,14 +558,6 @@ passes_rustc_pub_transparent =
608558 attribute should be applied to `#[repr(transparent)]` types
609559 .label = not a `#[repr(transparent)]` type
610560
611- passes_rustc_std_internal_symbol =
612- attribute should be applied to functions or statics
613- .label = not a function or static
614-
615- passes_rustc_unstable_feature_bound =
616- attribute should be applied to `impl` or free function outside of any `impl` or trait
617- .label = not an `impl` or free function
618-
619561passes_should_be_applied_to_fn =
620562 attribute should be applied to a function definition
621563 .label = { $on_crate ->
@@ -757,11 +699,6 @@ passes_unused_variable_try_prefix = unused variable: `{$name}`
757699 .label = unused variable
758700 .suggestion = if this is intentional, prefix it with an underscore
759701
760-
761- passes_used_static =
762- attribute must be applied to a `static` variable
763- .label = but this is a { $target }
764-
765702passes_useless_assignment =
766703 useless assignment of { $is_field_assign ->
767704 [ true ] field
0 commit comments