[INFO] cloning repository https://github.com/BudiNverse/cabo.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BudiNverse/cabo.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBudiNverse%2Fcabo.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBudiNverse%2Fcabo.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e364a118c90a40f7020c1aff70749a37d9908181 [INFO] checking BudiNverse/cabo.rs against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBudiNverse%2Fcabo.rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BudiNverse/cabo.rs on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BudiNverse/cabo.rs [INFO] finished tweaking git repo https://github.com/BudiNverse/cabo.rs [INFO] tweaked toml for git repo https://github.com/BudiNverse/cabo.rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BudiNverse/cabo.rs 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded autocfg v0.1.2 [INFO] [stderr] Downloaded itoa v0.4.3 [INFO] [stderr] Downloaded ryu v0.2.7 [INFO] [stderr] Downloaded rand_jitter v0.1.3 [INFO] [stderr] Downloaded num-derive v0.2.4 [INFO] [stderr] Downloaded rand_core v0.4.0 [INFO] [stderr] Downloaded bitflags v1.0.4 [INFO] [stderr] Downloaded serde v1.0.87 [INFO] [stderr] Downloaded syn v0.15.26 [INFO] [stderr] Downloaded libc v0.2.48 [INFO] [stderr] Downloaded winapi v0.3.6 [INFO] [stderr] Downloaded proc-macro2 v0.4.27 [INFO] [stderr] Downloaded rand_os v0.1.2 [INFO] [stderr] Downloaded num-traits v0.2.6 [INFO] [stderr] Downloaded quote v0.6.11 [INFO] [stderr] Downloaded rand_pcg v0.1.1 [INFO] [stderr] Downloaded serde_json v1.0.38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 68b0c86fa0d0dfe9b02cf4953c85be4af3e288a0388ea885c5e52dd79e9f6240 [INFO] running `Command { std: "docker" "start" "-a" "68b0c86fa0d0dfe9b02cf4953c85be4af3e288a0388ea885c5e52dd79e9f6240", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68b0c86fa0d0dfe9b02cf4953c85be4af3e288a0388ea885c5e52dd79e9f6240", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68b0c86fa0d0dfe9b02cf4953c85be4af3e288a0388ea885c5e52dd79e9f6240", kill_on_drop: false }` [INFO] [stdout] 68b0c86fa0d0dfe9b02cf4953c85be4af3e288a0388ea885c5e52dd79e9f6240 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a78a94e3a963afe537d6cee104cb9ade73d0e167887954d1f43cc433ff05598 [INFO] running `Command { std: "docker" "start" "-a" "1a78a94e3a963afe537d6cee104cb9ade73d0e167887954d1f43cc433ff05598", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling serde v1.0.87 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Checking serde_json v1.0.38 [INFO] [stderr] Checking cabo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `num_derive` [INFO] [stdout] --> src/models/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deck` [INFO] [stdout] --> src/main.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::game::{Deck, Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/models/game.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive` [INFO] [stdout] --> src/models/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deck` [INFO] [stdout] --> src/main.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::game::{Deck, Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl CardValue { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: Value, suit: Suit) -> CardValue { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 44 | pub fn new(value: Option, position: CardPosition) -> Card { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ended` is never constructed [INFO] [stdout] --> src/models/game.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GameState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Ended, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_ended` is never used [INFO] [stdout] --> src/models/game.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Game { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn has_ended() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/message.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Init {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | SelfDraw, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | SelfPeek, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | Place, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Swap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | OtherDraw, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | OtherPeek, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | Turn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/models/card.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/models/game.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl CardValue { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: Value, suit: Suit) -> CardValue { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 44 | pub fn new(value: Option, position: CardPosition) -> Card { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ended` is never constructed [INFO] [stdout] --> src/models/game.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GameState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Ended, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_ended` is never used [INFO] [stdout] --> src/models/game.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Game { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn has_ended() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/message.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Init {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | SelfDraw, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | SelfPeek, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | Place, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Swap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | OtherDraw, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | OtherPeek, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | Turn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/models/card.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.13s [INFO] running `Command { std: "docker" "inspect" "1a78a94e3a963afe537d6cee104cb9ade73d0e167887954d1f43cc433ff05598", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a78a94e3a963afe537d6cee104cb9ade73d0e167887954d1f43cc433ff05598", kill_on_drop: false }` [INFO] [stdout] 1a78a94e3a963afe537d6cee104cb9ade73d0e167887954d1f43cc433ff05598 [INFO] checking BudiNverse/cabo.rs against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBudiNverse%2Fcabo.rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BudiNverse/cabo.rs on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BudiNverse/cabo.rs [INFO] finished tweaking git repo https://github.com/BudiNverse/cabo.rs [INFO] tweaked toml for git repo https://github.com/BudiNverse/cabo.rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/BudiNverse/cabo.rs 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06213b5f7f8b74a0a3a5eb226d40d4b2921b17b46a601cca361054d2fc4516ee [INFO] running `Command { std: "docker" "start" "-a" "06213b5f7f8b74a0a3a5eb226d40d4b2921b17b46a601cca361054d2fc4516ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06213b5f7f8b74a0a3a5eb226d40d4b2921b17b46a601cca361054d2fc4516ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06213b5f7f8b74a0a3a5eb226d40d4b2921b17b46a601cca361054d2fc4516ee", kill_on_drop: false }` [INFO] [stdout] 06213b5f7f8b74a0a3a5eb226d40d4b2921b17b46a601cca361054d2fc4516ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 917a6f2afdf5ca8e6fd786914094c5aa043d47c98340a61813e9237dec8ed00c [INFO] running `Command { std: "docker" "start" "-a" "917a6f2afdf5ca8e6fd786914094c5aa043d47c98340a61813e9237dec8ed00c", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling serde v1.0.87 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Checking serde_json v1.0.38 [INFO] [stderr] Checking cabo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `num_derive` [INFO] [stdout] --> src/models/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deck` [INFO] [stdout] --> src/main.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::game::{Deck, Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_derive` [INFO] [stdout] --> src/models/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num_derive; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deck` [INFO] [stdout] --> src/main.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::game::{Deck, Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/models/game.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/models/game.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl CardValue { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: Value, suit: Suit) -> CardValue { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 44 | pub fn new(value: Option, position: CardPosition) -> Card { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ended` is never constructed [INFO] [stdout] --> src/models/game.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GameState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Ended, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_ended` is never used [INFO] [stdout] --> src/models/game.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Game { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn has_ended() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/message.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Init {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | SelfDraw, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | SelfPeek, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | Place, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Swap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | OtherDraw, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | OtherPeek, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | Turn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/models/card.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FROMPRIMITIVE_FOR_VALUE` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_TOPRIMITIVE_FOR_VALUE` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FROMPRIMITIVE_FOR_SUIT` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_TOPRIMITIVE_FOR_SUIT` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FROMPRIMITIVE_FOR_POSITION` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_TOPRIMITIVE_FOR_POSITION` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(r) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl CardValue { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: Value, suit: Suit) -> CardValue { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/card.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Card { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 44 | pub fn new(value: Option, position: CardPosition) -> Card { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ended` is never constructed [INFO] [stdout] --> src/models/game.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum GameState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Ended, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `has_ended` is never used [INFO] [stdout] --> src/models/game.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Game { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn has_ended() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/message.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | Init {}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | SelfDraw, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | SelfPeek, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | Place, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Swap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Kill, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | OtherDraw, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | OtherPeek, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | Turn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/models/card.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = fmt.write_str(format!("{:?} {:?}", self.value, self.suit).as_str()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FROMPRIMITIVE_FOR_VALUE` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_TOPRIMITIVE_FOR_VALUE` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FROMPRIMITIVE_FOR_SUIT` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_TOPRIMITIVE_FOR_SUIT` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FROMPRIMITIVE_FOR_POSITION` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/models/card.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(FromPrimitive, ToPrimitive, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_TOPRIMITIVE_FOR_POSITION` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cabo` (bin "cabo" test) due to 7 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 6 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cabo` (bin "cabo") due to 7 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "917a6f2afdf5ca8e6fd786914094c5aa043d47c98340a61813e9237dec8ed00c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "917a6f2afdf5ca8e6fd786914094c5aa043d47c98340a61813e9237dec8ed00c", kill_on_drop: false }` [INFO] [stdout] 917a6f2afdf5ca8e6fd786914094c5aa043d47c98340a61813e9237dec8ed00c