[INFO] fetching crate swc_ecma_minifier 0.208.0... [INFO] checking swc_ecma_minifier-0.208.0 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate swc_ecma_minifier 0.208.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate swc_ecma_minifier 0.208.0 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate swc_ecma_minifier 0.208.0 [INFO] finished tweaking crates.io crate swc_ecma_minifier 0.208.0 [INFO] tweaked toml for crates.io crate swc_ecma_minifier 0.208.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate swc_ecma_minifier 0.208.0 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edccfe2ef9088545410fecc2c7118e9ed723ce4b025ec8327d5dca340e27ab4d [INFO] running `Command { std: "docker" "start" "-a" "edccfe2ef9088545410fecc2c7118e9ed723ce4b025ec8327d5dca340e27ab4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edccfe2ef9088545410fecc2c7118e9ed723ce4b025ec8327d5dca340e27ab4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edccfe2ef9088545410fecc2c7118e9ed723ce4b025ec8327d5dca340e27ab4d", kill_on_drop: false }` [INFO] [stdout] edccfe2ef9088545410fecc2c7118e9ed723ce4b025ec8327d5dca340e27ab4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d699a05e8c2c5722075104726620db874553ba0b451ca57e446ff733dec40177 [INFO] running `Command { std: "docker" "start" "-a" "d699a05e8c2c5722075104726620db874553ba0b451ca57e446ff733dec40177", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Checking better_scoped_tls v0.1.1 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking unicode-id-start v1.2.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking swc_visit v0.6.2 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking outref v0.1.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking ryu-js v1.0.0 [INFO] [stderr] Checking smawk v0.3.2 [INFO] [stderr] Checking simd-abstraction v0.7.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Checking unicode-linebreak v0.1.5 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Checking unicode-id v0.3.4 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking base64-simd v0.7.0 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking if_chain v1.0.2 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking owo-colors v4.0.0 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking clap_builder v4.5.9 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Compiling tikv-jemalloc-sys v0.5.4+5.3.0-patched [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling relative-path v1.9.2 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking cpufeatures v0.2.13 [INFO] [stderr] Checking radix_fmt v1.0.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking clap v4.5.9 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Checking ptr_meta v0.1.4 [INFO] [stderr] Compiling swc_macros_common v0.3.13 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Compiling ast_node v1.0.0 [INFO] [stderr] Compiling from_variant v1.0.0 [INFO] [stderr] Compiling is-macro v0.3.6 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling miette-derive v7.2.0 [INFO] [stderr] Compiling swc_ecma_transforms_macros v0.5.5 [INFO] [stderr] Compiling swc_config_macro v0.1.4 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.7 [INFO] [stderr] Compiling testing_macros v0.2.14 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking swc_timer v0.27.0 [INFO] [stderr] Checking miette v7.2.0 [INFO] [stderr] Checking triomphe v0.1.13 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking debugid v0.8.0 [INFO] [stderr] Checking cargo-platform v0.1.8 [INFO] [stderr] Checking swc_cached v0.3.20 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking hstr v0.2.12 [INFO] [stderr] Checking swc_allocator v0.1.8 [INFO] [stderr] Checking swc_atoms v1.0.0 [INFO] [stderr] Checking sourcemap v9.0.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking cargo_metadata v0.18.1 [INFO] [stderr] Checking codspeed v2.6.0 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking swc_common v0.40.0 [INFO] [stderr] Checking swc_config v0.1.15 [INFO] [stderr] Checking swc_ecma_ast v0.121.0 [INFO] [stderr] Checking swc_fast_graph v1.0.0 [INFO] [stderr] Checking swc_error_reporters v1.0.0 [INFO] [stderr] Checking codspeed-criterion-compat v2.6.0 [INFO] [stderr] Checking testing v0.42.0 [INFO] [stderr] Checking swc_ecma_testing v0.29.0 [INFO] [stderr] Checking swc_ecma_visit v0.107.0 [INFO] [stderr] Checking swc_ecma_parser v0.152.0 [INFO] [stderr] Checking swc_ecma_codegen v0.158.0 [INFO] [stderr] Checking swc_ecma_utils v0.137.0 [INFO] [stderr] Checking swc_ecma_usage_analyzer v0.33.0 [INFO] [stderr] Checking swc_ecma_transforms_base v0.149.0 [INFO] [stderr] Checking swc_ecma_transforms_optimization v0.212.0 [INFO] [stderr] Checking swc_ecma_minifier v0.208.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `swc_ecma_ast::BlockStmt` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compress/optimize/if_return.rs:427:25 [INFO] [stdout] | [INFO] [stdout] 424 | fn merge_if_returns_to(&mut self, stmt: Stmt, mut exprs: Vec>) -> Expr { [INFO] [stdout] | ---- --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 427 | Stmt::Block(s) => { [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: this value of type `(JsWord, SyntaxContext)` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compress/optimize/inline.rs:568:50 [INFO] [stdout] | [INFO] [stdout] 559 | let i = match &*decl { [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 568 | if let Some(usage) = self.data.vars.get(&i.to_id()) { [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: this value of type `(JsWord, SyntaxContext)` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compress/optimize/inline.rs:624:50 [INFO] [stdout] | [INFO] [stdout] 584 | let i = match &*decl { [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 624 | if let Some(usage) = self.data.vars.get(&i.to_id()) { [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: this value of type `Box` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/compress/pure/member_expr.rs:546:44 [INFO] [stdout] | [INFO] [stdout] 545 | props.drain(..).map(|x| match x { [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 546 | PropOrSpread::Prop(prop) => match *prop { [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: this value of type `swc_ecma_ast::Module` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/unit.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 50 | let _noop_sub = [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | &self [INFO] [stdout] | ______________^ [INFO] [stdout] 55 | | .clone() [INFO] [stdout] 56 | | .fold_with(&mut fixer(None)) [INFO] [stdout] 57 | | .fold_with(&mut hygiene()) [INFO] [stdout] 58 | | .fold_with(&mut as_folder(DropSpan {})), [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: this value of type `swc_ecma_ast::Script` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/unit.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 79 | let _noop_sub = [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 83 | &self [INFO] [stdout] | ______________^ [INFO] [stdout] 84 | | .clone() [INFO] [stdout] 85 | | .fold_with(&mut fixer(None)) [INFO] [stdout] 86 | | .fold_with(&mut hygiene()) [INFO] [stdout] 87 | | .fold_with(&mut as_folder(DropSpan {})), [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: this value of type `swc_ecma_ast::FnExpr` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/util/unit.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 108 | let _noop_sub = [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 112 | &self [INFO] [stdout] | ______________^ [INFO] [stdout] 113 | | .clone() [INFO] [stdout] 114 | | .fold_with(&mut fixer(None)) [INFO] [stdout] 115 | | .fold_with(&mut hygiene()) [INFO] [stdout] 116 | | .fold_with(&mut as_folder(DropSpan {})), [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: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `swc_ecma_minifier` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "d699a05e8c2c5722075104726620db874553ba0b451ca57e446ff733dec40177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d699a05e8c2c5722075104726620db874553ba0b451ca57e446ff733dec40177", kill_on_drop: false }` [INFO] [stdout] d699a05e8c2c5722075104726620db874553ba0b451ca57e446ff733dec40177