Migrate stable let_chains error to session diagnostics

This commit is contained in:
Nilstrieb 2022-08-29 19:49:30 +02:00
parent d1ef8180f9
commit 01acfef1a4
3 changed files with 14 additions and 23 deletions

View file

@ -30,6 +30,14 @@ impl AddSubdiagnostic for ForbiddenLetReason {
}
}
#[derive(SessionDiagnostic)]
#[diag(ast_passes::forbidden_let_stable)]
#[note]
pub struct ForbiddenLetStable {
#[primary_span]
pub span: Span,
}
#[derive(SessionDiagnostic)]
#[diag(ast_passes::forbidden_assoc_constraint)]
pub struct ForbiddenAssocConstraint {