diff options
Diffstat (limited to '')
-rw-r--r-- | dhall_core/Cargo.toml | 2 | ||||
-rw-r--r-- | dhall_core/src/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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<_>>()) |