Skip to content

feat(ast_tools): add #[builder(default)] attribute for struct fields#9204

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-18-feat_ast_tools_add_builder_default_attribute_for_struct_fields
Feb 18, 2025
Merged

feat(ast_tools): add #[builder(default)] attribute for struct fields#9204
graphite-app[bot] merged 1 commit intomainfrom
02-18-feat_ast_tools_add_builder_default_attribute_for_struct_fields

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 18, 2025

Extend #[builder(default)] attribute added in #9203 to also be usable on struct fields.

This will enable adding a pure: bool field to some structs, without altering the signature of AST builder methods.

Does not alter any generated code.

Copy link
Member Author

overlookmotel commented Feb 18, 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.

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 18, 2025

Merge activity

#9204)

Extend `#[builder(default)]` attribute added in #9203 to also be usable on struct fields.

This will enable adding a `pure: bool` field to some structs, without altering the signature of AST builder methods.

Does not alter any generated code.
@graphite-app graphite-app bot force-pushed the 02-18-feat_ast_tools_add_builder_default_attribute_for_structs_and_enums branch from 5d9ec0a to 3e7b21c Compare February 18, 2025 14:50
@graphite-app graphite-app bot force-pushed the 02-18-feat_ast_tools_add_builder_default_attribute_for_struct_fields branch from 5b5e774 to 25e0bbd Compare February 18, 2025 14:50
Base automatically changed from 02-18-feat_ast_tools_add_builder_default_attribute_for_structs_and_enums to main February 18, 2025 14:54
@graphite-app graphite-app bot merged commit 25e0bbd into main Feb 18, 2025
16 checks passed
@graphite-app graphite-app bot deleted the 02-18-feat_ast_tools_add_builder_default_attribute_for_struct_fields branch February 18, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast-tools Area - AST tools C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant