/// Parses a parameter in a closure header (e.g., `|arg, arg|`).
fn parse_fn_block_param(&mut self) -> PResult<'a, Param> {
let lo = self.token.span;
- let attrs = self.parse_param_attributes()?;
+ let attrs = self.parse_outer_attributes()?;
let pat = self.parse_pat(PARAM_EXPECTED)?;
let t = if self.eat(&token::Colon) {
self.parse_ty()?
ty: t,
pat,
span,
- id: DUMMY_NODE_ID
+ id: DUMMY_NODE_ID,
+ is_placeholder: false,
})
}
body: expr,
span: lo.to(hi),
id: DUMMY_NODE_ID,
+ is_placeholder: false,
})
}
is_shorthand: false,
attrs: ThinVec::new(),
id: DUMMY_NODE_ID,
+ is_placeholder: false,
});
}
}
is_shorthand,
attrs: attrs.into(),
id: DUMMY_NODE_ID,
+ is_placeholder: false,
})
}