From f55177415823508c6a22dfbb17ebf3adc887cb59 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Thu, 13 Jul 2023 20:01:39 +0000 Subject: [PATCH] patch elements-miniscript for rustc recursion bug cc https://github.com/rust-lang/rust/issues/110475 --- src/policy/concrete.rs | 1 + src/policy/semantic.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/policy/concrete.rs b/src/policy/concrete.rs index d696b53a..97ff05f6 100644 --- a/src/policy/concrete.rs +++ b/src/policy/concrete.rs @@ -662,6 +662,7 @@ impl ForEachKey for Policy { where Pk: 'a, { + let mut pred = |x| pred(x); match *self { Policy::Unsatisfiable | Policy::Trivial => true, Policy::Key(ref pk) => pred(pk), diff --git a/src/policy/semantic.rs b/src/policy/semantic.rs index cd6080fe..1dbb30a9 100644 --- a/src/policy/semantic.rs +++ b/src/policy/semantic.rs @@ -64,6 +64,7 @@ impl ForEachKey for Policy { where Pk: 'a, { + let mut pred = |x| pred(x); match *self { Policy::Unsatisfiable | Policy::Trivial => true, Policy::Key(ref _pkh) => todo!("Semantic Policy KeyHash must store Pk"),