Skip to content

Commit 0e848dd

Browse files
committed
---
yaml --- r: 188375 b: refs/heads/auto c: f1fe1b5 h: refs/heads/master i: 188373: 211e8cf 188371: 9139dac 188367: ed0db1c v: v3
1 parent 61d999e commit 0e848dd

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: e93b2abf37e594110ef15049d957a8dcac9bc977
13+
refs/heads/auto: f1fe1b5d4f120e73735f133153794592835369df
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/grammar/parser-lalr.y

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,8 @@ ty_qualified_path_and_generic_values
10321032
}
10331033
| ty_qualified_path ',' ty_sums maybe_bindings
10341034
{
1035-
$$ = mk_node("GenericValues", 3, mk_none(), ext_node(mk_node("TySums", 1, $1), 1, $3), $4); }
1035+
$$ = mk_node("GenericValues", 3, mk_none(), mk_node("TySums", 2, $1, $3), $4);
1036+
}
10361037
;
10371038

10381039
ty_qualified_path
@@ -1521,31 +1522,35 @@ nonblock_prefix_expr
15211522
;
15221523

15231524
expr_qualified_path
1524-
: '<' ty_sum AS trait_ref '>' MOD_SEP ident
1525+
: '<' ty_sum maybe_as_trait_ref '>' MOD_SEP ident
15251526
{
1526-
$$ = mk_node("ExprQualifiedPath", 3, $2, $4, $7);
1527+
$$ = mk_node("ExprQualifiedPath", 3, $2, $3, $6);
15271528
}
1528-
| '<' ty_sum AS trait_ref '>' MOD_SEP ident generic_args
1529+
| '<' ty_sum maybe_as_trait_ref '>' MOD_SEP ident generic_args
15291530
{
1530-
$$ = mk_node("ExprQualifiedPath", 4, $2, $4, $7, $8);
1531+
$$ = mk_node("ExprQualifiedPath", 4, $2, $3, $6, $7);
15311532
}
1532-
| SHL ty_sum AS trait_ref '>' MOD_SEP ident AS trait_ref '>' MOD_SEP ident
1533+
| SHL ty_sum maybe_as_trait_ref '>' MOD_SEP ident maybe_as_trait_ref '>' MOD_SEP ident
15331534
{
1534-
$$ = mk_node("ExprQualifiedPath", 3, mk_node("ExprQualifiedPath", 3, $2, $4, $7), $9, $12);
1535+
$$ = mk_node("ExprQualifiedPath", 3, mk_node("ExprQualifiedPath", 3, $2, $3, $6), $7, $10);
15351536
}
1536-
| SHL ty_sum AS trait_ref '>' MOD_SEP ident generic_args AS trait_ref '>' MOD_SEP ident
1537+
| SHL ty_sum maybe_as_trait_ref '>' MOD_SEP ident generic_args maybe_as_trait_ref '>' MOD_SEP ident
15371538
{
1538-
$$ = mk_node("ExprQualifiedPath", 3, mk_node("ExprQualifiedPath", 4, $2, $4, $7, $8), $10, $13);
1539+
$$ = mk_node("ExprQualifiedPath", 3, mk_node("ExprQualifiedPath", 4, $2, $3, $6, $7), $8, $11);
15391540
}
1540-
| SHL ty_sum AS trait_ref '>' MOD_SEP ident AS trait_ref '>' MOD_SEP ident generic_args
1541+
| SHL ty_sum maybe_as_trait_ref '>' MOD_SEP ident maybe_as_trait_ref '>' MOD_SEP ident generic_args
15411542
{
1542-
$$ = mk_node("ExprQualifiedPath", 4, mk_node("ExprQualifiedPath", 3, $2, $4, $7), $9, $12, $13);
1543+
$$ = mk_node("ExprQualifiedPath", 4, mk_node("ExprQualifiedPath", 3, $2, $3, $6), $7, $10, $11);
15431544
}
1544-
| SHL ty_sum AS trait_ref '>' MOD_SEP ident generic_args AS trait_ref '>' MOD_SEP ident generic_args
1545+
| SHL ty_sum maybe_as_trait_ref '>' MOD_SEP ident generic_args maybe_as_trait_ref '>' MOD_SEP ident generic_args
15451546
{
1546-
$$ = mk_node("ExprQualifiedPath", 4, mk_node("ExprQualifiedPath", 4, $2, $4, $7, $8), $10, $13, $14);
1547+
$$ = mk_node("ExprQualifiedPath", 4, mk_node("ExprQualifiedPath", 4, $2, $3, $6, $7), $8, $11, $12);
15471548
}
15481549

1550+
maybe_as_trait_ref
1551+
: AS trait_ref { $$ = $2; }
1552+
| %empty { $$ = mk_none(); }
1553+
;
15491554

15501555
lambda_expr
15511556
: %prec LAMBDA

0 commit comments

Comments
 (0)