Reached the recursion limit while instantiating (closure) #137784
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I tried this code:
https://github.com/andrewbaxter/hammer-of-json/blob/48f37984ee726df6d2f7370f724d4aee9945d1c0/source/src/utils.rs#L175
I expected to see this happen: Compile success
Instead, this happened: Compile fails with the error:
Meta
rustc --version --verbose
:Setting the recursion limit to 1024 didn't help.
I worked around the issue by defining
then replacing
|| unreachable!()
withnil_handle_end
, so I think it's probably related to closures.This may be "as designed" so feel free to close, but from a user perspective it was fairly unexpected and the line just pointed to a closure with no real indication of why that was causing recursion or anything that would indicate how to solve the issue.
The text was updated successfully, but these errors were encountered: