1
Fork 0

Deny imports of rustc_type_ir::inherent outside of type ir + new trait solver

This commit is contained in:
Michael Goulet 2024-08-28 00:14:41 -04:00
parent 1a1cc050d8
commit 91854453f2
7 changed files with 87 additions and 2 deletions

View file

@ -918,6 +918,11 @@ pub(crate) struct TyQualified {
pub suggestion: Span,
}
#[derive(LintDiagnostic)]
#[diag(lint_type_ir_inherent_usage)]
#[note]
pub(crate) struct TypeIrInherentUsage;
#[derive(LintDiagnostic)]
#[diag(lint_non_glob_import_type_ir_inherent)]
pub(crate) struct NonGlobImportTypeIrInherent {