Introduce missing ABI lint on extern blocks
This commit is contained in:
parent
9f3998b4aa
commit
c4a8d7f86a
7 changed files with 68 additions and 7 deletions
|
@ -6,6 +6,7 @@ use rustc_ast::node_id::{NodeId, NodeMap};
|
|||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, ToStableHashKey};
|
||||
use rustc_span::edition::Edition;
|
||||
use rustc_span::{sym, symbol::Ident, MultiSpan, Span, Symbol};
|
||||
use rustc_target::spec::abi::Abi;
|
||||
|
||||
pub mod builtin;
|
||||
|
||||
|
@ -252,6 +253,7 @@ pub enum BuiltinLintDiagnostics {
|
|||
UnusedImports(String, Vec<(Span, String)>),
|
||||
RedundantImport(Vec<(Span, bool)>, Ident),
|
||||
DeprecatedMacro(Option<Symbol>, Span),
|
||||
MissingAbi(Span, Abi),
|
||||
UnusedDocComment(Span),
|
||||
PatternsInFnsWithoutBody(Span, Ident),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue