Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Mar 21, 2025

Simplify implementation of code generator for CloneIn.

Instead of complicated code to avoid unused vars, just add #![allow(unused_variables)] to silence the lint rules. And always use same name for the lifetime. These changes make the logic of the code generator simpler.

Also add line breaks to generated code for readability.

Copy link
Member Author

overlookmotel commented Mar 21, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Mar 21, 2025
@overlookmotel overlookmotel marked this pull request as ready for review March 21, 2025 05:05
@overlookmotel overlookmotel requested a review from leaysgur as a code owner March 21, 2025 05:05
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 21, 2025

CodSpeed Instrumentation Performance Report

Merging #9938 will not alter performance

Comparing 03-21-refactor_ast_tools_simplify_clonein_derive (28179cd) with main (9a36e67)

Summary

✅ 33 untouched benchmarks

@overlookmotel
Copy link
Member Author

Does not make an substantial changes to generated code, only simplifies the code generator, so merging without review.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Mar 21, 2025
Copy link
Member Author

overlookmotel commented Mar 21, 2025

Merge activity

  • Mar 21, 1:14 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 21, 1:14 AM EDT: A user added this pull request to the Graphite merge queue.
  • Mar 21, 1:23 AM EDT: A user merged this pull request with the Graphite merge queue.

Simplify implementation of code generator for `CloneIn`.

Instead of complicated code to avoid unused vars, just add `#![allow(unused_variables)]` to silence the lint rules. And always use same name for the lifetime. These changes make the logic of the code generator simpler.

Also add line breaks to generated code for readability.
@graphite-app graphite-app bot force-pushed the 03-21-perf_regular_expression_make_all_fieldless_enums_copy_ branch from ee27e81 to a09bbcf Compare March 21, 2025 05:15
@graphite-app graphite-app bot force-pushed the 03-21-refactor_ast_tools_simplify_clonein_derive branch from 410e54c to 28179cd Compare March 21, 2025 05:15
Base automatically changed from 03-21-perf_regular_expression_make_all_fieldless_enums_copy_ to main March 21, 2025 05:22
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 21, 2025
@graphite-app graphite-app bot merged commit 28179cd into main Mar 21, 2025
26 checks passed
@graphite-app graphite-app bot deleted the 03-21-refactor_ast_tools_simplify_clonein_derive branch March 21, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants