File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -811,8 +811,8 @@ passes_unused_duplicate =
811
811
passes_unused_empty_lints_note =
812
812
attribute `{ $name } ` with an empty list has no effect
813
813
814
- passes_unused_linker_warnings_note =
815
- the `linker_warnings ` lint can only be controlled at the root of a crate that needs to be linked
814
+ passes_unused_linker_messages_note =
815
+ the `linker_messages ` lint can only be controlled at the root of a crate that needs to be linked
816
816
817
817
passes_unused_multiple =
818
818
multiple `{ $name } ` attributes
Original file line number Diff line number Diff line change @@ -2388,7 +2388,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
2388
2388
. iter ( )
2389
2389
. all ( |kind| matches ! ( kind, CrateType :: Rlib | CrateType :: Staticlib ) ) ;
2390
2390
if never_needs_link {
2391
- errors:: UnusedNote :: LinkerWarningsBinaryCrateOnly
2391
+ errors:: UnusedNote :: LinkerMessagesBinaryCrateOnly
2392
2392
} else {
2393
2393
return ;
2394
2394
}
Original file line number Diff line number Diff line change @@ -770,8 +770,8 @@ pub(crate) enum UnusedNote {
770
770
NoLints { name : Symbol } ,
771
771
#[ note( passes_unused_default_method_body_const_note) ]
772
772
DefaultMethodBodyConst ,
773
- #[ note( passes_unused_linker_warnings_note ) ]
774
- LinkerWarningsBinaryCrateOnly ,
773
+ #[ note( passes_unused_linker_messages_note ) ]
774
+ LinkerMessagesBinaryCrateOnly ,
775
775
}
776
776
777
777
#[ derive( LintDiagnostic ) ]
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ warning: unused attribute
16
16
LL | #![allow(linker_messages)]
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
18
18
|
19
- = note: the `linker_warnings ` lint can only be controlled at the root of a crate that needs to be linked
19
+ = note: the `linker_messages ` lint can only be controlled at the root of a crate that needs to be linked
20
20
21
21
warning: 2 warnings emitted
22
22
You can’t perform that action at this time.
0 commit comments