Skip to content

Reduce duplication for arena-spec #79722

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

Closed
wants to merge 1 commit into from

Conversation

pickfire
Copy link
Contributor

@pickfire pickfire commented Dec 5, 2020

Cleanup for #78569

r? @Mark-Simulacrum
cc @bugadani

Not sure if this affects compile-time or runtime performance. Also not sure if the #[inline] is needed for the helper function. This does remove quite a bit of code duplication and added generic for FnOnce().

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2020
@pickfire
Copy link
Contributor Author

pickfire commented Dec 9, 2020

UB

@pickfire pickfire closed this Dec 9, 2020
@pickfire pickfire deleted the refactor-arena branch December 9, 2020 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants