[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] checking dgunay/shizzards/24731e729da3af19d36b3ddbf0272ff94cce96fe against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgunay%2Fshizzards" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dgunay/shizzards on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc1/source/Cargo.toml [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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b321cf89e173de440a3e7894c5fae61adec99379a59e63766c75a456e2ea9d15 [INFO] running `Command { std: "docker" "start" "-a" "b321cf89e173de440a3e7894c5fae61adec99379a59e63766c75a456e2ea9d15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b321cf89e173de440a3e7894c5fae61adec99379a59e63766c75a456e2ea9d15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b321cf89e173de440a3e7894c5fae61adec99379a59e63766c75a456e2ea9d15", kill_on_drop: false }` [INFO] [stdout] b321cf89e173de440a3e7894c5fae61adec99379a59e63766c75a456e2ea9d15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3f6e2153bc4bc2469e52ae1bba27f146917c713622d710a13c3f8a8664b4740 [INFO] running `Command { std: "docker" "start" "-a" "a3f6e2153bc4bc2469e52ae1bba27f146917c713622d710a13c3f8a8664b4740", kill_on_drop: false }` [INFO] [stderr] Checking 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)]` 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 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)]` 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)]` on by default [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)]` 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] 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] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [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/f609b7e0586f81fefb3523e3e17adf779ac416be/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[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/f609b7e0586f81fefb3523e3e17adf779ac416be/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] 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)]` on by default [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)]` 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)]` 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)]` 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: 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)]` 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)]` 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)]` on by default [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)]` 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] 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] error: aborting due to 4 previous errors; 7 warnings emitted [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] [stdout] error: aborting due to 4 previous errors; 7 warnings emitted [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 5 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `shizzards` (bin "shizzards" test) due to 5 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a3f6e2153bc4bc2469e52ae1bba27f146917c713622d710a13c3f8a8664b4740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3f6e2153bc4bc2469e52ae1bba27f146917c713622d710a13c3f8a8664b4740", kill_on_drop: false }` [INFO] [stdout] a3f6e2153bc4bc2469e52ae1bba27f146917c713622d710a13c3f8a8664b4740