[INFO] fetching crate cargo-nuget 0.1.0... [INFO] checking cargo-nuget-0.1.0 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate cargo-nuget 0.1.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate cargo-nuget 0.1.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 cargo-nuget 0.1.0 [INFO] finished tweaking crates.io crate cargo-nuget 0.1.0 [INFO] tweaked toml for crates.io crate cargo-nuget 0.1.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 50 packages to latest compatible versions [INFO] [stderr] Adding ansi_term v0.9.0 (available: v0.12.1) [INFO] [stderr] Adding bitflags v0.7.0 (available: v2.6.0) [INFO] [stderr] Adding bitflags v0.8.2 (available: v2.6.0) [INFO] [stderr] Adding bzip2 v0.3.3 (available: v0.4.4) [INFO] [stderr] Adding chrono v0.3.0 (available: v0.4.38) [INFO] [stderr] Adding clap v2.21.3 (available: v2.34.0) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding lazy_static v0.2.11 (available: v1.5.0) [INFO] [stderr] Adding log v0.3.9 (available: v0.4.22) [INFO] [stderr] Adding num v0.1.42 (available: v0.4.3) [INFO] [stderr] Adding podio v0.1.7 (available: v0.2.0) [INFO] [stderr] Adding quick-error v1.1.0 (available: v1.2.3) [INFO] [stderr] Adding semver v0.6.0 (available: v1.0.23) [INFO] [stderr] Adding semver-parser v0.7.0 (available: v0.10.2) [INFO] [stderr] Adding serde v0.8.23 (available: v1.0.210) [INFO] [stderr] Adding strsim v0.6.0 (available: v0.11.1) [INFO] [stderr] Adding term v0.4.6 (available: v1.0.0) [INFO] [stderr] Adding term-painter v0.2.4 (available: v0.4.0) [INFO] [stderr] Adding term_size v0.2.3 (available: v0.3.2) [INFO] [stderr] Adding time v0.1.45 (available: v0.3.36) [INFO] [stderr] Adding toml v0.2.1 (available: v0.8.19) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding vec_map v0.7.0 (available: v0.8.2) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] [stderr] Adding winapi v0.2.8 (available: v0.3.9) [INFO] [stderr] Adding xml-rs v0.3.6 (available: v0.8.22) [INFO] [stderr] Adding zip v0.2.8 (available: v2.2.0) [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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 976590814ccc0c947b862d09e12b89edf379c5b2beee8c574393326fa231dda3 [INFO] running `Command { std: "docker" "start" "-a" "976590814ccc0c947b862d09e12b89edf379c5b2beee8c574393326fa231dda3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "976590814ccc0c947b862d09e12b89edf379c5b2beee8c574393326fa231dda3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "976590814ccc0c947b862d09e12b89edf379c5b2beee8c574393326fa231dda3", kill_on_drop: false }` [INFO] [stdout] 976590814ccc0c947b862d09e12b89edf379c5b2beee8c574393326fa231dda3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 4faddb6c6841a8054b6ad03ec3e07a36073734f8caa8cd2e00f511595a954f5d [INFO] running `Command { std: "docker" "start" "-a" "4faddb6c6841a8054b6ad03ec3e07a36073734f8caa8cd2e00f511595a954f5d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking term v0.4.6 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking bitflags v0.8.2 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking strsim v0.6.0 [INFO] [stderr] Checking podio v0.1.7 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking vec_map v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking toml v0.2.1 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking term_size v0.2.3 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking quick-error v1.1.0 [INFO] [stderr] Checking xml-rs v0.3.6 [INFO] [stderr] Checking term-painter v0.2.4 [INFO] [stderr] Checking semver v0.6.0 [INFO] [stderr] Checking msdos_time v0.1.6 [INFO] [stderr] Checking clap v2.21.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking zip v0.2.8 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Checking cargo-nuget v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/nuget/pack.rs:36:52 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pack<'a>(args: NugetPackArgs<'a>) -> Result { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/nuget/pack.rs:36:52 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pack<'a>(args: NugetPackArgs<'a>) -> Result { [INFO] [stdout] | -- lifetime `'a` declared here ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/args.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | static ref TARGET_PATHS: Vec = { [INFO] [stdout] 27 | | let archs = vec![ [INFO] [stdout] 28 | | Arch::x86, [INFO] [stdout] ... | [INFO] [stdout] 45 | | }; [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:31:66 [INFO] [stdout] | [INFO] [stdout] 31 | fn get_command(args: &clap::ArgMatches) -> Option>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn get_command(args: &clap::ArgMatches) -> Option>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | err: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 | err: Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/args.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | static ref TARGET_PATHS: Vec = { [INFO] [stdout] 27 | | let archs = vec![ [INFO] [stdout] 28 | | Arch::x86, [INFO] [stdout] ... | [INFO] [stdout] 45 | | }; [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:31:66 [INFO] [stdout] | [INFO] [stdout] 31 | fn get_command(args: &clap::ArgMatches) -> Option>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn get_command(args: &clap::ArgMatches) -> Option>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | err: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 | err: Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pack.rs:6:50 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cross.rs:6:50 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pack.rs:6:50 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cross.rs:6:50 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub fn call(args: &ArgMatches) -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Result` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/cargo/build/local.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 176 | let result = build_local(args); [INFO] [stdout] | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 180 | r => panic!("{:?}", r), [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 `Result, build::CargoBuildError>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/cargo/build/cross.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 115 | let result = build_cross(args); [INFO] [stdout] | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 119 | r => panic!("{:?}", r), [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 `Result, build::CargoBuildError>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/cargo/build/cross.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 127 | let result = build_cross(args); [INFO] [stdout] | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 131 | r => panic!("{:?}", r), [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 `Result, build::CargoBuildError>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/cargo/build/cross.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 149 | let result = build_cross(args); [INFO] [stdout] | ------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 153 | r => panic!("{:?}", r), [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] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo-nuget` (bin "cargo-nuget" test) due to 5 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4faddb6c6841a8054b6ad03ec3e07a36073734f8caa8cd2e00f511595a954f5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4faddb6c6841a8054b6ad03ec3e07a36073734f8caa8cd2e00f511595a954f5d", kill_on_drop: false }` [INFO] [stdout] 4faddb6c6841a8054b6ad03ec3e07a36073734f8caa8cd2e00f511595a954f5d