Add internal lint for detecting non-glob imports of rustc_type_ir::inherent
This commit is contained in:
parent
44fb8575de
commit
2507301de0
9 changed files with 168 additions and 2 deletions
|
@ -926,6 +926,14 @@ pub struct TyQualified {
|
|||
pub suggestion: Span,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_non_glob_import_type_ir_inherent)]
|
||||
pub struct NonGlobImportTypeIrInherent {
|
||||
#[suggestion(code = "{snippet}", applicability = "maybe-incorrect")]
|
||||
pub suggestion: Option<Span>,
|
||||
pub snippet: &'static str,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_lintpass_by_hand)]
|
||||
#[help]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue