-
-
Notifications
You must be signed in to change notification settings - Fork 760
refactor(ast): shorten generated code for CloneIn
#9939
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
refactor(ast): shorten generated code for CloneIn
#9939
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #9939 will not alter performanceComparing Summary
|
feea14a to
76484f5
Compare
410e54c to
28179cd
Compare
76484f5 to
b9175d8
Compare
|
I think this change is uncontroversial, so merging without review. |
Merge activity
|
Shorten generated code for `CloneIn` for fieldless enums. All fieldless enums are `Copy`, so cloning them can just be `*self`, rather than a large match expression. This removes about 500 lines of code. Add `#[inline(always)]` to these no-op `clone_in` methods.
b9175d8 to
d3d7d98
Compare

Shorten generated code for
CloneInfor fieldless enums. All fieldless enums areCopy, so cloning them can just be*self, rather than a large match expression. This removes about 500 lines of code.Add
#[inline(always)]to these no-opclone_inmethods.