summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2019-04-14 22:45:22 +0200
committerNadrieril2019-04-14 22:45:22 +0200
commitd29f163e03f170a06d700ff0f62a10a489d2f058 (patch)
tree383ffafd4b6d47d160d148398cf06c7ada5bd6a4
parent0110cdad6f61503d27535c4ae375adccd5b81012 (diff)
Rename iter_patterns to improved_slice_patterns
Diffstat (limited to '')
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--dhall_core/Cargo.toml2
-rw-r--r--dhall_core/src/parser.rs2
-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
diff --git a/Cargo.lock b/Cargo.lock
index 6cbb9a7..70298e8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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]]
diff --git a/Cargo.toml b/Cargo.toml
index fc7d003..0474d20 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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