diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-11 18:33:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-11 18:33:20 +0100 |
commit | 36353bb1827dbd2efcde2d18c8598c4cc5e2e296 (patch) | |
tree | 5b08ffc573918a2210abbb5b06ec523770cbab1b /xtask | |
parent | bd61ad756cc0a7bfeaa5dae81ac5ab50a2e71697 (diff) | |
parent | 8622e4cc1b79f5d23b8a2c6610d749f5b987ea7e (diff) |
Merge #4833
4833: Separating parsing of `for` in predicates and types r=matklad a=matthewjasper
We now correctly accept `for<'a> (&'a F): Fn(&'a str)` in a where clause and correctly reject `for<'a> &'a u32` as a type.
Co-authored-by: Matthew Jasper <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/ast_src.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index f60f0fb16..392648d71 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -1707,7 +1707,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { | |||
1707 | /// ``` | 1707 | /// ``` |
1708 | /// | 1708 | /// |
1709 | /// [Reference](https://doc.rust-lang.org/reference/items/generics.html#where-clauses) | 1709 | /// [Reference](https://doc.rust-lang.org/reference/items/generics.html#where-clauses) |
1710 | struct WherePred: TypeBoundsOwner { T![lifetime], TypeRef } | 1710 | struct WherePred: TypeBoundsOwner { T![for], TypeParamList, T![lifetime], TypeRef } |
1711 | 1711 | ||
1712 | /// Where clause. | 1712 | /// Where clause. |
1713 | /// | 1713 | /// |