Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 8, 2025

PointerExt trait was introduced to allow using NonNull::offset_from_unsigned (and similar APIs) on Rust v1.87.0 and above, without breaking code on earlier Rust versions where these APIs did not exist.

Our MSRV is now v1.87.0 (#12900), so we can just use these methods directly, and PointerExt is not required any more. Remove it.

@github-actions github-actions bot added A-parser Area - Parser A-codegen Area - Code Generation C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Aug 8, 2025
Copy link
Member Author

overlookmotel commented Aug 8, 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.

@overlookmotel overlookmotel marked this pull request as ready for review August 8, 2025 10:19
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 8, 2025

CodSpeed Instrumentation Performance Report

Merging #12903 will not alter performance

Comparing 08-08-refactor_data_structures_remove_pointerext_trait (128b527) with main (281f939)

Summary

✅ 34 untouched benchmarks

@graphite-app graphite-app bot changed the base branch from 08-08-chore_deps_raise_msrv_to_1.87.0 to graphite-base/12903 August 8, 2025 11:06
@graphite-app graphite-app bot force-pushed the graphite-base/12903 branch from 2d7df35 to 6d94216 Compare August 8, 2025 11:12
@graphite-app graphite-app bot force-pushed the 08-08-refactor_data_structures_remove_pointerext_trait branch from d862c8c to 93da928 Compare August 8, 2025 11:12
@graphite-app graphite-app bot changed the base branch from graphite-base/12903 to main August 8, 2025 11:13
@graphite-app graphite-app bot force-pushed the 08-08-refactor_data_structures_remove_pointerext_trait branch from 93da928 to 4360e72 Compare August 8, 2025 11:13
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Aug 8, 2025
Copy link
Member

Boshen commented Aug 8, 2025

Merge activity

`PointerExt` trait was introduced to allow using `NonNull::offset_from_unsigned` (and similar APIs) on Rust v1.87.0 and above, without breaking code on earlier Rust versions where these APIs did not exist.

Our MSRV is now v1.87.0 (#12900), so we can just use these methods directly, and `PointerExt` is not required any more. Remove it.
@graphite-app graphite-app bot force-pushed the 08-08-refactor_data_structures_remove_pointerext_trait branch from 4360e72 to 128b527 Compare August 8, 2025 11:38
@graphite-app graphite-app bot merged commit 128b527 into main Aug 8, 2025
32 checks passed
@graphite-app graphite-app bot deleted the 08-08-refactor_data_structures_remove_pointerext_trait branch August 8, 2025 11:44
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 8, 2025
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
)

`PointerExt` trait was introduced to allow using `NonNull::offset_from_unsigned` (and similar APIs) on Rust v1.87.0 and above, without breaking code on earlier Rust versions where these APIs did not exist.

Our MSRV is now v1.87.0 (oxc-project#12900), so we can just use these methods directly, and `PointerExt` is not required any more. Remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-codegen Area - Code Generation A-parser Area - Parser 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.

3 participants