@@ -8,9 +8,9 @@ use oxc_ast::ast_kind::AST_TYPE_MAX;
88use oxc_data_structures:: box_macros:: boxed_array;
99use oxc_semantic:: AstNode ;
1010
11- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
11+ #[ cfg( feature = "oxlint2" ) ]
1212use oxc_ast_macros:: ast;
13- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
13+ #[ cfg( feature = "oxlint2" ) ]
1414use oxc_ast_visit:: utf8_to_utf16:: Utf8ToUtf16 ;
1515
1616#[ cfg( test) ]
@@ -40,8 +40,7 @@ pub mod rules;
4040pub mod table;
4141
4242mod generated {
43- #[ cfg( all( feature = "oxlint2" , not( feature = "disable_oxlint2" ) ) ) ]
44- #[ cfg( debug_assertions) ]
43+ #[ cfg( all( feature = "oxlint2" , debug_assertions) ) ]
4544 mod assert_layouts;
4645 mod rule_runner_impls;
4746}
@@ -260,11 +259,11 @@ impl Linter {
260259 }
261260 }
262261
263- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
262+ #[ cfg( feature = "oxlint2" ) ]
264263 self . run_external_rules ( & external_rules, path, & mut ctx_host, allocator) ;
265264
266265 // Stop clippy complaining about unused vars
267- #[ cfg( not( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ) ]
266+ #[ cfg( not( feature = "oxlint2" ) ) ]
268267 let ( _, _, _) = ( & external_rules, & mut ctx_host, allocator) ;
269268
270269 if let Some ( severity) = self . options . report_unused_directive {
@@ -282,7 +281,7 @@ impl Linter {
282281 ctx_host. take_diagnostics ( )
283282 }
284283
285- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
284+ #[ cfg( feature = "oxlint2" ) ]
286285 fn run_external_rules < ' a > (
287286 & self ,
288287 external_rules : & [ ( ExternalRuleId , AllowWarnDeny ) ] ,
@@ -400,7 +399,7 @@ impl Linter {
400399 }
401400}
402401
403- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
402+ #[ cfg( feature = "oxlint2" ) ]
404403/// Metadata written to end of buffer.
405404///
406405/// Duplicate of `RawTransferMetadata` in `napi/parser/src/raw_transfer_types.rs`.
@@ -418,10 +417,10 @@ struct RawTransferMetadata2 {
418417 pub ( crate ) _padding : u64 ,
419418}
420419
421- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
420+ #[ cfg( feature = "oxlint2" ) ]
422421use RawTransferMetadata2 as RawTransferMetadata ;
423422
424- #[ cfg( all ( feature = "oxlint2" , not ( feature = "disable_oxlint2" ) ) ) ]
423+ #[ cfg( feature = "oxlint2" ) ]
425424impl RawTransferMetadata {
426425 pub fn new ( data_offset : u32 ) -> Self {
427426 Self { data_offset, is_ts : false , _padding : 0 }
0 commit comments