refactor(linter): do not compile Linter::convert_and_call_external_linter on 32-bit or big endian#21963
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. |
There was a problem hiding this comment.
Pull request overview
This PR tightens platform gating in oxc_linter by ensuring an internal helper used for JS-plugin external rules is only compiled on supported targets (64-bit little-endian), matching its already-gated callers.
Changes:
- Add a
#[cfg(all(target_pointer_width = "64", target_endian = "little"))]gate toLinter::convert_and_call_external_linter.
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
…inter` on 32-bit or big endian (#21963) This method is dead code on 32-bit or big endian platforms. Both callers are themselvs feature-gated to 64-bit little endian platforms already. So feature-gate this method too.
3b67f17 to
a55635d
Compare

This method is dead code on 32-bit or big endian platforms. Both callers are themselvs feature-gated to 64-bit little endian platforms already. So feature-gate this method too.