-
Notifications
You must be signed in to change notification settings - Fork 43
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 on recursive struct #4
Comments
Just to be clear (I haven't tried this), is it the automatic |
Indeed. Error trace is:
|
You can work around this by replacing the direct recursion with #[derive(gc_arena::Collect)]
#[collect(no_drop)]
struct Test<'gc, T>(T, Option<gc_arena::Gc<'gc, Self>>)
where
T: gc_arena::Collect + 'gc; |
Aaron1011
pushed a commit
to Aaron1011/gc-arena
that referenced
this issue
Oct 23, 2022
Update gc arena
I think this is fixed by #23! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to be because
Gc<T>
requiresT
to beCollect
, but that depends onGc<T>
beingCollect
. I'm not sure on how this would be fixed, if even possible.The text was updated successfully, but these errors were encountered: