diff options
| author | Caio <c410.f3r@gmail.com> | 2019-08-29 20:44:30 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-09-11 10:13:43 -0300 |
| commit | 299d696b91e833f01f37e97b69767fcf6f5cccf0 (patch) | |
| tree | bdff186761c01a5b0f9b225063d9a150e5b62cc8 /src/libsyntax/parse/parser.rs | |
| parent | 34e82a7b793a6cdd27df762bf46bab8cdc92b14a (diff) | |
| download | rust-299d696b91e833f01f37e97b69767fcf6f5cccf0.tar.gz rust-299d696b91e833f01f37e97b69767fcf6f5cccf0.zip | |
Stabilize `param_attrs` in Rust 1.39.0
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index fcebfa29962..b2b6504919e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -979,7 +979,7 @@ impl<'a> Parser<'a> { is_name_required: impl Fn(&token::Token) -> bool, ) -> PResult<'a, Param> { let lo = self.token.span; - let attrs = self.parse_param_attributes()?; + let attrs = self.parse_outer_attributes()?; if let Some(mut param) = self.parse_self_param()? { param.attrs = attrs.into(); return self.recover_bad_self_param(param, is_trait_item); @@ -1362,7 +1362,7 @@ impl<'a> Parser<'a> { /// Returns the parsed optional self parameter with attributes and whether a self /// shortcut was used. fn parse_self_parameter_with_attrs(&mut self) -> PResult<'a, Option<Param>> { - let attrs = self.parse_param_attributes()?; + let attrs = self.parse_outer_attributes()?; let param_opt = self.parse_self_param()?; Ok(param_opt.map(|mut param| { param.attrs = attrs.into(); |
