1
Fork 0

Improve the missing_abi lint.

This commit is contained in:
Mara Bos 2024-10-30 13:12:08 +01:00
parent 8b9f0f9c1c
commit cb26fa07bb
7 changed files with 14 additions and 13 deletions

View file

@ -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,
}