[INFO] updating cached repository https://github.com/sirkibsirkib/cardgame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09ad26188796f859f7e916f83c5d1cfb02eb6f3c [INFO] checking sirkibsirkib/cardgame/09ad26188796f859f7e916f83c5d1cfb02eb6f3c against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirkibsirkib%2Fcardgame" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sirkibsirkib/cardgame on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sirkibsirkib/cardgame [INFO] finished tweaking git repo https://github.com/sirkibsirkib/cardgame [INFO] tweaked toml for git repo https://github.com/sirkibsirkib/cardgame written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/sirkibsirkib/cardgame already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d7aae832aa5abe595bffa17c82fda0d1edac9ffad24ea75d457a082f7d9f9b1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7d7aae832aa5abe595bffa17c82fda0d1edac9ffad24ea75d457a082f7d9f9b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d7aae832aa5abe595bffa17c82fda0d1edac9ffad24ea75d457a082f7d9f9b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d7aae832aa5abe595bffa17c82fda0d1edac9ffad24ea75d457a082f7d9f9b1", kill_on_drop: false }` [INFO] [stdout] 7d7aae832aa5abe595bffa17c82fda0d1edac9ffad24ea75d457a082f7d9f9b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a221d24f7e1a8e346c62dc0f3c8640ff2b038c54939c59a502009cfbda27274 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2a221d24f7e1a8e346c62dc0f3c8640ff2b038c54939c59a502009cfbda27274", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking cardgame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/card.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Card` [INFO] [stdout] --> src/stack.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use card::{Card, CardFlyweight}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::card::Card` [INFO] [stdout] --> src/combat.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ::card::Card; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `card::Database` [INFO] [stdout] --> src/screen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use card::Database; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/card.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Card` [INFO] [stdout] --> src/stack.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use card::{Card, CardFlyweight}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::card::Card` [INFO] [stdout] --> src/combat.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ::card::Card; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `card::Database` [INFO] [stdout] --> src/screen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use card::Database; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | x => { worked = false; }, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1_stacks` [INFO] [stdout] --> src/combat.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | let mut p1_stacks: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p1_stacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2_stacks` [INFO] [stdout] --> src/combat.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | let mut p2_stacks: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2_stacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/screen.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | for j in 0..HEIGHT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/screen.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | for i in 0..WIDTH { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | x => { worked = false; }, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1_stacks` [INFO] [stdout] --> src/combat.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | let mut p1_stacks: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p1_stacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2_stacks` [INFO] [stdout] --> src/combat.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | let mut p2_stacks: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2_stacks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/screen.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | for j in 0..HEIGHT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/screen.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | for i in 0..WIDTH { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/combat.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | let mut p1_stacks: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/combat.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | let mut p1_stacks: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/combat.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | let mut p2_stacks: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/combat.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | let mut p2_stacks: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `visible` [INFO] [stdout] --> src/card.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn visible(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `visible` [INFO] [stdout] --> src/card.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn visible(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `CardType` [INFO] [stdout] --> src/card_type.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum CardType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `combat` [INFO] [stdout] --> src/combat.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn combat() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `CardType` [INFO] [stdout] --> src/card_type.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum CardType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `combat` [INFO] [stdout] --> src/combat.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn combat() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `coord` [INFO] [stdout] --> src/screen.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn coord(index: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `coord` [INFO] [stdout] --> src/screen.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn coord(index: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `abs` should have an upper case name [INFO] [stdout] --> src/main.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const abs: [&'static str; 4] = [ [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `ABS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `abs` should have an upper case name [INFO] [stdout] --> src/main.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const abs: [&'static str; 4] = [ [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `ABS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | stdin().read_line(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | stdin().read_line(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `Command { std: "docker" "inspect" "2a221d24f7e1a8e346c62dc0f3c8640ff2b038c54939c59a502009cfbda27274", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a221d24f7e1a8e346c62dc0f3c8640ff2b038c54939c59a502009cfbda27274", kill_on_drop: false }` [INFO] [stdout] 2a221d24f7e1a8e346c62dc0f3c8640ff2b038c54939c59a502009cfbda27274