-
Notifications
You must be signed in to change notification settings - Fork 111
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
TypeList recursion limit #289
Comments
Interesting! Well this is going to be inevitable if your type actually has 128+ dependencies (somehow), but in your case, the function |
😆 I thought we might be reach that limit at some point! @escritorio-gustavo One way we could tackle this is by generating a custom TypeList, instead of returning e.g fn dependency_types() -> impl TypeList {
struct List;
impl TypeList for List {
fn for_each(self, v: &mut Visitor) {
v.visit::<Type1>();
v.visit::<Type2>();
OtherType::depencency_types().for_each(v);
...
}
}
List
} |
Cool! That could be the way to fix the case for |
I'm getting this issue on the
|
@dessalines The newly released 9.0.0 should fix this! |
Nice, thx! |
Describe the bug
Since the upgrade from 7.1.1 to 8.1.0, I'm getting recursion limit errors
or
(on a crate that depends on a crate with
#![recursion_limit = "..."]
)To Reproduce
Derive TS on an enum with 130+ fields, for example:
if you comment out some variants, it compiles. There is a point where it stops compiling (the default recursion limit is 128)
Expected behavior
Screenshots
Version
8.1.0
The text was updated successfully, but these errors were encountered: