Merge pull request #1937 from fitzgen/upgrade-z3-for-peepmatic

deps: Bump `z3` to 0.6.0
This commit is contained in:
Nick Fitzgerald
2020-06-29 11:19:31 -07:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

8
Cargo.lock generated
View File

@@ -2770,9 +2770,9 @@ dependencies = [
[[package]] [[package]]
name = "z3" name = "z3"
version = "0.5.1" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ded00cd90f8e3a7ea3155bddd72573f2b099ea201877542d924e47b58dd04e72" checksum = "f0354c65dfe00e08c4ab30581732906874f97156f424bfb390cf0cca2cb6ac29"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",
@@ -2781,9 +2781,9 @@ dependencies = [
[[package]] [[package]]
name = "z3-sys" name = "z3-sys"
version = "0.6.1" version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4002d8a1facb54d02dbfb86151281e5450618ab330936bc2f3acaab31eae11ae" checksum = "e1863cafae8eb86dd7d69c9218421b288594e8836346e93d4f36ade427195a21"
dependencies = [ dependencies = [
"cmake", "cmake",
] ]

View File

@@ -14,4 +14,4 @@ peepmatic-automata = { version = "0.2.0", path = "crates/automata", features = [
peepmatic-macro = { version = "0.2.0", path = "crates/macro" } peepmatic-macro = { version = "0.2.0", path = "crates/macro" }
peepmatic-runtime = { version = "0.2.0", path = "crates/runtime", features = ["construct"] } peepmatic-runtime = { version = "0.2.0", path = "crates/runtime", features = ["construct"] }
wast = "15.0.0" wast = "15.0.0"
z3 = { version = "0.5.1", features = ["static-link-z3"] } z3 = { version = "0.6.0", features = ["static-link-z3"] }

View File

@@ -255,7 +255,7 @@ impl<'a> TypingContext<'a> {
let is_void = self.is_void(&root_ty); let is_void = self.is_void(&root_ty);
let is_cpu_flags = self.is_cpu_flags(&root_ty); let is_cpu_flags = self.is_cpu_flags(&root_ty);
self.constraints.push(( self.constraints.push((
is_int.or(&[&is_bool, &is_void, &is_cpu_flags]), z3::ast::Bool::or(&self.z3, &[&is_int, &is_bool, &is_void, &is_cpu_flags]),
span, span,
Some( Some(
"the root of an optimization must be an integer, a boolean, void, or CPU flags" "the root of an optimization must be an integer, a boolean, void, or CPU flags"
@@ -719,7 +719,7 @@ impl<'a> TypingContextTrait<'a> for TypingContext<'a> {
.as_bool() .as_bool()
.unwrap(); .unwrap();
self.constraints.push(( self.constraints.push((
is_int.or(&[&is_bool]), z3::ast::Bool::or(&self.z3, &[&is_int, &is_bool]),
span, span,
Some("type error: must be either an int or a bool type".into()), Some("type error: must be either an int or a bool type".into()),
)); ));