Skip to content

Commit 1bea72c

Browse files
committed
---
yaml --- r: 193427 b: refs/heads/beta c: f1fe1b5 h: refs/heads/master i: 193425: b260c51 193423: 7cb2ef5 v: v3
1 parent 9e8470c commit 1bea72c

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: e93b2abf37e594110ef15049d957a8dcac9bc977
34+
refs/heads/beta: f1fe1b5d4f120e73735f133153794592835369df
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/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)