[INFO] cloning repository https://github.com/1714080902120/auto_gen_d_ts [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/1714080902120/auto_gen_d_ts" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1714080902120%2Fauto_gen_d_ts", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1714080902120%2Fauto_gen_d_ts'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf537c4134f064388466eccec2e2e1808c5f5d61 [INFO] checking 1714080902120/auto_gen_d_ts/bf537c4134f064388466eccec2e2e1808c5f5d61 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1714080902120%2Fauto_gen_d_ts" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/1714080902120/auto_gen_d_ts on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/1714080902120/auto_gen_d_ts [INFO] finished tweaking git repo https://github.com/1714080902120/auto_gen_d_ts [INFO] tweaked toml for git repo https://github.com/1714080902120/auto_gen_d_ts written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/1714080902120/auto_gen_d_ts 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2195ffb04260de4de1ebddd627adf9bebb5244c2c6cb358cef9c2f937affca2 [INFO] running `Command { std: "docker" "start" "-a" "e2195ffb04260de4de1ebddd627adf9bebb5244c2c6cb358cef9c2f937affca2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2195ffb04260de4de1ebddd627adf9bebb5244c2c6cb358cef9c2f937affca2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2195ffb04260de4de1ebddd627adf9bebb5244c2c6cb358cef9c2f937affca2", kill_on_drop: false }` [INFO] [stdout] e2195ffb04260de4de1ebddd627adf9bebb5244c2c6cb358cef9c2f937affca2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02d9f24f62c21012ce276836a54fce6d79c30ab890fd932ed459b0d529f144bb [INFO] running `Command { std: "docker" "start" "-a" "02d9f24f62c21012ce276836a54fce6d79c30ab890fd932ed459b0d529f144bb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking outref v0.1.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking simd-abstraction v0.7.1 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking base64-simd v0.7.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking unicode-id-start v1.1.2 [INFO] [stderr] Checking if_chain v1.0.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking unicode-id v0.3.4 [INFO] [stderr] Checking better_scoped_tls v0.1.1 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling swc_macros_common v0.3.10 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking pathdiff v0.2.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking ryu-js v1.0.1 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Checking path-clean v0.1.0 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Compiling swc_visit_macros v0.5.11 [INFO] [stderr] Compiling from_variant v0.1.7 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling ast_node v0.9.7 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.3 [INFO] [stderr] Compiling is-macro v0.3.5 [INFO] [stderr] Compiling string_enum v0.4.3 [INFO] [stderr] Compiling swc_ecma_transforms_macros v0.5.4 [INFO] [stderr] Compiling swc_trace_macro v0.1.3 [INFO] [stderr] Compiling swc_config_macro v0.1.3 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking swc_timer v0.21.21 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking swc_visit v0.5.13 [INFO] [stderr] Compiling static-map-macro v0.3.3 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.5 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking unicode-linebreak v0.1.5 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking is_ci v1.2.0 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking smawk v0.3.2 [INFO] [stderr] Checking supports-color v1.3.1 [INFO] [stderr] Checking textwrap v0.15.2 [INFO] [stderr] Checking st-map v0.2.3 [INFO] [stderr] Compiling miette-derive v4.7.1 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking supports-unicode v1.0.2 [INFO] [stderr] Checking supports-hyperlinks v1.2.0 [INFO] [stderr] Checking terminal_size v0.1.17 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking radix_fmt v1.0.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling auto_impl v1.2.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Checking miette v4.7.1 [INFO] [stderr] Checking rustls-pki-types v1.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking fastrand v2.0.2 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking triomphe v0.1.11 [INFO] [stderr] Checking debugid v0.8.0 [INFO] [stderr] Checking hstr v0.2.10 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking swc_atoms v0.6.7 [INFO] [stderr] Checking swc_cached v0.3.20 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking string_cache v0.8.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking sourcemap v8.0.1 [INFO] [stderr] Checking jsonc-parser v0.21.1 [INFO] [stderr] Checking lru v0.10.1 [INFO] [stderr] Checking swc_config v0.1.12 [INFO] [stderr] Compiling browserslist-rs v0.15.0 [INFO] [stderr] Checking swc_common v0.33.25 [INFO] [stderr] Checking swc_ecma_ast v0.112.8 [INFO] [stderr] Checking swc_fast_graph v0.21.21 [INFO] [stderr] Checking swc_ecma_loader v0.45.27 [INFO] [stderr] Checking swc_error_reporters v0.17.19 [INFO] [stderr] Checking swc_node_comments v0.20.19 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking swc_ecma_visit v0.98.7 [INFO] [stderr] Checking swc_ecma_parser v0.143.16 [INFO] [stderr] Checking swc_ecma_codegen v0.148.17 [INFO] [stderr] Checking reqwest v0.12.3 [INFO] [stderr] Checking preset_env_base v0.4.12 [INFO] [stderr] Checking swc_ecma_utils v0.127.20 [INFO] [stderr] Checking swc_ecma_transforms_base v0.137.21 [INFO] [stderr] Checking swc_ecma_compat_common v0.4.13 [INFO] [stderr] Checking swc_ecma_usage_analyzer v0.23.14 [INFO] [stderr] Checking swc_ecma_ext_transforms v0.113.14 [INFO] [stderr] Checking swc_ecma_lints v0.92.21 [INFO] [stderr] Checking swc_ecma_transforms_classes v0.126.16 [INFO] [stderr] Checking swc_ecma_transforms_optimization v0.198.22 [INFO] [stderr] Checking swc_ecma_compat_es2017 v0.4.17 [INFO] [stderr] Checking swc_ecma_compat_es2021 v0.4.16 [INFO] [stderr] Checking swc_ecma_transforms_react v0.183.19 [INFO] [stderr] Checking swc_ecma_compat_es2016 v0.4.16 [INFO] [stderr] Checking swc_ecma_compat_es2019 v0.4.16 [INFO] [stderr] Checking swc_ecma_compat_es3 v0.4.16 [INFO] [stderr] Checking swc_ecma_compat_es2018 v0.4.17 [INFO] [stderr] Checking swc_ecma_compat_es2022 v0.4.17 [INFO] [stderr] Checking swc_ecma_compat_es2015 v0.4.20 [INFO] [stderr] Checking swc_ecma_transforms_proposal v0.171.23 [INFO] [stderr] Checking swc_ecma_transforms_module v0.180.19 [INFO] [stderr] Checking swc_ecma_transforms_typescript v0.188.19 [INFO] [stderr] Checking swc_ecma_compat_es2020 v0.4.17 [INFO] [stderr] Checking swc_ecma_minifier v0.192.23 [INFO] [stderr] Checking swc_ecma_compat_bugfixes v0.4.18 [INFO] [stderr] Checking swc_ecma_transforms_compat v0.163.19 [INFO] [stderr] Checking swc_ecma_transforms v0.229.18 [INFO] [stderr] Checking swc_ecma_preset_env v0.206.18 [INFO] [stderr] Checking swc_compiler_base v0.7.20 [INFO] [stderr] Checking swc v0.273.27 [INFO] [stderr] Checking rust_auto_gen_d_ts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `File` and `OpenOptions` [INFO] [stdout] --> src/args/mod.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{canonicalize, File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `BufWriter` [INFO] [stdout] --> src/args/mod.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/args/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{env, fs}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/compile/parse.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mark` [INFO] [stdout] --> src/compile/parse.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use swc_common::{Mark, GLOBALS}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_preset_env::preset_env` [INFO] [stdout] --> src/compile/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use swc_ecma_preset_env::preset_env; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_transforms_base::resolver` [INFO] [stdout] --> src/compile/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use swc_ecma_transforms_base::resolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_visit::FoldWith` [INFO] [stdout] --> src/compile/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use swc_ecma_visit::FoldWith; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncRead`, `ReadBuf`, `ReadDir`, and `self` [INFO] [stdout] --> src/file_io/read.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | fs::{self, ReadDir}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 4 | io::{self, AsyncRead, AsyncReadExt, ReadBuf}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/file_io/write.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File` and `OpenOptions` [INFO] [stdout] --> src/args/mod.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{canonicalize, File, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `BufWriter` [INFO] [stdout] --> src/args/mod.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/args/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{env, fs}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/compile/parse.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mark` [INFO] [stdout] --> src/compile/parse.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use swc_common::{Mark, GLOBALS}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_preset_env::preset_env` [INFO] [stdout] --> src/compile/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use swc_ecma_preset_env::preset_env; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_transforms_base::resolver` [INFO] [stdout] --> src/compile/parse.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use swc_ecma_transforms_base::resolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_visit::FoldWith` [INFO] [stdout] --> src/compile/parse.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use swc_ecma_visit::FoldWith; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `swc_ecma_ast::*` [INFO] [stdout] --> src/compile/parse.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use swc_ecma_ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncRead`, `ReadBuf`, `ReadDir`, and `self` [INFO] [stdout] --> src/file_io/read.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | fs::{self, ReadDir}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 4 | io::{self, AsyncRead, AsyncReadExt, ReadBuf}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/file_io/read.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/file_io/write.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/args/mod.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/file_io/write.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compile/transform.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn visit_ast(mut module: Module, source_code: &str) -> (Module, Vec>) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::str::::trim_end_matches` that must be used [INFO] [stdout] --> src/args/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | path.trim_end_matches('\n'); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the trimmed string as a new slice, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = path.trim_end_matches('\n'); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compile/parse.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 20 | let source_map = Lrc::new(SourceMap::default()); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | [INFO] [stdout] 22 | let handler = Handler::with_emitter( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | let fm = source_map.new_source_file(FileName::Custom(file_name.into()), code.into()); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | [INFO] [stdout] 35 | let lexer = Lexer::new( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | let capturing = Capturing::new(lexer); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 43 | [INFO] [stdout] 44 | let mut parser = Parser::new_from(capturing); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 50 | / parser [INFO] [stdout] 51 | | .parse_module() [INFO] [stdout] 52 | | .map_err(|e| e.into_diagnostic(&handler).emit()) [INFO] [stdout] 53 | | .expect("Failed to parse module."), [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compile/parse.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 20 | let source_map = Lrc::new(SourceMap::default()); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | [INFO] [stdout] 22 | let handler = Handler::with_emitter( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | let fm = source_map.new_source_file(FileName::Custom(file_name.into()), code.into()); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | [INFO] [stdout] 35 | let lexer = Lexer::new( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | let capturing = Capturing::new(lexer); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 43 | [INFO] [stdout] 44 | let mut parser = Parser::new_from(capturing); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | / source_map [INFO] [stdout] 55 | | .get_source_file(&FileName::Custom(file_name.into())) [INFO] [stdout] 56 | | .expect(&format!("获取源代码失败{}", &file_name)) [INFO] [stdout] 57 | | .src [INFO] [stdout] 58 | | .clone(), [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compile/parse.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | .map_err(|e| e.into_diagnostic(&handler).emit()) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/file_io/read.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | recur_dir(String::new(), deep, path, &mut dirs, &mut contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 113 | let _ = recur_dir(String::new(), deep, path, &mut dirs, &mut contents); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_auto_gen_d_ts` (bin "rust_auto_gen_d_ts") due to 4 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/args/mod.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/file_io/write.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir` [INFO] [stdout] --> src/args/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let temp_dir = fs::create_dir_all("/tmp/test_dir").await.unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/compile/parse.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let module = parse_js_2_ast(file_name, &mut code); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compile/transform.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn visit_ast(mut module: Module, source_code: &str) -> (Module, Vec>) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compile/transform.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut parse_res = parse_js_2_ast(file_name, &mut code); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/compile/transform.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let module = visit_ast(parse_res.0, &parse_res.1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/file_io/write.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let res = generate_dts_files( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::str::::trim_end_matches` that must be used [INFO] [stdout] --> src/args/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | path.trim_end_matches('\n'); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the trimmed string as a new slice, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = path.trim_end_matches('\n'); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compile/parse.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 20 | let source_map = Lrc::new(SourceMap::default()); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | [INFO] [stdout] 22 | let handler = Handler::with_emitter( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | let fm = source_map.new_source_file(FileName::Custom(file_name.into()), code.into()); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | [INFO] [stdout] 35 | let lexer = Lexer::new( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | let capturing = Capturing::new(lexer); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 43 | [INFO] [stdout] 44 | let mut parser = Parser::new_from(capturing); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 50 | / parser [INFO] [stdout] 51 | | .parse_module() [INFO] [stdout] 52 | | .map_err(|e| e.into_diagnostic(&handler).emit()) [INFO] [stdout] 53 | | .expect("Failed to parse module."), [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compile/parse.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 20 | let source_map = Lrc::new(SourceMap::default()); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | [INFO] [stdout] 22 | let handler = Handler::with_emitter( [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | let fm = source_map.new_source_file(FileName::Custom(file_name.into()), code.into()); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | [INFO] [stdout] 35 | let lexer = Lexer::new( [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | let capturing = Capturing::new(lexer); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 43 | [INFO] [stdout] 44 | let mut parser = Parser::new_from(capturing); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | / source_map [INFO] [stdout] 55 | | .get_source_file(&FileName::Custom(file_name.into())) [INFO] [stdout] 56 | | .expect(&format!("获取源代码失败{}", &file_name)) [INFO] [stdout] 57 | | .src [INFO] [stdout] 58 | | .clone(), [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compile/parse.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | .map_err(|e| e.into_diagnostic(&handler).emit()) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/file_io/read.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | recur_dir(String::new(), deep, path, &mut dirs, &mut contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 113 | let _ = recur_dir(String::new(), deep, path, &mut dirs, &mut contents); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_auto_gen_d_ts` (bin "rust_auto_gen_d_ts" test) due to 4 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "02d9f24f62c21012ce276836a54fce6d79c30ab890fd932ed459b0d529f144bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02d9f24f62c21012ce276836a54fce6d79c30ab890fd932ed459b0d529f144bb", kill_on_drop: false }` [INFO] [stdout] 02d9f24f62c21012ce276836a54fce6d79c30ab890fd932ed459b0d529f144bb