Lint attributes on function arguments

This commit is contained in:
Caio 2019-07-26 19:52:37 -03:00
parent a7f28678bb
commit 53fc7fbc96
28 changed files with 596 additions and 302 deletions

View file

@ -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,
};