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

error: reached the recursion limit while instantiating json_field #251

Open
bladyjoker opened this issue Sep 26, 2024 · 1 comment
Open
Labels
bug Something isn't working codegen rust

Comments

@bladyjoker
Copy link
Collaborator

Error

error: reached the recursion limit while instantiating `<{closure@scripts::lbr_prelude::json::lamval::json_field<'_, RoCMinting>::{closu
re#0}::{closure#0}} as FnOnce<(Box<dyn Fn(...) -> ...>,)>>::call_once - shim(vtable)`                                                   
   --> /home/bladyjoker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lbr-prelude-0.1.3/src/json/lamval.rs:61:24                 
    |                                                                                                                                   
61  |     Box::new(move |x1| Box::new(move |x2| super::json_field(x0, x1, x2)))                                                         
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                          
    |                                                                                                                                   
note: `call_once` defined here                                                                                                          
   --> /nix/store/ryfyfy694d097gif9s0dg8kj1aca08c1-rust-default-1.78.0/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5      
    |                                                                                                                                   
250 |     extern "rust-call" fn call_once(self, args: Args) -> Self::Output;                                                            
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                            
    = note: the full type name has been written to '/home/bladyjoker/mlabs/unbox-infinity/infinity-extras/infinity-proto-conversions/tar

Full type name:

<{closure@scripts::lbr_prelude::json::lamval::json_field<'_, RoCMinting>::{closure#0}::{closure#0}} as FnOnce<(Box<dyn Fn(&scripts::serde_json::Value) -> std::result::Result<RoCMinting, scripts::lbr_prelude::error::Error>>,)>>::call_once - shim(vtable)

Problem schema

https://github.com/mlabs-haskell/unbox-infinity/blob/163b805f21f7a77a3bcd501fa261f1aa9ecf544f/infinity-api/lbf/Infinity/Application/Validation/Prelude.lbf#L42

References

@bladyjoker bladyjoker added bug Something isn't working codegen rust labels Sep 26, 2024
@bladyjoker
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working codegen rust
Projects
Status: Todo
Development

No branches or pull requests

1 participant