diff options
author | Aleksey Kladov <[email protected]> | 2019-01-18 08:02:30 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:36:58 +0000 |
commit | b82fe73d1ab9727ff650382d9c86a231b06245be (patch) | |
tree | e919865c68f78492bab5baa574f1a35a094b0339 /crates/ra_syntax/src/grammar/expressions.rs | |
parent | b028472481df108537b60104314081b65bf51147 (diff) |
make token set a const-fn
Diffstat (limited to 'crates/ra_syntax/src/grammar/expressions.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/expressions.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions.rs b/crates/ra_syntax/src/grammar/expressions.rs index 2d1f17491..2236555e0 100644 --- a/crates/ra_syntax/src/grammar/expressions.rs +++ b/crates/ra_syntax/src/grammar/expressions.rs | |||
@@ -211,10 +211,8 @@ fn expr_bp(p: &mut Parser, r: Restrictions, bp: u8) -> BlockLike { | |||
211 | BlockLike::NotBlock | 211 | BlockLike::NotBlock |
212 | } | 212 | } |
213 | 213 | ||
214 | const LHS_FIRST: TokenSet = token_set_union![ | 214 | const LHS_FIRST: TokenSet = |
215 | token_set![AMP, STAR, EXCL, DOTDOT, DOTDOTEQ, MINUS], | 215 | atom::ATOM_EXPR_FIRST.union(token_set![AMP, STAR, EXCL, DOTDOT, DOTDOTEQ, MINUS]); |
216 | atom::ATOM_EXPR_FIRST, | ||
217 | ]; | ||
218 | 216 | ||
219 | fn lhs(p: &mut Parser, r: Restrictions) -> Option<(CompletedMarker, BlockLike)> { | 217 | fn lhs(p: &mut Parser, r: Restrictions) -> Option<(CompletedMarker, BlockLike)> { |
220 | let m; | 218 | let m; |