3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -801,8 +801,8 @@ passes_unused_duplicate =
801
801
passes_unused_empty_lints_note =
802
802
attribute `{ $name } ` with an empty list has no effect
803
803
804
- passes_unused_linker_warnings_note =
805
- the `linker_warnings ` lint can only be controlled at the root of a crate that needs to be linked
804
+ passes_unused_linker_messages_note =
805
+ the `linker_messages ` lint can only be controlled at the root of a crate that needs to be linked
806
806
807
807
passes_unused_multiple =
808
808
multiple `{ $name } ` attributes
Original file line number Diff line number Diff line change @@ -2382,7 +2382,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
2382
2382
. iter ( )
2383
2383
. all ( |kind| matches ! ( kind, CrateType :: Rlib | CrateType :: Staticlib ) ) ;
2384
2384
if never_needs_link {
2385
- errors:: UnusedNote :: LinkerWarningsBinaryCrateOnly
2385
+ errors:: UnusedNote :: LinkerMessagesBinaryCrateOnly
2386
2386
} else {
2387
2387
return ;
2388
2388
}
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 ) ]
0 commit comments