@@ -74,12 +74,6 @@ passes_coroutine_on_non_closure =
74
74
attribute should be applied to closures
75
75
.label = not a closure
76
76
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
-
83
77
passes_dead_codes =
84
78
{ $multiple ->
85
79
*[ true ] multiple { $descr } s are
@@ -282,12 +276,6 @@ passes_feature_previously_declared =
282
276
passes_feature_stable_twice =
283
277
feature `{ $feature } ` is declared stable since { $since } , but was previously declared stable since { $prev_since }
284
278
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
-
291
279
passes_has_incoherent_inherent_impl =
292
280
`rustc_has_incoherent_inherent_impls` attribute should be applied to types or traits
293
281
.label = only adts, extern types and traits are supported
@@ -386,21 +374,6 @@ passes_link =
386
374
.warn = { -passes_previously_accepted }
387
375
.label = not an `extern` block
388
376
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
-
404
377
passes_linkage =
405
378
attribute should be applied to a function or static
406
379
.label = not a function definition or static
@@ -416,9 +389,6 @@ passes_macro_export_on_decl_macro =
416
389
`#[macro_export]` has no effect on declarative macro definitions
417
390
.note = declarative macros follow the same exporting rules as regular items
418
391
419
- passes_macro_use =
420
- `#[{ $name } ]` only has an effect on `extern crate` and modules
421
-
422
392
passes_may_dangle =
423
393
`#[may_dangle]` must be applied to a lifetime or type generic parameter in `Drop` impl
424
394
@@ -477,18 +447,6 @@ passes_no_main_function =
477
447
.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/
478
448
.non_function_main = non-function item at `crate::main` is found
479
449
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
-
492
450
passes_no_sanitize =
493
451
`#[no_sanitize({ $attr_str } )]` should be applied to { $accepted_kind }
494
452
.label = not { $accepted_kind }
@@ -528,10 +486,6 @@ passes_parent_info =
528
486
*[ other ] { $descr } s
529
487
} in this { $parent_descr }
530
488
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
-
535
489
passes_proc_macro_bad_sig = { $kind } has incorrect signature
536
490
537
491
passes_remove_fields =
@@ -571,10 +525,6 @@ passes_rustc_force_inline_coro =
571
525
attribute cannot be applied to a `async`, `gen` or `async gen` function
572
526
.label = `async`, `gen` or `async gen` function
573
527
574
- passes_rustc_layout_scalar_valid_range_not_struct =
575
- attribute should be applied to a struct
576
- .label = not a struct
577
-
578
528
passes_rustc_legacy_const_generics_index =
579
529
#[rustc_legacy_const_generics] must have one index for each generic parameter
580
530
.label = generic parameters
@@ -608,14 +558,6 @@ passes_rustc_pub_transparent =
608
558
attribute should be applied to `#[repr(transparent)]` types
609
559
.label = not a `#[repr(transparent)]` type
610
560
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
-
619
561
passes_should_be_applied_to_fn =
620
562
attribute should be applied to a function definition
621
563
.label = { $on_crate ->
@@ -757,11 +699,6 @@ passes_unused_variable_try_prefix = unused variable: `{$name}`
757
699
.label = unused variable
758
700
.suggestion = if this is intentional, prefix it with an underscore
759
701
760
-
761
- passes_used_static =
762
- attribute must be applied to a `static` variable
763
- .label = but this is a { $target }
764
-
765
702
passes_useless_assignment =
766
703
useless assignment of { $is_field_assign ->
767
704
[ true ] field
0 commit comments