about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/lints.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2024-10-30 13:12:08 +0100
committerMara Bos <m-ou.se@m-ou.se>2024-10-31 10:55:45 +0100
commitcb26fa07bbb3e7c200c5511b3d010c4208a19a18 (patch)
treeb14211e5f20c50eb3a673acfda4b1ecdc9ee2451 /compiler/rustc_lint/src/lints.rs
parent8b9f0f9c1cf26c8685d3f62341de4b2132b372af (diff)
downloadrust-cb26fa07bbb3e7c200c5511b3d010c4208a19a18.tar.gz
rust-cb26fa07bbb3e7c200c5511b3d010c4208a19a18.zip
Improve the missing_abi lint.
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
-rw-r--r--compiler/rustc_lint/src/lints.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs
index 000f4b697bd..38e52570e53 100644
--- a/compiler/rustc_lint/src/lints.rs
+++ b/compiler/rustc_lint/src/lints.rs
@@ -2738,11 +2738,9 @@ pub(crate) struct PatternsInFnsWithoutBodySub {
 
 #[derive(LintDiagnostic)]
 #[diag(lint_extern_without_abi)]
-#[help]
 pub(crate) struct MissingAbi {
-    #[label]
+    #[suggestion(code = "extern \"{default_abi}\"", applicability = "machine-applicable")]
     pub span: Span,
-
     pub default_abi: &'static str,
 }