[INFO] cloning repository https://github.com/zhangmingyuan666/async_import_plugin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhangmingyuan666/async_import_plugin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangmingyuan666%2Fasync_import_plugin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangmingyuan666%2Fasync_import_plugin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2206482d8d74c97942d4c06a4a2ea6d805b69ff9 [INFO] building zhangmingyuan666/async_import_plugin against try#23647e694de8d0904848ad068b2e0ec2dd098c37+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangmingyuan666%2Fasync_import_plugin" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config [INFO] started tweaking git repo https://github.com/zhangmingyuan666/async_import_plugin [INFO] finished tweaking git repo https://github.com/zhangmingyuan666/async_import_plugin [INFO] tweaked toml for git repo https://github.com/zhangmingyuan666/async_import_plugin written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zhangmingyuan666/async_import_plugin on toolchain 23647e694de8d0904848ad068b2e0ec2dd098c37 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zhangmingyuan666/async_import_plugin already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 385eca06d36e81fe4d1ec2b9a95964dd2416157fc880abca6b7e1c746fddc0ea [INFO] running `Command { std: "docker" "start" "-a" "385eca06d36e81fe4d1ec2b9a95964dd2416157fc880abca6b7e1c746fddc0ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "385eca06d36e81fe4d1ec2b9a95964dd2416157fc880abca6b7e1c746fddc0ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "385eca06d36e81fe4d1ec2b9a95964dd2416157fc880abca6b7e1c746fddc0ea", kill_on_drop: false }` [INFO] [stdout] 385eca06d36e81fe4d1ec2b9a95964dd2416157fc880abca6b7e1c746fddc0ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+23647e694de8d0904848ad068b2e0ec2dd098c37" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 8489ab98ed895b459c96af2411e5afdc38b43617dbd37129e2f4a2d0cb4bfcde [INFO] running `Command { std: "docker" "start" "-a" "8489ab98ed895b459c96af2411e5afdc38b43617dbd37129e2f4a2d0cb4bfcde", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.205 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling serde_json v1.0.124 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling bytecheck v0.6.12 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling simdutf8 v0.1.4 [INFO] [stderr] Compiling rend v0.4.2 [INFO] [stderr] Compiling outref v0.1.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling rkyv v0.7.44 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling simd-abstraction v0.7.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling base64-simd v0.7.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling unicode-id-start v1.2.0 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling better_scoped_tls v0.1.1 [INFO] [stderr] Compiling camino v1.1.7 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling swc_macros_common v0.3.13 [INFO] [stderr] Compiling object v0.36.3 [INFO] [stderr] Compiling is_ci v1.2.0 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling bytecheck_derive v0.6.12 [INFO] [stderr] Compiling rkyv_derive v0.7.44 [INFO] [stderr] Compiling ptr_meta v0.1.4 [INFO] [stderr] Compiling miette-derive v4.7.1 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling textwrap v0.15.2 [INFO] [stderr] Compiling supports-color v1.3.1 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling supports-unicode v1.0.2 [INFO] [stderr] Compiling supports-hyperlinks v1.2.0 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling vergen v8.3.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.205 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling swc_visit_macros v0.5.13 [INFO] [stderr] Compiling from_variant v0.1.9 [INFO] [stderr] Compiling ast_node v0.9.9 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Compiling is-macro v0.3.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling swc_visit v0.5.14 [INFO] [stderr] Compiling indexmap v2.3.0 [INFO] [stderr] Compiling testing_macros v0.2.14 [INFO] [stderr] Compiling pretty_assertions v1.4.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling errno v0.3.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling miette v4.7.1 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling unicode-id v0.3.4 [INFO] [stderr] Compiling ryu-js v1.0.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling swc_trace_macro v0.1.3 [INFO] [stderr] Compiling swc_plugin_macro v0.9.16 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling swc_plugin v0.90.2 [INFO] [stderr] Compiling triomphe v0.1.13 [INFO] [stderr] Compiling debugid v0.8.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling cargo-platform v0.1.8 [INFO] [stderr] Compiling swc_cached v0.3.20 [INFO] [stderr] Compiling hstr v0.2.12 [INFO] [stderr] Compiling swc_atoms v0.6.7 [INFO] [stderr] Compiling sourcemap v8.0.1 [INFO] [stderr] Compiling cargo_metadata v0.15.4 [INFO] [stderr] Compiling cargo_metadata v0.18.1 [INFO] [stderr] Compiling swc_common v0.33.26 [INFO] [stderr] Compiling swc_core v0.91.4 [INFO] [stderr] Compiling swc_ecma_ast v0.113.2 [INFO] [stderr] Compiling swc_error_reporters v0.17.20 [INFO] [stderr] Compiling testing v0.35.25 [INFO] [stderr] Compiling swc_ecma_testing v0.22.23 [INFO] [stderr] Compiling swc_ecma_visit v0.99.1 [INFO] [stderr] Compiling swc_ecma_parser v0.144.3 [INFO] [stderr] Compiling swc_ecma_codegen v0.149.3 [INFO] [stderr] Compiling swc_plugin_proxy v0.42.1 [INFO] [stderr] Compiling swc_ecma_utils v0.128.3 [INFO] [stderr] Compiling swc_ecma_transforms_base v0.138.4 [INFO] [stderr] Compiling swc_ecma_transforms_testing v0.141.1 [INFO] [stderr] Compiling s1s_async_import_plugin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `FoldWith`, `as_folder`, and `transforms::testing::test_inline` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | transforms::testing::test_inline, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | visit::{as_folder, FoldWith, VisitMut}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BytePos`, `SourceMapperDyn`, `SyntaxContext`, and `plugin::metadata` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | BytePos, SourceMapperDyn, Spanned, DUMMY_SP, Span, SyntaxContext, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 12 | comments::{Comment, CommentKind, Comments}, [INFO] [stdout] 13 | plugin::metadata [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::value` [INFO] [stdout] --> src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use serde::{de::value, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Map`, `from_str`, and `to_string_pretty` [INFO] [stdout] --> src/lib.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | use serde_json::{Value, to_string_pretty, from_str, Map}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | fmt::format, io::{Read, Write}, path::Path, fs::OpenOptions, env, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_common::plugin::metadata` [INFO] [stdout] --> src/shared/structs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use swc_common::plugin::metadata; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FoldWith`, `VisitMut`, `as_folder`, `ast::*`, and `transforms::testing::test_inline` [INFO] [stdout] --> src/shared/structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ast::*, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | transforms::testing::test_inline, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | visit::{as_folder, FoldWith, VisitMut}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BytePos`, `CommentKind`, `Comment`, `DUMMY_SP`, `SourceMapperDyn`, `Span`, and `Spanned` [INFO] [stdout] --> src/shared/structs.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | BytePos, SourceMapperDyn, Spanned, DUMMY_SP, Span, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] 9 | comments::{Comment, CommentKind, Comments} [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PluginCommentsProxy`, `TransformPluginProgramMetadata`, and `plugin_transform` [INFO] [stdout] --> src/shared/structs.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | use swc_core::plugin::{plugin_transform, proxies::{TransformPluginProgramMetadata, PluginCommentsProxy}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/shared/structs.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lib.rs:205:55 [INFO] [stdout] | [INFO] [stdout] 205 | expr: Box::new(Expr::Lit(Lit::Str((Str { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 210 | })))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 205 ~ expr: Box::new(Expr::Lit(Lit::Str(Str { [INFO] [stdout] 206 | // dummy_with_cmt 包含上下文信息的 Dummy Span [INFO] [stdout] ... [INFO] [stdout] 209 | raw: None [INFO] [stdout] 210 ~ } ))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/lib.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | fmt::format, io::{Read, Write}, path::Path, fs::OpenOptions, env, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> src/lib.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v` is never read [INFO] [stdout] --> src/lib.rs:116:68 [INFO] [stdout] | [INFO] [stdout] 116 | ... let mut v: serde_json::Value = Value::Null; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_value` is never read [INFO] [stdout] --> src/lib.rs:160:73 [INFO] [stdout] | [INFO] [stdout] 160 | ... let mut max_value = 0 as i64; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `noSplit` should have a snake case name [INFO] [stdout] --> src/lib.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub noSplit: bool [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `no_split` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | *STD_ONCE_COUNTER.borrow_mut() = Some(Mutex::new(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { STD_ONCE_COUNTER.as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | *JSON_VALUE.borrow_mut() = Some(Mutex::new(Value::Null)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | unsafe { JSON_VALUE.as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noSplit` should have a snake case name [INFO] [stdout] --> src/lib.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let noSplit = config.noSplit; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `no_split` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `jsChunkPos` should have a snake case name [INFO] [stdout] --> src/lib.rs:127:49 [INFO] [stdout] | [INFO] [stdout] 127 | ... if let Some(jsChunkPos) = v.get("jsChunkPos") { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `js_chunk_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noSplitRef` should have a snake case name [INFO] [stdout] --> src/lib.rs:136:53 [INFO] [stdout] | [INFO] [stdout] 136 | ... let noSplitRef = self.noSplit; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `no_split_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:173:53 [INFO] [stdout] | [INFO] [stdout] 173 | ... write!(file, "{}", file_insert_string.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = write!(file, "{}", file_insert_string.as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noSplitRef` should have a snake case name [INFO] [stdout] --> src/lib.rs:179:57 [INFO] [stdout] | [INFO] [stdout] 179 | ... let noSplitRef = self.noSplit; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `no_split_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `noSplit` should have a snake case name [INFO] [stdout] --> src/shared/structs.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub noSplit: bool [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `no_split` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `rust-lld` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "rust-lld" "-flavor" "wasm" "--export" "__get_transform_plugin_core_pkg_diag" "--export" "__transform_plugin_process_impl" "--export" "__alloc" "--export" "__free" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "<17 object files omitted>" "/lib/rustlib/wasm32-wasip1/lib/libpanic_abort-*.rlib" "/opt/rustwide/target/wasm32-wasip1/debug/deps/{libswc_core-bd8aba9edd60a690,libswc_ecma_transforms_testing-d3484f0ae1933b1f,libtempfile-03b6dd4c977d4a40,libfastrand-3bc7f5e4bec8ac5b,librustix-7ea615cf633b472f,liberrno-3565356dbb0a3b02,libswc_ecma_testing-2b8971cfc94dbd64,libhex-85aa986ef279af61,libtesting-476cb7c2234cbbf2,libcargo_metadata-1cb9f2cc19a1bc53,libcargo_platform-223d6810a5c545da,libsemver-2f8696c0c20d20e2,libcamino-5db8977076548d22,libswc_error_reporters-2b62741891244735,libmiette-f971b9084bdd18bd,libtextwrap-90f9979e505ffed1,libunicode_linebreak-6abcaf029b8858d0,libsmawk-ee3d8944251e6603,libterminal_size-24a262f0b95aeb06,libsupports_hyperlinks-96955354f1e53cb7,libsupports_color-456cba658417e6ce,libis_ci-c501c90fc35d2b61,libsupports_unicode-cb5ea424cc0b50a6,libbacktrace-5679d3ce2a29d213,librustc_demangle-e134d0d58a280b5a,libowo_colors-81e6c914cdb797e9,libthiserror-2fe3eed4a609ae81,libtracing_subscriber-b204e8d7fca6f9df,libnu_ansi_term-1d85bf9e9e3cf038,liboverload-12610b1c4a6a027c,libsharded_slab-29830f09a45985f0,liblazy_static-6cae036cc417a885,libmatchers-e2599a25c4395409,libregex_automata-b8864a9bcf93f742,libregex_syntax-4837ff6532a97b47,libthread_local-6d077ee48a08a72c,libtracing_log-1233a8b5fa4ee224,liblog-682f251eab69f755,libregex-0fa640fc08c0de97,libregex_automata-be79d77e60419c84,libaho_corasick-cfb07920134514f4,libregex_syntax-07a481bdeb01e81d,libpretty_assertions-a9c239236022eb65,libdiff-8614b225a7955174,libyansi-4cb2a31baf62e813,libdifference-3f53fb58747bfb5c,libswc_ecma_codegen-8374d168c620ce63,libsha2-739e45cc18a31500,libdigest-4564188162faacc5,libblock_buffer-30c36dfbc2a8b2f8,libcrypto_common-5038f827c08d2ab5,libgeneric_array-4e82bc9a3c5612b1,libtypenum-0fe8d28fad3fc2b1,libbase64-7b14680fd3f3a6df,libansi_term-e6505b9a6cac2ba7,libswc_ecma_transforms_base-6a35ec113a6a95a8,libswc_ecma_parser-a0d19ec47e987c76,libtyped_arena-70816aa6787b7878,libsmartstring-3c638493e14b8181,libstatic_assertions-5a320074c6765347,libswc_ecma_utils-ca24b3c2de4738bd,libryu_js-f9862c0944a60c5b,libnum_cpus-69c5ac27750b546c,liblibc-971c4bde5ba5d62a,libindexmap-59a594d5917383bf,libequivalent-98516aa41a406a97,libswc_ecma_visit-8851fdd5998e3bd1,libswc_plugin_proxy-fa08359dede53550,libswc_ecma_ast-d689373d1dad092e,libbitflags-521d1863d794fb37,libphf-4e599fddcac4ca31,libphf_shared-00d7f401a2f82c56,libswc_common-0164bb90b54bed5c,libatty-3242e974e54baef7,libbetter_scoped_tls-1a73835bef7a1f27,libscoped_tls-9aa51d9dc368cf2f,libunicode_width-0abf0f68269fc7a6,libparking_lot-00a1a9e70ceaa3a1,libparking_lot_core-ab7e1e950bd46fa5,libsmallvec-dd22fcde2487057b,liblock_api-0d2442c8d29856a8,libscopeguard-8bf53ae5771a3088,libsourcemap-df87cf4844a7e07c,libbase64_simd-c7ac7317345a9f0f,libsimd_abstraction-0249462252c9d59c,liboutref-5e0ef89165ca1746,libunicode_id_start-eb13cf6d0e0c8f37,libdata_encoding-813373ce7b390375,libif_chain-36311242d3f324ba,libserde_json-dd94640de0d7549f,libmemchr-9a2f103f6d32a3e4,libitoa-323c19d08fbe6984,libryu-f1913757cc38f137,libbitvec-d81c70c199fd7260,libwyz-26dbc426bff13cec,libtap-4e5e263546b1b0b4,libradium-14a9e348d27a9509,libfunty-24b63539c6f20791,liburl-aa9bf301c080cd9b,libidna-aa5ecb98afb5f4d6,libunicode_normalization-1060444cd72bf857,libtinyvec-d88dba153338e87f,libtinyvec_macros-dddcb2da28b34270,libunicode_bidi-d5259893ecfd256c,libform_urlencoded-a1f00ef252a83975,libpercent_encoding-0902f23ed4a1beb9,libdebugid-4f31d65603c08814,libuuid-3f4863423648459e,libsiphasher-bcaed8f5af22bf9c,libanyhow-b18d3e0417b79d1a,libtracing-13566f46c3222584,libpin_project_lite-31e2d3f271086d5c,libtracing_core-7829155b4408ca22,libtermcolor-8fb4caf4dcc3553a,libnum_bigint-443b12537926ae14,libnum_integer-b1d6c2abb4147bb1,libnum_traits-14c0b589c88d1f7d,libswc_visit-04e6a8cc3f39ea27,libeither-95155757ee7e939e,libswc_plugin-cf7aa404588dd673,libswc_atoms-8d7838e9a82ee0be,librkyv-a095ce76cf8c0286,librend-b418780e08d4cd89,libhashbrown-3c9742c75c72f58f,libahash-74c8795a23be4081,libgetrandom-c8a3aac06f548bf4,libwasi-b9c6bfbff0bef49f,libcfg_if-50b02a9e3502ecf2,libseahash-32667c3ca1ad42db,libbytecheck-a1c776becfde6c8f,libsimdutf8-eaca47b6fb6a1001,libptr_meta-52d321757e8ba3f3,libhstr-994a2c75ded750b4,libhashbrown-895854243e4b35a6,libtriomphe-22e9b1dd637a3b02,libstable_deref_trait-5e25dd7775e0b365,libserde-ecb26b42b613b9b4,librustc_hash-a5d506436d1d3d05,libonce_cell-119600c39ce58a96,libdebug_unreachable-1ef33346e67b87f3}.rlib" "/lib/rustlib/wasm32-wasip1/lib/{libstd-*,libwasi-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*}.rlib" "-l" "c" "/lib/rustlib/wasm32-wasip1/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/opt/rustwide/target/wasm32-wasip1/debug/deps/s1s_async_import_plugin.wasm" "--gc-sections" "--no-entry" "-O0" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/s1s_async_import_plugin.s1s_async_import_plugin.3284f8fb1fbf56f1-cgu.13.rcgu.o: undefined symbol: __set_transform_result [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/s1s_async_import_plugin.s1s_async_import_plugin.3284f8fb1fbf56f1-cgu.13.rcgu.o: undefined symbol: __emit_diagnostics [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/s1s_async_import_plugin.s1s_async_import_plugin.3284f8fb1fbf56f1-cgu.13.rcgu.o: undefined symbol: __set_transform_plugin_core_pkg_diagnostics [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libswc_plugin_proxy-fa08359dede53550.rlib(swc_plugin_proxy-fa08359dede53550.swc_plugin_proxy.819483b7bc5ff72-cgu.1.rcgu.o): undefined symbol: __copy_comment_to_host_env [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libswc_plugin_proxy-fa08359dede53550.rlib(swc_plugin_proxy-fa08359dede53550.swc_plugin_proxy.819483b7bc5ff72-cgu.1.rcgu.o): undefined symbol: __get_transform_plugin_config [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libswc_plugin_proxy-fa08359dede53550.rlib(swc_plugin_proxy-fa08359dede53550.swc_plugin_proxy.819483b7bc5ff72-cgu.1.rcgu.o): undefined symbol: __add_leading_comment_proxy [INFO] [stdout] rust-lld: error: /opt/rustwide/target/wasm32-wasip1/debug/deps/libswc_common-0164bb90b54bed5c.rlib(swc_common-0164bb90b54bed5c.swc_common.14109a1b47d1d998-cgu.10.rcgu.o): undefined symbol: __span_dummy_with_cmt_proxy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `s1s_async_import_plugin` (lib) due to 1 previous error; 26 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8489ab98ed895b459c96af2411e5afdc38b43617dbd37129e2f4a2d0cb4bfcde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8489ab98ed895b459c96af2411e5afdc38b43617dbd37129e2f4a2d0cb4bfcde", kill_on_drop: false }` [INFO] [stdout] 8489ab98ed895b459c96af2411e5afdc38b43617dbd37129e2f4a2d0cb4bfcde