Add internal lint for detecting non-glob imports of rustc_type_ir::inherent
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user