Migrate doc_comment_on_fn_param, forbidden_attr_on_fn_param

This commit is contained in:
finalchild 2022-08-18 17:46:01 +09:00
parent 269c85390c
commit c6903c04b1
3 changed files with 24 additions and 12 deletions

View file

@ -126,3 +126,18 @@ pub struct CVarArgsNotLast {
#[primary_span]
pub span: Span,
}
#[derive(SessionDiagnostic)]
#[error(ast_passes::doc_comment_on_fn_param)]
pub struct DocCommentOnFnParam {
#[primary_span]
#[label]
pub span: Span,
}
#[derive(SessionDiagnostic)]
#[error(ast_passes::forbidden_attr_on_fn_param)]
pub struct ForbiddenAttrOnFnParam {
#[primary_span]
pub span: Span,
}