We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rules
ctx_host
run_external_rules
1 parent 18a1145 commit a2c91cdCopy full SHA for a2c91cd
crates/oxc_linter/src/lib.rs
@@ -288,6 +288,10 @@ impl Linter {
288
});
289
}
290
291
+ // Drop `rules` to release its `Rc` clones of `ctx_host`, ensuring `run_external_rules`
292
+ // can mutably access `ctx_host` via `Rc::get_mut` without panicking due to multiple references.
293
+ drop(rules);
294
+
295
self.run_external_rules(&external_rules, path, &mut ctx_host, allocator);
296
297
if let Some(severity) = self.options.report_unused_directive {
0 commit comments