[INFO] cloning repository https://github.com/jonathan-lemos/holdem-server
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jonathan-lemos/holdem-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Fholdem-server", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Fholdem-server'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d1119d3e459024ee33d96fb1c54c58a38983e939
[INFO] testing jonathan-lemos/holdem-server against 1.95.0 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Fholdem-server" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jonathan-lemos/holdem-server
[INFO] finished tweaking git repo https://github.com/jonathan-lemos/holdem-server
[INFO] tweaked toml for git repo https://github.com/jonathan-lemos/holdem-server written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jonathan-lemos/holdem-server on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jonathan-lemos/holdem-server 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded either v1.6.1
[INFO] [stderr]   Downloaded getrandom v0.1.15
[INFO] [stderr]   Downloaded ppv-lite86 v0.2.9
[INFO] [stderr]   Downloaded libc v0.2.77
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 31cff9249b0243c83ab5363870713e129579db02b8622b4bf3b3914f08d5f5f4
[INFO] running `Command { std: "docker" "start" "-a" "31cff9249b0243c83ab5363870713e129579db02b8622b4bf3b3914f08d5f5f4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "31cff9249b0243c83ab5363870713e129579db02b8622b4bf3b3914f08d5f5f4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "31cff9249b0243c83ab5363870713e129579db02b8622b4bf3b3914f08d5f5f4", kill_on_drop: false }`
[INFO] [stdout] 31cff9249b0243c83ab5363870713e129579db02b8622b4bf3b3914f08d5f5f4
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9d7ecbf78a49b201f821e38b29ea37b2e972617388709791f522834eb3495c0d
[INFO] running `Command { std: "docker" "start" "-a" "9d7ecbf78a49b201f821e38b29ea37b2e972617388709791f522834eb3495c0d", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.77
[INFO] [stderr]    Compiling getrandom v0.1.15
[INFO] [stderr]    Compiling ppv-lite86 v0.2.9
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling itertools v0.9.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling holdem-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: cannot find derive macro `Sub` in this scope
[INFO] [stdout]  --> src/card.rs:9:61
[INFO] [stdout]   |
[INFO] [stdout] 9 | #[derive(Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Hash, Sub, Add)]
[INFO] [stdout]   |                                                             ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Add` in this scope
[INFO] [stdout]  --> src/card.rs:9:66
[INFO] [stdout]   |
[INFO] [stdout] 9 | #[derive(Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Hash, Sub, Add)]
[INFO] [stdout]   |                                                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::iter`
[INFO] [stdout]  --> src/card.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::iter;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `to_five` found for struct `std::iter::Chain<A, B>` in the current scope
[INFO] [stdout]    --> src/card.rs:357:61
[INFO] [stdout]     |
[INFO] [stdout] 357 |             return (HandRank::Boat, trip.iter().chain(pair).to_five())
[INFO] [stdout]     |                                                             ^^^^^^^ method not found in `std::iter::Chain<std::slice::Iter<'_, Card>, std::slice::Iter<'_, Card>>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `CardGroups` defines an item `to_five`, perhaps you need to implement it
[INFO] [stdout]    --> src/card.rs:231:1
[INFO] [stdout]     |
[INFO] [stdout] 231 | trait CardGroups {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/linq.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     fn concat(&self, other: Iter<'a, T>) -> Iter<'a, T> {
[INFO] [stdout]    |                                             ----------- expected `std::slice::Iter<'a, T>` because of return type
[INFO] [stdout] 56 |         ConcatIter {i1: *self, i2: other}
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Iter<'_, T>`, found `ConcatIter<'_, T>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `std::slice::Iter<'a, T>`
[INFO] [stdout]               found struct `ConcatIter<'_, T>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `arr` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/card.rs:241:9
[INFO] [stdout]     |
[INFO] [stdout] 241 |         arr.iter_mut().zip(self.iter()).for_each(|x| *x.0 = *x.1);
[INFO] [stdout]     |         ^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 239 |         let mut arr = [Card { rank: Rank::Two, suit: Suit::Diamond }; 2];
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `arr` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/card.rs:248:9
[INFO] [stdout]     |
[INFO] [stdout] 248 |         arr.iter_mut().zip(self.iter()).for_each(|x| *x.0 = *x.1);
[INFO] [stdout]     |         ^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 246 |         let mut arr = [Card { rank: Rank::Two, suit: Suit::Diamond }; 5];
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `arr` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/card.rs:255:9
[INFO] [stdout]     |
[INFO] [stdout] 255 |         arr.iter_mut().zip(self.iter()).for_each(|x| *x.0 = *x.1);
[INFO] [stdout]     |         ^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 253 |         let mut arr = [Card { rank: Rank::Two, suit: Suit::Diamond }; 7];
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `x`, which is owned by the current function
[INFO] [stdout]    --> src/card.rs:274:79
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let v: Vec<Card> = Rank::iterator().flat_map(|x| Suit::iterator().map(|y| Card {rank: *x, suit: *y})).collect();
[INFO] [stdout]     |                                                                               ^^^             -- `x` is borrowed here
[INFO] [stdout]     |                                                                               |
[INFO] [stdout]     |                                                                               may outlive borrowed value `x`
[INFO] [stdout]     |
[INFO] [stdout] note: closure is returned here
[INFO] [stdout]    --> src/card.rs:274:58
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let v: Vec<Card> = Rank::iterator().flat_map(|x| Suit::iterator().map(|y| Card {rank: *x, suit: *y})).collect();
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: to force the closure to take ownership of `x` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]     |
[INFO] [stdout] 274 |         let v: Vec<Card> = Rank::iterator().flat_map(|x| Suit::iterator().map(move |y| Card {rank: *x, suit: *y})).collect();
[INFO] [stdout]     |                                                                               ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `prev`
[INFO] [stdout]    --> src/card.rs:298:17
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let prev = cards[0].rank;
[INFO] [stdout]     |             ---- first assignment to `prev`
[INFO] [stdout] ...
[INFO] [stdout] 298 |                 prev = cur;
[INFO] [stdout]     |                 ^^^^^^^^^^ cannot assign twice to immutable variable
[INFO] [stdout]     |
[INFO] [stdout] help: consider making this binding mutable
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let mut prev = cards[0].rank;
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `prev`
[INFO] [stdout]    --> src/card.rs:306:13
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let prev = cards[0].rank;
[INFO] [stdout]     |             ---- first assignment to `prev`
[INFO] [stdout] ...
[INFO] [stdout] 306 |             prev = cur;
[INFO] [stdout]     |             ^^^^^^^^^^ cannot assign twice to immutable variable
[INFO] [stdout]     |
[INFO] [stdout] help: consider making this binding mutable
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let mut prev = cards[0].rank;
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `ret` as mutable, as it is not declared as mutable
[INFO] [stdout]   --> src/linq.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout] 12 |         let ret: HashMap<K, Vec<T>> = HashMap::new();
[INFO] [stdout]    |             ^^^ not mutable
[INFO] [stdout] ...
[INFO] [stdout] 17 |             match ret.get_mut(&k) {
[INFO] [stdout]    |                   --- cannot borrow as mutable
[INFO] [stdout] ...
[INFO] [stdout] 22 |                     ret.insert(k, vec![*elem]);
[INFO] [stdout]    |                     --- cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]    |
[INFO] [stdout] 12 |         let mut ret: HashMap<K, Vec<T>> = HashMap::new();
[INFO] [stdout]    |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a shared reference
[INFO] [stdout]   --> src/linq.rs:14:21
[INFO] [stdout]    |
[INFO] [stdout] 14 |         for elem in *self {
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     `*self` moved due to this implicit call to `.into_iter()`
[INFO] [stdout]    |                     move occurs because `*self` has type `std::slice::Iter<'_, T>`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `*self`
[INFO] [stdout]   --> /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/iter/traits/collect.rs:312:17
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 14 -         for elem in *self {
[INFO] [stdout] 14 +         for elem in self.clone() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*elem` which is behind a shared reference
[INFO] [stdout]   --> src/linq.rs:19:28
[INFO] [stdout]    |
[INFO] [stdout] 19 |                     s.push(*elem);
[INFO] [stdout]    |                            ^^^^^ move occurs because `*elem` has type `T`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/linq.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl<'a, T, K: Eq + Hash, F: Fn(&T) -> K> GroupBy<'a, T, K, F> for Iter<'a, T> {
[INFO] [stdout]    |          ^ consider constraining this type parameter with `Clone`
[INFO] [stdout] ...
[INFO] [stdout] 19 |                     s.push(*elem);
[INFO] [stdout]    |                            ----- you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*elem` which is behind a shared reference
[INFO] [stdout]   --> src/linq.rs:22:40
[INFO] [stdout]    |
[INFO] [stdout] 22 |                     ret.insert(k, vec![*elem]);
[INFO] [stdout]    |                                        ^^^^^ move occurs because `*elem` has type `T`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/linq.rs:10:10
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl<'a, T, K: Eq + Hash, F: Fn(&T) -> K> GroupBy<'a, T, K, F> for Iter<'a, T> {
[INFO] [stdout]    |          ^ consider constraining this type parameter with `Clone`
[INFO] [stdout] ...
[INFO] [stdout] 22 |                     ret.insert(k, vec![*elem]);
[INFO] [stdout]    |                                        ----- you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*s` which is behind a shared reference
[INFO] [stdout]   --> src/linq.rs:45:29
[INFO] [stdout]    |
[INFO] [stdout] 45 |             Some(s) => Some(*s),
[INFO] [stdout]    |                             ^^ move occurs because `*s` has type `T`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/linq.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl<'a, T> Iterator for ConcatIter<'a, T> {
[INFO] [stdout]    |          ^ consider constraining this type parameter with `Clone`
[INFO] [stdout] ...
[INFO] [stdout] 45 |             Some(s) => Some(*s),
[INFO] [stdout]    |                             -- you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*s` which is behind a shared reference
[INFO] [stdout]   --> src/linq.rs:47:33
[INFO] [stdout]    |
[INFO] [stdout] 47 |                 Some(s) => Some(*s),
[INFO] [stdout]    |                                 ^^ move occurs because `*s` has type `T`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: if `T` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/linq.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | impl<'a, T> Iterator for ConcatIter<'a, T> {
[INFO] [stdout]    |          ^ consider constraining this type parameter with `Clone`
[INFO] [stdout] ...
[INFO] [stdout] 47 |                 Some(s) => Some(*s),
[INFO] [stdout]    |                                 -- you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0373, E0384, E0507, E0596, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `holdem-server` (bin "holdem-server") due to 16 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "9d7ecbf78a49b201f821e38b29ea37b2e972617388709791f522834eb3495c0d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d7ecbf78a49b201f821e38b29ea37b2e972617388709791f522834eb3495c0d", kill_on_drop: false }`
[INFO] [stdout] 9d7ecbf78a49b201f821e38b29ea37b2e972617388709791f522834eb3495c0d
