[INFO] fetching crate swc_ecma_minifier 0.208.0... [INFO] checking swc_ecma_minifier-0.208.0 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate swc_ecma_minifier 0.208.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate swc_ecma_minifier 0.208.0 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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-6-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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29bcef0f36eca6e6e5d244bfb424b50ff4e8ec5508b9946cf015f9ff0ee8c11f [INFO] running `Command { std: "docker" "start" "-a" "29bcef0f36eca6e6e5d244bfb424b50ff4e8ec5508b9946cf015f9ff0ee8c11f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29bcef0f36eca6e6e5d244bfb424b50ff4e8ec5508b9946cf015f9ff0ee8c11f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29bcef0f36eca6e6e5d244bfb424b50ff4e8ec5508b9946cf015f9ff0ee8c11f", kill_on_drop: false }` [INFO] [stdout] 29bcef0f36eca6e6e5d244bfb424b50ff4e8ec5508b9946cf015f9ff0ee8c11f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22afe7eb2f81d81a86c07fcfd5a80cb3f8e9413f2688258f68f1c0d9d87ed7e5 [INFO] running `Command { std: "docker" "start" "-a" "22afe7eb2f81d81a86c07fcfd5a80cb3f8e9413f2688258f68f1c0d9d87ed7e5", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Checking swc_visit v0.6.2 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking unicode-id-start v1.2.0 [INFO] [stderr] Checking better_scoped_tls v0.1.1 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking outref v0.1.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking simd-abstraction v0.7.1 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking unicode-id v0.3.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking ryu-js v1.0.0 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking base64-simd v0.7.0 [INFO] [stderr] Checking if_chain v1.0.2 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking owo-colors v4.0.0 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking clap_builder v4.5.9 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Compiling relative-path v1.9.2 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking cpufeatures v0.2.13 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking radix_fmt v1.0.0 [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 petgraph v0.6.5 [INFO] [stderr] Checking clap v4.5.9 [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 phf_macros v0.11.2 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling from_variant v1.0.0 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.4 [INFO] [stderr] Compiling ast_node v1.0.0 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Compiling is-macro v0.3.6 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling miette-derive v7.2.0 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.7 [INFO] [stderr] Compiling testing_macros v0.2.14 [INFO] [stderr] Compiling swc_config_macro v0.1.4 [INFO] [stderr] Compiling swc_ecma_transforms_macros v0.5.5 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking miette v7.2.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking swc_timer v0.27.0 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [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_error_reporters v1.0.0 [INFO] [stderr] Checking swc_fast_graph v1.0.0 [INFO] [stderr] Checking testing v0.42.0 [INFO] [stderr] Checking codspeed-criterion-compat v2.6.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 `Vec` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/option/terser.rs:277:34 [INFO] [stdout] | [INFO] [stdout] 270 | let fm = cm.new_source_file(FileName::Anon.into(), input); [INFO] [stdout] | -- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 277 | &mut Vec::new(), [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 `Vec` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/option/terser.rs:391:30 [INFO] [stdout] | [INFO] [stdout] 384 | let fm = cm.new_source_file(FileName::Anon.into(), input); [INFO] [stdout] | -- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 391 | &mut Vec::new(), [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 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `swc_ecma_minifier` (lib) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "22afe7eb2f81d81a86c07fcfd5a80cb3f8e9413f2688258f68f1c0d9d87ed7e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22afe7eb2f81d81a86c07fcfd5a80cb3f8e9413f2688258f68f1c0d9d87ed7e5", kill_on_drop: false }` [INFO] [stdout] 22afe7eb2f81d81a86c07fcfd5a80cb3f8e9413f2688258f68f1c0d9d87ed7e5