diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-02-01 12:12:55 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-02-01 15:06:23 -0800 |
| commit | 378e73e6db0b4d47586f4e3ec975e43ef530ac99 (patch) | |
| tree | 3dc1ac544413d11bf9b2f8961f4dfe598324f907 /src/libsyntax/parse/parser.rs | |
| parent | f7c61783e4cbc169955c7e633ecf629ed901a54e (diff) | |
| download | rust-378e73e6db0b4d47586f4e3ec975e43ef530ac99.tar.gz rust-378e73e6db0b4d47586f4e3ec975e43ef530ac99.zip | |
Remove support for `Self` in attributes
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 38017020730..9d573ea0e7c 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -778,13 +778,7 @@ impl<'a> Parser<'a> { } pub fn parse_ident_attr(&mut self) -> PResult<'a, ast::Ident> { - match self.token { - token::Ident(i) if i.name == keywords::SelfType.name() => { - self.bump(); - Ok(i) - } - _ => self.parse_ident(), - } + self.parse_ident() } fn parse_ident_common(&mut self, recover: bool) -> PResult<'a, ast::Ident> { |
