Skip to content

Reduce duplication for arena-spec - #79722

Closed
pickfire wants to merge 1 commit into
rust-lang:masterfrom
pickfire:refactor-arena
Closed

Reduce duplication for arena-spec#79722
pickfire wants to merge 1 commit into
rust-lang:masterfrom
pickfire:refactor-arena

Conversation

@pickfire

Copy link
Copy Markdown
Contributor

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-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2020
Comment threadcompiler/rustc_arena/src/lib.rs
@pickfire

Copy link
Copy Markdown
ContributorAuthor

UB

@pickfirepickfire closed this Dec 9, 2020
@pickfire
pickfire deleted the refactor-arena branch December 9, 2020 15:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@pickfire@digama0@Mark-Simulacrum@jyn514@rust-highfive