Skip to content
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

fix(ast): fix lifetimes on custom Serialize impls #8899

Merged

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Feb 4, 2025

Fix lifetimes on custom Serialize impls for literal types. It's not required to borrow the AST node for 'a, only that it's inner allocator lifetime is 'a. The longer lifetime requirement was unnecessarily restrictive.

@github-actions github-actions bot added the A-ast Area - AST label Feb 4, 2025
Copy link
Contributor Author

overlookmotel commented Feb 4, 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 the C-bug Category - Bug label Feb 4, 2025
@overlookmotel overlookmotel marked this pull request as ready for review February 4, 2025 14:30
Copy link

codspeed-hq bot commented Feb 4, 2025

CodSpeed Performance Report

Merging #8899 will not alter performance

Comparing 02-04-fix_ast_fix_lifetimes_on_custom_serialize_impls (315fec6) with main (3e69c23)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 02-04-fix_ast_fix_lifetimes_on_custom_serialize_impls branch from 008cc3d to 2ed22ae Compare February 5, 2025 01:38
@overlookmotel overlookmotel changed the base branch from main to 02-04-refactor_span_combine_span_type_and_impls_in_1_file February 5, 2025 01:39
This was referenced Feb 5, 2025
Copy link
Member

Boshen commented Feb 5, 2025

Merge activity

  • Feb 5, 3:10 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 5, 3:10 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 5, 3:22 AM EST: A user merged this pull request with the Graphite merge queue.

graphite-app bot pushed a commit that referenced this pull request Feb 5, 2025
Fix lifetimes on custom `Serialize` impls for literal types. It's not required to borrow the AST node for `'a`, only that it's inner allocator lifetime is `'a`. The longer lifetime requirement was unnecessarily restrictive.
@graphite-app graphite-app bot force-pushed the 02-04-fix_ast_fix_lifetimes_on_custom_serialize_impls branch from 49433c4 to 10eb784 Compare February 5, 2025 08:10
Fix lifetimes on custom `Serialize` impls for literal types. It's not required to borrow the AST node for `'a`, only that it's inner allocator lifetime is `'a`. The longer lifetime requirement was unnecessarily restrictive.
@graphite-app graphite-app bot force-pushed the 02-04-fix_ast_fix_lifetimes_on_custom_serialize_impls branch from 10eb784 to 315fec6 Compare February 5, 2025 08:16
@graphite-app graphite-app bot merged commit 315fec6 into main Feb 5, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 02-04-fix_ast_fix_lifetimes_on_custom_serialize_impls branch February 5, 2025 08:22
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 Area - AST C-bug Category - Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants