Migrate doc_comment_on_fn_param, forbidden_attr_on_fn_param
This commit is contained in:
parent
269c85390c
commit
c6903c04b1
3 changed files with 24 additions and 12 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue