File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -811,8 +811,8 @@ passes_unused_duplicate =
811811passes_unused_empty_lints_note =
812812 attribute `{ $name } ` with an empty list has no effect
813813
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
816816
817817passes_unused_multiple =
818818 multiple `{ $name } ` attributes
Original file line number Diff line number Diff line change @@ -2388,7 +2388,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
23882388 . iter ( )
23892389 . all ( |kind| matches ! ( kind, CrateType :: Rlib | CrateType :: Staticlib ) ) ;
23902390 if never_needs_link {
2391- errors:: UnusedNote :: LinkerWarningsBinaryCrateOnly
2391+ errors:: UnusedNote :: LinkerMessagesBinaryCrateOnly
23922392 } else {
23932393 return ;
23942394 }
Original file line number Diff line number Diff line change @@ -770,8 +770,8 @@ pub(crate) enum UnusedNote {
770770 NoLints { name : Symbol } ,
771771 #[ note( passes_unused_default_method_body_const_note) ]
772772 DefaultMethodBodyConst ,
773- #[ note( passes_unused_linker_warnings_note ) ]
774- LinkerWarningsBinaryCrateOnly ,
773+ #[ note( passes_unused_linker_messages_note ) ]
774+ LinkerMessagesBinaryCrateOnly ,
775775}
776776
777777#[ derive( LintDiagnostic ) ]
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ warning: unused attribute
1616LL | #![allow(linker_messages)]
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
1818 |
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
2020
2121warning: 2 warnings emitted
2222
You can’t perform that action at this time.
0 commit comments