Add hard error for extern without explicit ABI
This commit is contained in:
@@ -823,3 +823,12 @@ pub(crate) struct DuplicatePreciseCapturing {
|
||||
#[label]
|
||||
pub bound2: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(ast_passes_extern_without_abi)]
|
||||
#[help]
|
||||
pub(crate) struct MissingAbi {
|
||||
#[primary_span]
|
||||
#[suggestion(code = "extern \"<abi>\"", applicability = "has-placeholders")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user