[INFO] cloning repository https://github.com/kokihonda/the_money_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kokihonda/the_money_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkokihonda%2Fthe_money_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkokihonda%2Fthe_money_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 77b5ee842b427a0706731a882e48d21245956d81 [INFO] checking kokihonda/the_money_example against master#22572d0994593197593e2a1b7b18d720a9a349a7 for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkokihonda%2Fthe_money_example" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kokihonda/the_money_example on toolchain 22572d0994593197593e2a1b7b18d720a9a349a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kokihonda/the_money_example [INFO] finished tweaking git repo https://github.com/kokihonda/the_money_example [INFO] tweaked toml for git repo https://github.com/kokihonda/the_money_example written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kokihonda/the_money_example 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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2e78c58e171c2166cea7fe246912d6f81f5ec7587674e62cec2318112597964 [INFO] running `Command { std: "docker" "start" "-a" "c2e78c58e171c2166cea7fe246912d6f81f5ec7587674e62cec2318112597964", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2e78c58e171c2166cea7fe246912d6f81f5ec7587674e62cec2318112597964", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2e78c58e171c2166cea7fe246912d6f81f5ec7587674e62cec2318112597964", kill_on_drop: false }` [INFO] [stdout] c2e78c58e171c2166cea7fe246912d6f81f5ec7587674e62cec2318112597964 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] adf393478981b3afbf67f95a4229ca42d43c9f61043fa5c133c05d9d9fd6dc8a [INFO] running `Command { std: "docker" "start" "-a" "adf393478981b3afbf67f95a4229ca42d43c9f61043fa5c133c05d9d9fd6dc8a", kill_on_drop: false }` [INFO] [stderr] Checking the_money_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | augend: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 130 | augend: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | addend: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 131 | addend: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | augend: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 130 | augend: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | addend: Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 131 | addend: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:160:15 [INFO] [stdout] | [INFO] [stdout] 160 | impl Add > for Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 160 | impl Add > for Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:162:29 [INFO] [stdout] | [INFO] [stdout] 162 | fn add(self, other: Box) -> Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 162 | fn add(self, other: Box) -> Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:136:49 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:160:15 [INFO] [stdout] | [INFO] [stdout] 160 | impl Add > for Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 160 | impl Add > for Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:162:29 [INFO] [stdout] | [INFO] [stdout] 162 | fn add(self, other: Box) -> Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 162 | fn add(self, other: Box) -> Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:136:49 [INFO] [stdout] | [INFO] [stdout] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `USD` and `CHE` are never constructed [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Currency { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 7 | USD, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | CHE, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Currency` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `dollar`, and `franc` are never used [INFO] [stdout] --> src/lib.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Money { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 18 | fn new(x: u32, currecy: Currency) -> Money { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn dollar(x: u32) -> Money { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn franc(x: u32) -> Money { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reduced` and `times` are never used [INFO] [stdout] --> src/lib.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | trait Expression { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 95 | fn reduced(&self, bank: &Bank, currency: Currency) -> Money; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 96 | fn times(&self, multiplier: u32) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bank` is never constructed [INFO] [stdout] --> src/lib.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct Bank { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `reduced`, `add_rate`, and `get_rate` are never used [INFO] [stdout] --> src/lib.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 103 | impl Bank { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 104 | fn new() -> Bank { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn reduced (&self, source: T, currency: Currency) -> Money [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn add_rate (&mut self, from: Currency, to: Currency, rate: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn get_rate (&self, from: Currency, to: Currency) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `augend` and `addend` are never read [INFO] [stdout] --> src/lib.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 128 | struct Sum [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 129 | { [INFO] [stdout] 130 | augend: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 131 | addend: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 134 | impl Sum [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 135 | { [INFO] [stdout] 136 | fn new(augend: Box, addend: Box) -> Sum { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Money { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 18 | fn new(x: u32, currecy: Currency) -> Money { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "adf393478981b3afbf67f95a4229ca42d43c9f61043fa5c133c05d9d9fd6dc8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adf393478981b3afbf67f95a4229ca42d43c9f61043fa5c133c05d9d9fd6dc8a", kill_on_drop: false }` [INFO] [stdout] adf393478981b3afbf67f95a4229ca42d43c9f61043fa5c133c05d9d9fd6dc8a