Skip to content

Commit a55635d

Browse files
committed
refactor(linter): do not compile Linter::convert_and_call_external_linter 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.
1 parent ce62f16 commit a55635d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/oxc_linter/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ impl Linter {
595595
///
596596
/// This is the common code path shared by both `run_external_rules` and
597597
/// `clone_into_fixed_size_allocator_and_run_external_rules`.
598+
#[cfg(all(target_pointer_width = "64", target_endian = "little"))]
598599
fn convert_and_call_external_linter(
599600
&self,
600601
external_rules: &[(ExternalRuleId, ExternalOptionsId, AllowWarnDeny)],

0 commit comments

Comments
 (0)