[INFO] cloning repository https://github.com/dgunay/shizzards [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dgunay/shizzards" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgunay%2Fshizzards", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgunay%2Fshizzards'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24731e729da3af19d36b3ddbf0272ff94cce96fe [INFO] testing dgunay/shizzards against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgunay%2Fshizzards" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dgunay/shizzards [INFO] finished tweaking git repo https://github.com/dgunay/shizzards [INFO] tweaked toml for git repo https://github.com/dgunay/shizzards written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dgunay/shizzards on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dgunay/shizzards 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0db9363763274180ff4620dffa4c2d75585fbcd262e20e7ab1190be60d4c4f2c [INFO] running `Command { std: "docker" "start" "-a" "0db9363763274180ff4620dffa4c2d75585fbcd262e20e7ab1190be60d4c4f2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0db9363763274180ff4620dffa4c2d75585fbcd262e20e7ab1190be60d4c4f2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0db9363763274180ff4620dffa4c2d75585fbcd262e20e7ab1190be60d4c4f2c", kill_on_drop: false }` [INFO] [stdout] 0db9363763274180ff4620dffa4c2d75585fbcd262e20e7ab1190be60d4c4f2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccb43ac1ba1f6eddf6961fb7d924ff464d3c770892389f03c4b6ed9ca8ab03f3 [INFO] running `Command { std: "docker" "start" "-a" "ccb43ac1ba1f6eddf6961fb7d924ff464d3c770892389f03c4b6ed9ca8ab03f3", kill_on_drop: false }` [INFO] [stderr] Compiling shizzards v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Lines`, `StdinLock`, and `iter::FromIterator` [INFO] [stdout] --> src/player.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Lines, StdinLock}, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] 5 | iter::FromIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Lines`, `StdinLock`, and `write` [INFO] [stdout] --> src/spell.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{write, Display}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | io::{Lines, StdinLock}, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StdinLock` [INFO] [stdout] --> src/lib.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{stdin, BufRead, StdinLock}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericError` [INFO] [stdout] --> src/lib.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use player::{GenericError, Player}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spell` [INFO] [stdout] --> src/player.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn react_to_spell(&self, spell: &Spell) -> Reaction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_spell` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | Err(e) => (), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::slice::IterMut<'_, Player>: Clone` is not satisfied [INFO] [stdout] --> src/main.rs:21:46 [INFO] [stdout] | [INFO] [stdout] 21 | let mut player_iter = players.iter_mut().cycle(); [INFO] [stdout] | ^^^^^ the trait `Clone` is not implemented for `std::slice::IterMut<'_, Player>` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `cycle` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/iter/traits/iterator.rs:3496:5 [INFO] [stdout] help: consider removing this method call, as the receiver has type `Vec` and `Vec: Clone` trivially holds [INFO] [stdout] | [INFO] [stdout] 21 - let mut player_iter = players.iter_mut().cycle(); [INFO] [stdout] 21 + let mut player_iter = players.cycle(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `next` exists for struct `Cycle>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:27:45 [INFO] [stdout] | [INFO] [stdout] 27 | let mut active_player = player_iter.next().expect("Oops"); [INFO] [stdout] | ^^^^ method cannot be called on `Cycle>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::slice::IterMut<'_, Player>: Clone` [INFO] [stdout] which is required by `Cycle>: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 111 | todo!("Determine effect"); [INFO] [stdout] | ------------------------- any code following this expression is unreachable [INFO] [stdout] 112 | true [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reaction` [INFO] [stdout] --> src/main.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let reaction = match defender.react_to_spell(&spell) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reaction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `spell` is never read [INFO] [stdout] --> src/main.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | spell = altered_spell.clone(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `words_negated` [INFO] [stdout] --> src/main.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | Reaction::FranticallyDodge { words_negated } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `words_negated: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | for i in 0..words_to_discard.len() / 2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `others` [INFO] [stdout] --> src/main.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | others: impl Iterator, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_others` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut neutralized = false; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in a `&` reference as mutable [INFO] [stdout] --> src/main.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | Some(p) => return &mut p, [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `p` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | Some(p) => return &mut p, [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 184 | Some(mut p) => return &mut p, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shizzards` (bin "shizzards") due to 4 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ccb43ac1ba1f6eddf6961fb7d924ff464d3c770892389f03c4b6ed9ca8ab03f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccb43ac1ba1f6eddf6961fb7d924ff464d3c770892389f03c4b6ed9ca8ab03f3", kill_on_drop: false }` [INFO] [stdout] ccb43ac1ba1f6eddf6961fb7d924ff464d3c770892389f03c4b6ed9ca8ab03f3