We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b250ae6 commit c04c06cCopy full SHA for c04c06c
xtask/src/codegen/rust.ungram
@@ -175,7 +175,13 @@ ConstParam =
175
('=' default_val:Expr)?
176
177
LifetimeParam =
178
- Attr* 'lifetime'
+ Attr* 'lifetime' (':' TypeBoundList?)?
179
+
180
+WhereClause =
181
+ 'where' predicates:(WherePred (',' WherePred)* ','?)
182
183
+WherePred =
184
+ ('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
185
186
Visibility =
187
'pub' ('('
@@ -450,12 +456,6 @@ MacroStmts =
450
456
statements:Stmt*
451
457
Expr?
452
458
453
-WherePred =
454
- ('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
455
-
-WhereClause =
- 'where' predicates:WherePred*
459
ExprStmt =
460
Attr* Expr ';'
461
0 commit comments