From eb8fd119c65c67f3b1b8268cc7341c22d39b7b61 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 13 Jan 2013 17:27:57 -0800 Subject: [PATCH] convert ast::pat_list_ident_ to a struct --- src/libsyntax/ast.rs | 5 ++++- src/libsyntax/parse/common.rs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index ba8d9fc41cc6..7f6a6429f163 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1356,7 +1356,10 @@ type variant = spanned; #[auto_encode] #[auto_decode] -type path_list_ident_ = {name: ident, id: node_id}; +struct path_list_ident_ { + name: ident, + id: node_id, +} type path_list_ident = spanned; diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 1c6022130dc4..a7af8500f499 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -81,7 +81,8 @@ impl Parser { let lo = self.span.lo; let ident = self.parse_ident(); let hi = self.span.hi; - return spanned(lo, hi, {name: ident, id: self.get_id()}); + spanned(lo, hi, ast::path_list_ident_ { name: ident, + id: self.get_id() }) } fn parse_value_ident() -> ast::ident {