Stabilize param_attrs in Rust 1.39.0

This commit is contained in:
Caio 2019-08-29 20:44:30 -03:00
parent 34e82a7b79
commit 299d696b91
23 changed files with 133 additions and 244 deletions

View file

@ -1176,7 +1176,7 @@ impl<'a> Parser<'a> {
/// 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()?