-
-
Notifications
You must be signed in to change notification settings - Fork 718
Description
The file is quite large — 280 KB. I tried to minimize it, but after about 50,000 attempts, the minimizer managed to reduce the size by only around 1%.
command
timeout -v 100 oxlint -D all -D nursery --import-plugin --jsdoc-plugin --jest-plugin --vitest-plugin --jsx-a11y-plugin --nextjs-plugin --react-perf-plugin TEST___FILE.js --fix --fix-suggestions --fix-dangerously
cause this
thread '<unnamed>' (954127) panicked at crates/oxc_linter/src/lib.rs:280:25:
assertion `left == right` failed: Diagnostic differs between optimized and unoptimized runs
left: Message { error: OxcDiagnostic { inner: OxcDiagnosticInner { message: "Found identifier 'a' with the same name as a label.", labels: Some([LabeledSpan { label: Some("Identifier 'a' found here."), span: SourceSpan { offset: SourceOffset(11481), length: 1 }, primary: false }, LabeledSpan { label: Some("Label with the same name."), span: SourceSpan { offset: SourceOffset(11636), length: 1 }, primary: false }]), help: None, severity: Error, code: OxcCode { scope: Some("eslint"), number: Some("no-label-var") }, url: Some("https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-label-var.html") } }, fixes: None, span: Span { start: 11481, end: 11482 }, fixed: false }
right: Message { error: OxcDiagnostic { inner: OxcDiagnosticInner { message: "Labeled statement is not allowed", labels: Some([LabeledSpan { label: None, span: SourceSpan { offset: SourceOffset(11636), length: 1 }, primary: false }]), help: None, severity: Error, code: OxcCode { scope: Some("eslint"), number: Some("no-labels") }, url: Some("https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-labels.html") } }, fixes: None, span: Span { start: 11636, end: 11637 }, fixed: false }
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/a454fccb02df9d361f1201b747c01257f58a8b37/library/std/src/panicking.rs:698:5
1: core::panicking::panic_fmt
at /rustc/a454fccb02df9d361f1201b747c01257f58a8b37/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
at /rustc/a454fccb02df9d361f1201b747c01257f58a8b37/library/core/src/panicking.rs:434:23
3: core::panicking::assert_failed
at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:394:5
4: oxc_linter::Linter::run::{{closure}}
at ./oxc-main/crates/oxc_linter/src/lib.rs:280:25
5: oxc_linter::context::host::ContextHost::get_diagnostics
at ./oxc-main/crates/oxc_linter/src/context/host.rs:347:9
6: oxc_linter::Linter::run
at ./oxc-main/crates/oxc_linter/src/lib.rs:267:26
7: oxc_linter::service::runtime::Runtime::run::{{closure}}::{{closure}}::{{closure}}
at ./oxc-main/crates/oxc_linter/src/service/runtime.rs:637:50
8: oxc_linter::service::runtime::ModuleContent::with_dependent_mut
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/self_cell-1.2.0/src/lib.rs:384:13
9: oxc_linter::service::runtime::Runtime::run::{{closure}}::{{closure}}
at ./oxc-main/crates/oxc_linter/src/service/runtime.rs:594:40
10: oxc_linter::service::runtime::Runtime::resolve_modules::{{closure}}
at ./oxc-main/crates/oxc_linter/src/service/runtime.rs:585:21
11: rayon_core::scope::Scope::spawn::{{closure}}::{{closure}}
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/scope/mod.rs:531:57
12: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:274:9
13: std::panicking::catch_unwind::do_call
at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:590:40
14: __rust_try
15: std::panicking::catch_unwind
at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:553:19
16: std::panic::catch_unwind
at /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
17: rayon_core::unwind::halt_unwinding
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/unwind.rs:17:5
18: rayon_core::scope::ScopeBase::execute_job_closure
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/scope/mod.rs:693:28
19: rayon_core::scope::ScopeBase::execute_job
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/scope/mod.rs:683:29
20: rayon_core::scope::Scope::spawn::{{closure}}
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/scope/mod.rs:531:13
21: <rayon_core::job::HeapJob<BODY> as rayon_core::job::Job>::execute
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/job.rs:169:9
22: rayon_core::job::JobRef::execute
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/job.rs:64:9
23: rayon_core::registry::WorkerThread::execute
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:866:13
24: rayon_core::registry::WorkerThread::wait_until_cold
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:800:26
25: rayon_core::registry::WorkerThread::wait_until
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:775:18
26: rayon_core::registry::WorkerThread::wait_until_out_of_work
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:824:14
27: rayon_core::registry::main_loop
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:929:19
28: rayon_core::registry::ThreadBuilder::run
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:50:18
29: <rayon_core::registry::DefaultSpawn as rayon_core::registry::ThreadSpawn>::spawn::{{closure}}
at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rayon-core-1.13.0/src/registry.rs:95:27
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Rayon: detected unexpected panic; aborting
##### Automatic Fuzzer note, output status "None", output signal "Some(6)"