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

Add an annotation for deriving MallocSizeOf that uses MallocUnconditionalSizeOf for specific fields #20401

Open
jdm opened this issue Mar 23, 2018 · 1 comment

Comments

@jdm
Copy link
Member

@jdm jdm commented Mar 23, 2018

Whether it's derive(MallocSizeOf(unconditional = "field1,field2")) on a type or #[unconditional_malloc_size_of] on a particular field, this would make it much easier to deal with structures that contain a mixture of fields that can be automatically derived and fields that cannot (eg. #20391).

@highfive
Copy link

@highfive highfive commented Mar 23, 2018

@jdm jdm mentioned this issue Mar 23, 2018
7 of 9 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.