diff options
Diffstat (limited to '')
-rw-r--r-- | Cargo.lock | 4 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | dhall_core/Cargo.toml | 2 | ||||
-rw-r--r-- | dhall_core/src/parser.rs | 2 | ||||
-rw-r--r-- | improved_slice_patterns/Cargo.toml (renamed from iter_patterns/Cargo.toml) | 2 | ||||
-rw-r--r-- | improved_slice_patterns/src/lib.rs (renamed from iter_patterns/src/lib.rs) | 0 |
6 files changed, 6 insertions, 6 deletions
@@ -83,7 +83,7 @@ name = "dhall_core" version = "0.1.0" dependencies = [ "dhall_generated_parser 0.1.0", - "iter_patterns 0.1.0", + "improved_slice_patterns 0.1.0", "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "pest 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -146,7 +146,7 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] -name = "iter_patterns" +name = "improved_slice_patterns" version = "0.1.0" [[package]] @@ -7,7 +7,7 @@ members = [ "dhall_generated_parser", "dhall_core", "dhall_generator", - "iter_patterns", + "improved_slice_patterns", ] # # Parser is super slow when not optimized diff --git a/dhall_core/Cargo.toml b/dhall_core/Cargo.toml index a2b242c..bfc418a 100644 --- a/dhall_core/Cargo.toml +++ b/dhall_core/Cargo.toml @@ -12,4 +12,4 @@ doctest = false itertools = "0.8.0" pest = "2.1" dhall_generated_parser = { path = "../dhall_generated_parser" } -iter_patterns = { path = "../iter_patterns" } +improved_slice_patterns = { path = "../improved_slice_patterns" } diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index e520f05..cae6cbd 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -171,7 +171,7 @@ macro_rules! make_parser { #[allow(unused_imports)] use ParsedValue::*; #[allow(unreachable_code)] - let res: $o = iter_patterns::match_vec!($children; + let res: $o = improved_slice_patterns::match_vec!($children; $( [$($args)*] => $body, )* [x..] => Err( format!("Unexpected children: {:?}", x.collect::<Vec<_>>()) diff --git a/iter_patterns/Cargo.toml b/improved_slice_patterns/Cargo.toml index 5a4c45f..f4d9577 100644 --- a/iter_patterns/Cargo.toml +++ b/improved_slice_patterns/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "iter_patterns" +name = "improved_slice_patterns" version = "0.1.0" authors = ["Nadrieril <nadrieril@users.noreply.github.com>"] license = "BSD-2-Clause" diff --git a/iter_patterns/src/lib.rs b/improved_slice_patterns/src/lib.rs index 0672499..0672499 100644 --- a/iter_patterns/src/lib.rs +++ b/improved_slice_patterns/src/lib.rs |