[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] checking jonathan-lemos/holdem-server against try#fc545c6b951a304df08b327c158f92678582f435 for pr-140557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Fholdem-server" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jonathan-lemos/holdem-server on toolchain fc545c6b951a304df08b327c158f92678582f435 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0-tc2/source/Cargo.toml [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" "+fc545c6b951a304df08b327c158f92678582f435" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa198b6a520c0dba02b4cdadc8f06c13cfb7fabca7b7eba1c9ed8f0352e291c1 [INFO] running `Command { std: "docker" "start" "-a" "aa198b6a520c0dba02b4cdadc8f06c13cfb7fabca7b7eba1c9ed8f0352e291c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa198b6a520c0dba02b4cdadc8f06c13cfb7fabca7b7eba1c9ed8f0352e291c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa198b6a520c0dba02b4cdadc8f06c13cfb7fabca7b7eba1c9ed8f0352e291c1", kill_on_drop: false }` [INFO] [stdout] aa198b6a520c0dba02b4cdadc8f06c13cfb7fabca7b7eba1c9ed8f0352e291c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e03cc448d49bc4f9df6c333e8c7d21d5576acaac5550ba5089f690335344fa41 [INFO] running `Command { std: "docker" "start" "-a" "e03cc448d49bc4f9df6c333e8c7d21d5576acaac5550ba5089f690335344fa41", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking 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 `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] 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)]` on by default [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_five` found for struct `std::iter::Chain` 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 `Chain, 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[E0599]: no method named `to_five` found for struct `std::iter::Chain` 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 `Chain, 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[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: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: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[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 = 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 = 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 = 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[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 = 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 = 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 = 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> = 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> = HashMap::new(); [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> = 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> = 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/fc545c6b951a304df08b327c158f92678582f435/library/core/src/iter/traits/collect.rs:313:18 [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] 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/fc545c6b951a304df08b327c158f92678582f435/library/core/src/iter/traits/collect.rs:313:18 [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] [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" test) due to 16 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "e03cc448d49bc4f9df6c333e8c7d21d5576acaac5550ba5089f690335344fa41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e03cc448d49bc4f9df6c333e8c7d21d5576acaac5550ba5089f690335344fa41", kill_on_drop: false }` [INFO] [stdout] e03cc448d49bc4f9df6c333e8c7d21d5576acaac5550ba5089f690335344fa41