1
Fork 0

Add internal lint for detecting non-glob imports of rustc_type_ir::inherent

This commit is contained in:
León Orell Valerian Liehr 2024-07-17 12:35:50 +02:00
parent 44fb8575de
commit 2507301de0
No known key found for this signature in database
GPG key ID: D17A07215F68E713
9 changed files with 168 additions and 2 deletions

View file

@ -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]