Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflow error compiling miniscript on macOS #2271

Closed
sangaman opened this issue Jul 13, 2023 · 7 comments · Fixed by #2281
Closed

Overflow error compiling miniscript on macOS #2271

sangaman opened this issue Jul 13, 2023 · 7 comments · Fixed by #2281

Comments

@sangaman
Copy link

  Compiling miniscript v9.0.1
error[E0275]: overflow evaluating the requirement `F: FnMut<(&Pk,)>`
  |
  = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`miniscript`)
  = note: required for `&mut F` to implement `FnMut<(&Pk,)>`
  = note: 128 redundant requirements hidden
  = note: required for `&mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut ...` to implement `FnMut<(&Pk,)>`
  = note: the full type name has been written to '/Users/dmcnally/github/ord/target/release/deps/miniscript-93579cecabee682e.long-type-10470458130272265009.txt'

For more information about this error, try `rustc --explain E0275`.

I'm using rustc 1.71.0 (8ede3aae2 2023-07-12) on an amd64 macOS ventura machine.

@raphjaph
Copy link
Collaborator

I tried to reproduce but everything works on my Mac. What command are you using to compile and are you compiling from master?

@veryordinally
Copy link
Collaborator

Had another report, but also can't reproduce. Is this using the latest rust version 1.71.0?

@raphjaph
Copy link
Collaborator

I'm using the exact same rust version (rustc 1.71.0 (8ede3aae2 2023-07-12).

@veryordinally
Copy link
Collaborator

Seems to be this rust-lang/rust#110475

@veryordinally
Copy link
Collaborator

Workaround is here: uncomputable/rust-simplicity@1b8a825

@billyrestey
Copy link

Confirming rolling back to rust 1.70.0 didn't produce the error. Good enough for me for now!

thank you for the suggestion @veryordinally

@niftynei
Copy link
Contributor

this worked for me to fix/patch over the problem: #2280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants