]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/hir/mod.rs
Lint attributes on function arguments
[rust.git] / src / librustc / hir / mod.rs
index e7b37d40b4b2f2b3d5104cc02cc44e887225b905..821585da4ebb24bbe24135d7f2d6dc6a88591c83 100644 (file)
@@ -2010,8 +2010,10 @@ pub struct InlineAsm {
 /// Represents an argument in a function header.
 #[derive(RustcEncodable, RustcDecodable, Debug, HashStable)]
 pub struct Arg {
-    pub pat: P<Pat>,
+    pub attrs: HirVec<Attribute>,
     pub hir_id: HirId,
+    pub pat: P<Pat>,
+    pub span: Span,
 }
 
 /// Represents the header (not the body) of a function declaration.
@@ -2701,6 +2703,7 @@ pub fn contains_extern_indicator(&self) -> bool {
 
 #[derive(Copy, Clone, Debug)]
 pub enum Node<'hir> {
+    Arg(&'hir Arg),
     Item(&'hir Item),
     ForeignItem(&'hir ForeignItem),
     TraitItem(&'hir TraitItem),