[INFO] cloning repository https://github.com/CDnEllen/mon-world [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CDnEllen/mon-world" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCDnEllen%2Fmon-world", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCDnEllen%2Fmon-world'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f3dbecce737c9fc6c4700a7b539abff04fa7b49b [INFO] checking CDnEllen/mon-world/f3dbecce737c9fc6c4700a7b539abff04fa7b49b against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCDnEllen%2Fmon-world" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CDnEllen/mon-world on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CDnEllen/mon-world [INFO] finished tweaking git repo https://github.com/CDnEllen/mon-world [INFO] tweaked toml for git repo https://github.com/CDnEllen/mon-world written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CDnEllen/mon-world 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c36efd054b2a9638d3a710618195ecb554b4252f387cb73178f4f03aada94867 [INFO] running `Command { std: "docker" "start" "-a" "c36efd054b2a9638d3a710618195ecb554b4252f387cb73178f4f03aada94867", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c36efd054b2a9638d3a710618195ecb554b4252f387cb73178f4f03aada94867", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c36efd054b2a9638d3a710618195ecb554b4252f387cb73178f4f03aada94867", kill_on_drop: false }` [INFO] [stdout] c36efd054b2a9638d3a710618195ecb554b4252f387cb73178f4f03aada94867 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c04f55190539271ceb1e3c3efb153d5b1cc403061c3d512dc239d0597bdbc1c2 [INFO] running `Command { std: "docker" "start" "-a" "c04f55190539271ceb1e3c3efb153d5b1cc403061c3d512dc239d0597bdbc1c2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking mon_test v0.1.0 (/opt/rustwide/workdir/crates/mon_test) [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking mon_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `menu` is never used [INFO] [stdout] --> src/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn menu(text: String, options: Vec) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `def`, `moves`, `lvl`, `exp`, and `cur_hp` are never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Mon { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 63 | def: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 64 | moves: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | lvl: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | exp: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 67 | cur_hp: i64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mon` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player_team`, `active_player_mons`, `enemy_team`, and `active_enemy_mons` are never read [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Battle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 72 | player_team: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 73 | active_player_mons: Box<[Option]>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | enemy_team: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 75 | active_enemy_mons: Box<[Option]>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Battle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game_def.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MonDef { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | species: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | types: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | abilities: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | evos: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | learnset: Vec<(i64, String)>, [INFO] [stdout] 11 | base_exp: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | weight: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `def`, `nickname`, `ability`, `level`, and `current_moves` are never read [INFO] [stdout] --> src/game_def.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct MonInstance { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 139 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 140 | def: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 142 | ability: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | level: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 144 | current_moves: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonInstance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/game_def.rs:194:22 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct TypeChart(HashMap>); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `TypeChart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `targets_self` and `target_type` are never read [INFO] [stdout] --> src/game_def.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct TargetType { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 257 | targets_self: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 258 | target_type: TargetTypeModSelf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TargetType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game_def.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 274 | pub struct MoveDef { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 275 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 276 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 277 | accuracy: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 278 | base_power: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 279 | category: Category, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 280 | priority: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 281 | target: TargetType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 282 | move_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 283 | [INFO] [stdout] 284 | atk_boost: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 285 | spatk_boost: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 286 | def_boost: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 287 | spdef_boost: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menu` is never used [INFO] [stdout] --> src/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn menu(text: String, options: Vec) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `def`, `moves`, `lvl`, `exp`, and `cur_hp` are never read [INFO] [stdout] --> src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct Mon { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 63 | def: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 64 | moves: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | lvl: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 66 | exp: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 67 | cur_hp: i64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mon` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player_team`, `active_player_mons`, `enemy_team`, and `active_enemy_mons` are never read [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Battle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 72 | player_team: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 73 | active_player_mons: Box<[Option]>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | enemy_team: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 75 | active_enemy_mons: Box<[Option]>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Battle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game_def.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MonDef { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | species: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | types: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | abilities: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | evos: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | learnset: Vec<(i64, String)>, [INFO] [stdout] 11 | base_exp: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | weight: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `def`, `nickname`, `ability`, `level`, and `current_moves` are never read [INFO] [stdout] --> src/game_def.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct MonInstance { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 139 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 140 | def: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 142 | ability: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | level: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 144 | current_moves: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonInstance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/game_def.rs:194:22 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct TypeChart(HashMap>); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `TypeChart` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `targets_self` and `target_type` are never read [INFO] [stdout] --> src/game_def.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct TargetType { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 257 | targets_self: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 258 | target_type: TargetTypeModSelf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TargetType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game_def.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 274 | pub struct MoveDef { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 275 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 276 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 277 | accuracy: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 278 | base_power: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 279 | category: Category, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 280 | priority: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 281 | target: TargetType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 282 | move_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 283 | [INFO] [stdout] 284 | atk_boost: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 285 | spatk_boost: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 286 | def_boost: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 287 | spdef_boost: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.92s [INFO] running `Command { std: "docker" "inspect" "c04f55190539271ceb1e3c3efb153d5b1cc403061c3d512dc239d0597bdbc1c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c04f55190539271ceb1e3c3efb153d5b1cc403061c3d512dc239d0597bdbc1c2", kill_on_drop: false }` [INFO] [stdout] c04f55190539271ceb1e3c3efb153d5b1cc403061c3d512dc239d0597bdbc1c2