diff options
author | Lukas Wirth <[email protected]> | 2020-12-23 10:22:36 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-23 10:22:36 +0000 |
commit | bdd8c0b68f097c7d1a65a5b85b94f0a79affa506 (patch) | |
tree | f1fb34af73c422e68cc094056a84e42793b6c1a9 | |
parent | 2c94c4964aa6242098f97ca3421a750a763567b4 (diff) |
Remove local ungrammar dependency
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | crates/parser/src/grammar/patterns.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock index 47381c08e..891cff55e 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -1828,6 +1828,8 @@ checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" | |||
1828 | [[package]] | 1828 | [[package]] |
1829 | name = "ungrammar" | 1829 | name = "ungrammar" |
1830 | version = "1.5.0" | 1830 | version = "1.5.0" |
1831 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1832 | checksum = "c11bffada52edc8f2a56160b286ea4640acf90ffcb21bded361ccb8ed43a1457" | ||
1831 | 1833 | ||
1832 | [[package]] | 1834 | [[package]] |
1833 | name = "unicase" | 1835 | name = "unicase" |
diff --git a/Cargo.toml b/Cargo.toml index fdf2a71a0..59d36fbc1 100644 --- a/Cargo.toml +++ b/Cargo.toml | |||
@@ -26,4 +26,4 @@ debug = 0 # Set this to 1 or 2 to get more useful backtraces in debugger. | |||
26 | # chalk-ir = { path = "../chalk/chalk-ir" } | 26 | # chalk-ir = { path = "../chalk/chalk-ir" } |
27 | # chalk-recursive = { path = "../chalk/chalk-recursive" } | 27 | # chalk-recursive = { path = "../chalk/chalk-recursive" } |
28 | 28 | ||
29 | ungrammar = { path = "../ungrammar" } | 29 | # ungrammar = { path = "../ungrammar" } |
diff --git a/crates/parser/src/grammar/patterns.rs b/crates/parser/src/grammar/patterns.rs index 44400c9f8..b53d5749f 100644 --- a/crates/parser/src/grammar/patterns.rs +++ b/crates/parser/src/grammar/patterns.rs | |||
@@ -1,7 +1,5 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | 2 | ||
3 | use expressions::block_expr; | ||
4 | |||
5 | use super::*; | 3 | use super::*; |
6 | 4 | ||
7 | pub(super) const PATTERN_FIRST: TokenSet = | 5 | pub(super) const PATTERN_FIRST: TokenSet = |
@@ -399,6 +397,6 @@ fn const_block_pat(p: &mut Parser) -> CompletedMarker { | |||
399 | assert!(p.at(T![const])); | 397 | assert!(p.at(T![const])); |
400 | let m = p.start(); | 398 | let m = p.start(); |
401 | p.bump(T![const]); | 399 | p.bump(T![const]); |
402 | block_expr(p); | 400 | expressions::block_expr(p); |
403 | m.complete(p, CONST_BLOCK_PAT) | 401 | m.complete(p, CONST_BLOCK_PAT) |
404 | } | 402 | } |