aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-31 14:09:20 +0100
committerAleksey Kladov <[email protected]>2020-07-31 14:13:00 +0100
commitc04c06c4bc06852610af9d37673b03a8c041b15c (patch)
treed209a1caad632d6b05d128ef9b5a064a67c5ccd6
parentb250ae6c55c446f65f85914d98da2cd2c75871f7 (diff)
Finalize WhereClause gramamr
-rw-r--r--xtask/src/codegen/rust.ungram14
1 files changed, 7 insertions, 7 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 32f2808ea..fc665b2b2 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -175,7 +175,13 @@ ConstParam =
175 ('=' default_val:Expr)? 175 ('=' default_val:Expr)?
176 176
177LifetimeParam = 177LifetimeParam =
178 Attr* 'lifetime' 178 Attr* 'lifetime' (':' TypeBoundList?)?
179
180WhereClause =
181 'where' predicates:(WherePred (',' WherePred)* ','?)
182
183WherePred =
184 ('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
179 185
180Visibility = 186Visibility =
181 'pub' ('(' 187 'pub' ('('
@@ -450,12 +456,6 @@ MacroStmts =
450 statements:Stmt* 456 statements:Stmt*
451 Expr? 457 Expr?
452 458
453WherePred =
454 ('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
455
456WhereClause =
457 'where' predicates:WherePred*
458
459ExprStmt = 459ExprStmt =
460 Attr* Expr ';' 460 Attr* Expr ';'
461 461