Skip to content

Commit eb8fd11

Browse files
committed
convert ast::pat_list_ident_ to a struct
1 parent 4b0f702 commit eb8fd11

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/libsyntax/ast.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,10 @@ type variant = spanned<variant_>;
13561356
13571357
#[auto_encode]
13581358
#[auto_decode]
1359-
type path_list_ident_ = {name: ident, id: node_id};
1359+
struct path_list_ident_ {
1360+
name: ident,
1361+
id: node_id,
1362+
}
13601363
13611364
type path_list_ident = spanned<path_list_ident_>;
13621365

src/libsyntax/parse/common.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ impl Parser {
8181
let lo = self.span.lo;
8282
let ident = self.parse_ident();
8383
let hi = self.span.hi;
84-
return spanned(lo, hi, {name: ident, id: self.get_id()});
84+
spanned(lo, hi, ast::path_list_ident_ { name: ident,
85+
id: self.get_id() })
8586
}
8687

8788
fn parse_value_ident() -> ast::ident {

0 commit comments

Comments
 (0)