Migrate stable let_chains error to session diagnostics
This commit is contained in:
parent
d1ef8180f9
commit
01acfef1a4
3 changed files with 14 additions and 23 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue