diff options
| author | flip1995 <uwdkn@student.kit.edu> | 2018-04-17 15:33:39 +0200 |
|---|---|---|
| committer | flip1995 <uwdkn@student.kit.edu> | 2018-05-02 12:05:13 +0200 |
| commit | 121abd0599f6fd056dca84fe1df724fb7822b355 (patch) | |
| tree | ac94e33099b35abc0bd5e7302419c4f2391793cd /src/libsyntax/parse/parser.rs | |
| parent | 24a6284fcd1d40c0d8f8b58d29a672ec78cfa94b (diff) | |
| download | rust-121abd0599f6fd056dca84fe1df724fb7822b355.tar.gz rust-121abd0599f6fd056dca84fe1df724fb7822b355.zip | |
make it compile again
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d8fd3870495..0e3bced3222 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1955,17 +1955,17 @@ impl<'a> Parser<'a> { /// Like `parse_path`, but also supports parsing `Word` meta items into paths for back-compat. /// This is used when parsing derive macro paths in `#[derive]` attributes. pub fn parse_path_allowing_meta(&mut self, style: PathStyle) -> PResult<'a, ast::Path> { - let meta_name = match self.token { + let meta_ident = match self.token { token::Interpolated(ref nt) => match nt.0 { token::NtMeta(ref meta) => match meta.node { - ast::MetaItemKind::Word => Some(meta.name.clone()), + ast::MetaItemKind::Word => Some(meta.ident.clone()), _ => None, }, _ => None, }, _ => None, }; - if let Some(path) = meta_name { + if let Some(path) = meta_ident { self.bump(); return Ok(path); } |
