aboutsummaryrefslogtreecommitdiff
path: root/crates/parser/src/grammar/types.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-08-27 17:11:33 +0100
committerAleksey Kladov <[email protected]>2020-08-27 17:12:01 +0100
commit4b989009e3839cfc6f021d1552a46561cee6cde2 (patch)
tree07b240aeff385331e1e39cb68b068b5b780ce11b /crates/parser/src/grammar/types.rs
parent6f6580dec764e136148f3fe55c203a9452176bdd (diff)
CONST LOOPS ARE HERE
Diffstat (limited to 'crates/parser/src/grammar/types.rs')
-rw-r--r--crates/parser/src/grammar/types.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/parser/src/grammar/types.rs b/crates/parser/src/grammar/types.rs
index 9d00eb9b9..1ea130ac5 100644
--- a/crates/parser/src/grammar/types.rs
+++ b/crates/parser/src/grammar/types.rs
@@ -2,7 +2,7 @@
2 2
3use super::*; 3use super::*;
4 4
5pub(super) const TYPE_FIRST: TokenSet = paths::PATH_FIRST.union(token_set![ 5pub(super) const TYPE_FIRST: TokenSet = paths::PATH_FIRST.union(TokenSet::new(&[
6 T!['('], 6 T!['('],
7 T!['['], 7 T!['['],
8 T![<], 8 T![<],
@@ -16,16 +16,16 @@ pub(super) const TYPE_FIRST: TokenSet = paths::PATH_FIRST.union(token_set![
16 T![for], 16 T![for],
17 T![impl], 17 T![impl],
18 T![dyn], 18 T![dyn],
19]); 19]));
20 20
21const TYPE_RECOVERY_SET: TokenSet = token_set![ 21const TYPE_RECOVERY_SET: TokenSet = TokenSet::new(&[
22 T![')'], 22 T![')'],
23 T![,], 23 T![,],
24 L_DOLLAR, 24 L_DOLLAR,
25 // test_err struct_field_recover 25 // test_err struct_field_recover
26 // struct S { f pub g: () } 26 // struct S { f pub g: () }
27 T![pub], 27 T![pub],
28]; 28]);
29 29
30pub(crate) fn type_(p: &mut Parser) { 30pub(crate) fn type_(p: &mut Parser) {
31 type_with_bounds_cond(p, true); 31 type_with_bounds_cond(p, true);