[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 master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangmingyuan666%2Fasync_import_plugin" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhangmingyuan666/async_import_plugin on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/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-3-tc1/source/Cargo.toml [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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded testing v0.35.25 [INFO] [stderr] Downloaded swc_macros_common v0.3.13 [INFO] [stderr] Downloaded supports-unicode v1.0.2 [INFO] [stderr] Downloaded relative-path v1.9.3 [INFO] [stderr] Downloaded swc_trace_macro v0.1.3 [INFO] [stderr] Downloaded swc_visit_macros v0.5.13 [INFO] [stderr] Downloaded cargo_metadata v0.18.1 [INFO] [stderr] Downloaded cargo-platform v0.1.8 [INFO] [stderr] Downloaded supports-hyperlinks v1.2.0 [INFO] [stderr] Downloaded pretty_assertions v1.4.0 [INFO] [stderr] Downloaded dashmap v5.5.3 [INFO] [stderr] Downloaded smartstring v1.0.1 [INFO] [stderr] Downloaded siphasher v0.3.11 [INFO] [stderr] Downloaded ryu-js v1.0.1 [INFO] [stderr] Downloaded swc_ecma_transforms_base v0.138.4 [INFO] [stderr] Downloaded swc_ecma_parser v0.144.3 [INFO] [stderr] Downloaded difference v2.0.0 [INFO] [stderr] Downloaded cc v1.1.10 [INFO] [stderr] Downloaded serde v1.0.205 [INFO] [stderr] Downloaded is-macro v0.3.6 [INFO] [stderr] Downloaded swc_ecma_visit v0.99.1 [INFO] [stderr] Downloaded yansi v0.5.1 [INFO] [stderr] Downloaded phf_macros v0.11.2 [INFO] [stderr] Downloaded swc_atoms v0.6.7 [INFO] [stderr] Downloaded swc_cached v0.3.20 [INFO] [stderr] Downloaded swc_plugin v0.90.2 [INFO] [stderr] Downloaded swc_plugin_proxy v0.42.1 [INFO] [stderr] Downloaded swc_ecma_codegen_macros v0.7.7 [INFO] [stderr] Downloaded swc_ecma_codegen v0.149.3 [INFO] [stderr] Downloaded swc_ecma_testing v0.22.23 [INFO] [stderr] Downloaded psm v0.1.21 [INFO] [stderr] Downloaded stacker v0.1.15 [INFO] [stderr] Downloaded unicode-id v0.3.4 [INFO] [stderr] Downloaded swc_ecma_utils v0.128.3 [INFO] [stderr] Downloaded string_enum v0.4.4 [INFO] [stderr] Downloaded swc_plugin_macro v0.9.16 [INFO] [stderr] Downloaded camino v1.1.7 [INFO] [stderr] Downloaded cargo_metadata v0.15.4 [INFO] [stderr] Downloaded object v0.36.3 [INFO] [stderr] Downloaded terminal_size v0.1.17 [INFO] [stderr] Downloaded outref v0.1.0 [INFO] [stderr] Downloaded owo-colors v3.5.0 [INFO] [stderr] Downloaded textwrap v0.15.2 [INFO] [stderr] Downloaded num-bigint v0.4.6 [INFO] [stderr] Downloaded sourcemap v8.0.1 [INFO] [stderr] Downloaded phf_generator v0.11.2 [INFO] [stderr] Downloaded hstr v0.2.12 [INFO] [stderr] Downloaded smawk v0.3.2 [INFO] [stderr] Downloaded miette v4.7.1 [INFO] [stderr] Downloaded from_variant v0.1.9 [INFO] [stderr] Downloaded debugid v0.8.0 [INFO] [stderr] Downloaded serde_json v1.0.124 [INFO] [stderr] Downloaded unicode-id-start v1.2.0 [INFO] [stderr] Downloaded phf v0.11.2 [INFO] [stderr] Downloaded serde_derive v1.0.205 [INFO] [stderr] Downloaded semver v1.0.23 [INFO] [stderr] Downloaded diff v0.1.13 [INFO] [stderr] Downloaded miette-derive v4.7.1 [INFO] [stderr] Downloaded is_ci v1.2.0 [INFO] [stderr] Downloaded supports-color v1.3.1 [INFO] [stderr] Downloaded simd-abstraction v0.7.1 [INFO] [stderr] Downloaded swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Downloaded swc_common v0.33.26 [INFO] [stderr] Downloaded swc_core v0.91.4 [INFO] [stderr] Downloaded swc_ecma_transforms_testing v0.141.1 [INFO] [stderr] Downloaded vergen v8.3.2 [INFO] [stderr] Downloaded hermit-abi v0.1.19 [INFO] [stderr] Downloaded if_chain v1.0.2 [INFO] [stderr] Downloaded swc_error_reporters v0.17.20 [INFO] [stderr] Downloaded cpufeatures v0.2.13 [INFO] [stderr] Downloaded typed-arena v2.0.2 [INFO] [stderr] Downloaded ast_node v0.9.9 [INFO] [stderr] Downloaded better_scoped_tls v0.1.1 [INFO] [stderr] Downloaded base64-simd v0.7.0 [INFO] [stderr] Downloaded new_debug_unreachable v1.0.6 [INFO] [stderr] Downloaded phf_shared v0.11.2 [INFO] [stderr] Downloaded triomphe v0.1.13 [INFO] [stderr] Downloaded Inflector v0.11.4 [INFO] [stderr] Downloaded testing_macros v0.2.14 [INFO] [stderr] Downloaded swc_visit v0.5.14 [INFO] [stderr] Downloaded swc_ecma_ast v0.113.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bdbe79eddc3a0b7bbb750de6fc8ee23d15304fc6c9ac28c56a5b0d674c49547 [INFO] running `Command { std: "docker" "start" "-a" "4bdbe79eddc3a0b7bbb750de6fc8ee23d15304fc6c9ac28c56a5b0d674c49547", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bdbe79eddc3a0b7bbb750de6fc8ee23d15304fc6c9ac28c56a5b0d674c49547", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bdbe79eddc3a0b7bbb750de6fc8ee23d15304fc6c9ac28c56a5b0d674c49547", kill_on_drop: false }` [INFO] [stdout] 4bdbe79eddc3a0b7bbb750de6fc8ee23d15304fc6c9ac28c56a5b0d674c49547 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9f0e5e628a4fae2384d08e9efe2913dc75684486125c29b591b6125b944e077 [INFO] running `Command { std: "docker" "start" "-a" "c9f0e5e628a4fae2384d08e9efe2913dc75684486125c29b591b6125b944e077", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling serde v1.0.205 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_json v1.0.124 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling bytecheck v0.6.12 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling rend v0.4.2 [INFO] [stderr] Compiling simdutf8 v0.1.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling rkyv v0.7.44 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling outref v0.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling simd-abstraction v0.7.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling base64-simd v0.7.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling unicode-id-start v1.2.0 [INFO] [stderr] Compiling better_scoped_tls v0.1.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling camino v1.1.7 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling object v0.36.3 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling is_ci v1.2.0 [INFO] [stderr] Compiling smawk v0.3.2 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling supports-color v1.3.1 [INFO] [stderr] Compiling textwrap v0.15.2 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling supports-hyperlinks v1.2.0 [INFO] [stderr] Compiling supports-unicode v1.0.2 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling vergen v8.3.2 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling pretty_assertions v1.4.0 [INFO] [stderr] Compiling indexmap v2.3.0 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling ryu-js v1.0.1 [INFO] [stderr] Compiling cpufeatures v0.2.13 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling unicode-id v0.3.4 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling swc_plugin v0.90.2 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling swc_macros_common v0.3.13 [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 miette-derive v4.7.1 [INFO] [stderr] Compiling ptr_meta v0.1.4 [INFO] [stderr] Compiling Inflector v0.11.4 [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 from_variant v0.1.9 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Compiling ast_node v0.9.9 [INFO] [stderr] Compiling swc_visit_macros v0.5.13 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling is-macro v0.3.6 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Compiling testing_macros v0.2.14 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.7 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling swc_trace_macro v0.1.3 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling swc_plugin_macro v0.9.16 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling miette v4.7.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling swc_visit v0.5.14 [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 cargo_metadata v0.18.1 [INFO] [stderr] Compiling sourcemap v8.0.1 [INFO] [stderr] Compiling cargo_metadata v0.15.4 [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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v` is never read [INFO] [stdout] --> src/lib.rs:116:45 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_value` is never read [INFO] [stdout] --> src/lib.rs:160:61 [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)]` 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)]` 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)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.07s [INFO] running `Command { std: "docker" "inspect" "c9f0e5e628a4fae2384d08e9efe2913dc75684486125c29b591b6125b944e077", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9f0e5e628a4fae2384d08e9efe2913dc75684486125c29b591b6125b944e077", kill_on_drop: false }` [INFO] [stdout] c9f0e5e628a4fae2384d08e9efe2913dc75684486125c29b591b6125b944e077 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e867d49045e72e7f3ca370d37083ba8ef3279750b8068ca4d49bc2e9a90f8758 [INFO] running `Command { std: "docker" "start" "-a" "e867d49045e72e7f3ca370d37083ba8ef3279750b8068ca4d49bc2e9a90f8758", kill_on_drop: false }` [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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v` is never read [INFO] [stdout] --> src/lib.rs:116:45 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_value` is never read [INFO] [stdout] --> src/lib.rs:160:61 [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)]` 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)]` 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)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [stderr] Compiling s1s_async_import_plugin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `FixtureTestConfig` [INFO] [stdout] --> tests/fixture.rs:7:49 [INFO] [stdout] | [INFO] [stdout] 7 | use swc_ecma_transforms_testing::{test_fixture, FixtureTestConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v` is never read [INFO] [stdout] --> src/lib.rs:116:45 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_value` is never read [INFO] [stdout] --> src/lib.rs:160:61 [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)]` 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)]` 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)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "e867d49045e72e7f3ca370d37083ba8ef3279750b8068ca4d49bc2e9a90f8758", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e867d49045e72e7f3ca370d37083ba8ef3279750b8068ca4d49bc2e9a90f8758", kill_on_drop: false }` [INFO] [stdout] e867d49045e72e7f3ca370d37083ba8ef3279750b8068ca4d49bc2e9a90f8758