about summary refs log tree commit diff
path: root/src/libsyntax/parse/attr.rs
diff options
context:
space:
mode:
authorflip1995 <uwdkn@student.kit.edu>2018-04-17 15:33:39 +0200
committerflip1995 <uwdkn@student.kit.edu>2018-05-02 12:05:13 +0200
commit121abd0599f6fd056dca84fe1df724fb7822b355 (patch)
treeac94e33099b35abc0bd5e7302419c4f2391793cd /src/libsyntax/parse/attr.rs
parent24a6284fcd1d40c0d8f8b58d29a672ec78cfa94b (diff)
downloadrust-121abd0599f6fd056dca84fe1df724fb7822b355.tar.gz
rust-121abd0599f6fd056dca84fe1df724fb7822b355.zip
make it compile again
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
-rw-r--r--src/libsyntax/parse/attr.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs
index 0671f29648f..cceed589212 100644
--- a/src/libsyntax/parse/attr.rs
+++ b/src/libsyntax/parse/attr.rs
@@ -149,7 +149,7 @@ impl<'a> Parser<'a> {
         };
         Ok(if let Some(meta) = meta {
             self.bump();
-            (meta.name, meta.node.tokens(meta.span))
+            (meta.ident, meta.node.tokens(meta.span))
         } else {
             (self.parse_path(PathStyle::Mod)?, self.parse_tokens())
         })
@@ -225,10 +225,10 @@ impl<'a> Parser<'a> {
         }
 
         let lo = self.span;
-        let name = self.parse_path(PathStyle::Mod)?;
+        let ident = self.parse_path(PathStyle::Mod)?;
         let node = self.parse_meta_item_kind()?;
         let span = lo.to(self.prev_span);
-        Ok(ast::MetaItem { name, node, span })
+        Ok(ast::MetaItem { ident, node, span })
     }
 
     pub fn parse_meta_item_kind(&mut self) -> PResult<'a, ast::MetaItemKind> {