Lint attributes on function arguments
This commit is contained in:
parent
a7f28678bb
commit
53fc7fbc96
28 changed files with 596 additions and 302 deletions
|
|
@ -1776,6 +1776,7 @@ pub struct Arg {
|
|||
pub ty: P<Ty>,
|
||||
pub pat: P<Pat>,
|
||||
pub id: NodeId,
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
/// Alternative representation for `Arg`s describing `self` parameter of methods.
|
||||
|
|
@ -1834,6 +1835,7 @@ impl Arg {
|
|||
node: PatKind::Ident(BindingMode::ByValue(mutbl), eself_ident, None),
|
||||
span,
|
||||
}),
|
||||
span,
|
||||
ty,
|
||||
id: DUMMY_NODE_ID,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue