[INFO] fetching crate cargo-workspace2 0.2.2... [INFO] checking cargo-workspace2-0.2.2 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] extracting crate cargo-workspace2 0.2.2 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate cargo-workspace2 0.2.2 on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cargo-workspace2 0.2.2 [INFO] finished tweaking crates.io crate cargo-workspace2 0.2.2 [INFO] tweaked toml for crates.io crate cargo-workspace2 0.2.2 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate crates.io crate cargo-workspace2 0.2.2 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml_edit v0.1.5 [INFO] [stderr] Downloaded textwrap v0.12.1 [INFO] [stderr] Downloaded libc v0.2.79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b756e5009cabc8da104441366838186a44b81e32f23fcc037c6bfba50d765b3 [INFO] running `Command { std: "docker" "start" "-a" "1b756e5009cabc8da104441366838186a44b81e32f23fcc037c6bfba50d765b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b756e5009cabc8da104441366838186a44b81e32f23fcc037c6bfba50d765b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b756e5009cabc8da104441366838186a44b81e32f23fcc037c6bfba50d765b3", kill_on_drop: false }` [INFO] [stdout] 1b756e5009cabc8da104441366838186a44b81e32f23fcc037c6bfba50d765b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86b0f6eb4d4b6da8c9688a5de17a6df9c9a8aba4a85001fcaf39efed1f534682 [INFO] running `Command { std: "docker" "start" "-a" "86b0f6eb4d4b6da8c9688a5de17a6df9c9a8aba4a85001fcaf39efed1f534682", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking ascii v0.9.3 [INFO] [stderr] Compiling cargo-workspace2 v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking combine v3.8.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking toml_edit v0.1.5 [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/cargo/gen.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{value, Document, Item, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/ops/publish/exec.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | vec.into_iter().for_each(|(id)| { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - vec.into_iter().for_each(|(id)| { [INFO] [stdout] 41 + vec.into_iter().for_each(|id| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assert_bump` [INFO] [stdout] --> src/ops/publish/exec.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | macro_rules! assert_bump { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublishMod as Mod`, `PublishType`, `Publish`, and `versions` [INFO] [stdout] --> src/ops/executor.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{versions, Print, Publish, PublishMod as Mod, PublishType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/executor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/cargo/gen.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{value, Document, Item, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/ops/publish/exec.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | vec.into_iter().for_each(|(id)| { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - vec.into_iter().for_each(|(id)| { [INFO] [stdout] 41 + vec.into_iter().for_each(|id| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublishMod as Mod`, `PublishType`, `Publish`, and `versions` [INFO] [stdout] --> src/ops/executor.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{versions, Print, Publish, PublishMod as Mod, PublishType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/executor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devel` [INFO] [stdout] --> src/ops/publish/exec.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | let Publish { ref tt, devel } = p; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `devel: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devel` [INFO] [stdout] --> src/ops/publish/exec.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | let Publish { ref tt, devel } = p; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `devel: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `new_version` is never read [INFO] [stdout] --> src/models/publish.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PubMutation { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | _crate: CrateId, [INFO] [stdout] 6 | new_version: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `major` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn major(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minor` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn minor(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `patch` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn patch(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_none` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn mod_none() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_alpha` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn mod_alpha() -> PublishMod { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_beta` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn mod_beta() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_rc` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn mod_rc() -> PublishMod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nth` is never used [INFO] [stdout] --> src/cli.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_nth(idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 26 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 36 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 36 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/ops/publish/exec.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | drop(c); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Crate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 21 - drop(c); [INFO] [stdout] 21 + let _ = c; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `new_version` is never read [INFO] [stdout] --> src/models/publish.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PubMutation { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | _crate: CrateId, [INFO] [stdout] 6 | new_version: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `major` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn major(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minor` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn minor(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `patch` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn patch(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_none` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn mod_none() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_alpha` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn mod_alpha() -> PublishMod { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_beta` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn mod_beta() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_rc` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn mod_rc() -> PublishMod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nth` is never used [INFO] [stdout] --> src/cli.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_nth(idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 26 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 36 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 36 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/ops/publish/exec.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | drop(c); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Crate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 21 - drop(c); [INFO] [stdout] 21 + let _ = c; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `args` [INFO] [stdout] --> src/bin/cargo-ws2.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use std::env::{args, current_dir}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `args` [INFO] [stdout] --> src/bin/cargo-ws2.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use std::env::{args, current_dir}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug` [INFO] [stdout] --> src/bin/cargo-ws2.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let CmdSet { debug, line } = cli::parse_env_args(); [INFO] [stdout] | ^^^^^ help: try ignoring the field: `debug: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug` [INFO] [stdout] --> src/bin/cargo-ws2.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let CmdSet { debug, line } = cli::parse_env_args(); [INFO] [stdout] | ^^^^^ help: try ignoring the field: `debug: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.26s [INFO] running `Command { std: "docker" "inspect" "86b0f6eb4d4b6da8c9688a5de17a6df9c9a8aba4a85001fcaf39efed1f534682", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86b0f6eb4d4b6da8c9688a5de17a6df9c9a8aba4a85001fcaf39efed1f534682", kill_on_drop: false }` [INFO] [stdout] 86b0f6eb4d4b6da8c9688a5de17a6df9c9a8aba4a85001fcaf39efed1f534682 [INFO] checking cargo-workspace2-0.2.2 against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] extracting crate cargo-workspace2 0.2.2 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate cargo-workspace2 0.2.2 on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cargo-workspace2 0.2.2 [INFO] finished tweaking crates.io crate cargo-workspace2 0.2.2 [INFO] tweaked toml for crates.io crate cargo-workspace2 0.2.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate cargo-workspace2 0.2.2 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fd27bfbb0a03d49b4ecbe220b9bf9d17d160adabb90fe0bc642e59784a5c873 [INFO] running `Command { std: "docker" "start" "-a" "1fd27bfbb0a03d49b4ecbe220b9bf9d17d160adabb90fe0bc642e59784a5c873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fd27bfbb0a03d49b4ecbe220b9bf9d17d160adabb90fe0bc642e59784a5c873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fd27bfbb0a03d49b4ecbe220b9bf9d17d160adabb90fe0bc642e59784a5c873", kill_on_drop: false }` [INFO] [stdout] 1fd27bfbb0a03d49b4ecbe220b9bf9d17d160adabb90fe0bc642e59784a5c873 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2e8a0d8620ea675e687c58f24a0a99bde4c7114f4a1a3017b13a8a8bcee187a [INFO] running `Command { std: "docker" "start" "-a" "c2e8a0d8620ea675e687c58f24a0a99bde4c7114f4a1a3017b13a8a8bcee187a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking ascii v0.9.3 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling cargo-workspace2 v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking combine v3.8.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking toml_edit v0.1.5 [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/cargo/gen.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{value, Document, Item, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/ops/publish/exec.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | vec.into_iter().for_each(|(id)| { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - vec.into_iter().for_each(|(id)| { [INFO] [stdout] 41 + vec.into_iter().for_each(|id| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `assert_bump` [INFO] [stdout] --> src/ops/publish/exec.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | macro_rules! assert_bump { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublishMod as Mod`, `PublishType`, `Publish`, and `versions` [INFO] [stdout] --> src/ops/executor.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{versions, Print, Publish, PublishMod as Mod, PublishType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/executor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/cargo/gen.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{value, Document, Item, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/ops/publish/exec.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | vec.into_iter().for_each(|(id)| { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - vec.into_iter().for_each(|(id)| { [INFO] [stdout] 41 + vec.into_iter().for_each(|id| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublishMod as Mod`, `PublishType`, `Publish`, and `versions` [INFO] [stdout] --> src/ops/executor.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{versions, Print, Publish, PublishMod as Mod, PublishType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/executor.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `semver::Version` [INFO] [stdout] --> src/ops/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use semver::Version; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devel` [INFO] [stdout] --> src/ops/publish/exec.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | let Publish { ref tt, devel } = p; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `devel: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devel` [INFO] [stdout] --> src/ops/publish/exec.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | let Publish { ref tt, devel } = p; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `devel: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `new_version` is never read [INFO] [stdout] --> src/models/publish.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PubMutation { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | _crate: CrateId, [INFO] [stdout] 6 | new_version: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `major` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn major(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minor` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn minor(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `patch` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn patch(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_none` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn mod_none() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_alpha` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn mod_alpha() -> PublishMod { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_beta` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn mod_beta() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_rc` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn mod_rc() -> PublishMod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nth` is never used [INFO] [stdout] --> src/cli.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_nth(idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 26 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 36 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 36 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [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/models/cargo.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn open(p: impl Into) -> Result { [INFO] [stdout] | --------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 97 | let root_cfg = cargo::parse_root_toml(path.join("Cargo.toml"))?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let m_cfg: Vec<_> = members [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 120 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 121 | | root: path, [INFO] [stdout] 122 | | crates: m_cfg [INFO] [stdout] 123 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 129 | | .collect(), [INFO] [stdout] 130 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [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/models/cargo.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | |name| match cargo::parse_toml(path.join(&name).join("Cargo.toml")) { [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: field `new_version` is never read [INFO] [stdout] --> src/models/publish.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PubMutation { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | _crate: CrateId, [INFO] [stdout] 6 | new_version: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `major` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn major(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minor` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn minor(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `patch` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn patch(_mod: PublishMod) -> PublishType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_none` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn mod_none() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_alpha` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn mod_alpha() -> PublishMod { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/ops/publish/exec.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | drop(c); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Crate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 21 - drop(c); [INFO] [stdout] 21 + let _ = c; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_beta` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn mod_beta() -> PublishMod { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mod_rc` is never used [INFO] [stdout] --> src/ops/publish/mod.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn mod_rc() -> PublishMod { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nth` is never used [INFO] [stdout] --> src/cli.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn get_nth(idx: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 26 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 26 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/models/cargo.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 36 - _ => panic!(format!("Invalid Cargo.toml: {:?}", self.path)), [INFO] [stdout] 36 + _ => panic!("Invalid Cargo.toml: {:?}", self.path), [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/models/cargo.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn open(p: impl Into) -> Result { [INFO] [stdout] | --------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 97 | let root_cfg = cargo::parse_root_toml(path.join("Cargo.toml"))?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let m_cfg: Vec<_> = members [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 120 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 121 | | root: path, [INFO] [stdout] 122 | | crates: m_cfg [INFO] [stdout] 123 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 129 | | .collect(), [INFO] [stdout] 130 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [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/models/cargo.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | |name| match cargo::parse_toml(path.join(&name).join("Cargo.toml")) { [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 2 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/ops/publish/exec.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | drop(c); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Crate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 21 - drop(c); [INFO] [stdout] 21 + let _ = c; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo-workspace2` (lib) due to 3 previous errors; 19 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo-workspace2` (lib test) due to 3 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c2e8a0d8620ea675e687c58f24a0a99bde4c7114f4a1a3017b13a8a8bcee187a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2e8a0d8620ea675e687c58f24a0a99bde4c7114f4a1a3017b13a8a8bcee187a", kill_on_drop: false }` [INFO] [stdout] c2e8a0d8620ea675e687c58f24a0a99bde4c7114f4a1a3017b13a8a8bcee187a