[INFO] cloning repository https://github.com/lachatak/rust_roulette [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lachatak/rust_roulette" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flachatak%2Frust_roulette", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flachatak%2Frust_roulette'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56ea70ec878b2cd237e255d5ddc223363c9d46e8 [INFO] checking lachatak/rust_roulette/56ea70ec878b2cd237e255d5ddc223363c9d46e8 against master#d49be02cf6d2e2a01264fcdef1e20c826710c0f5 for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flachatak%2Frust_roulette" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lachatak/rust_roulette on toolchain d49be02cf6d2e2a01264fcdef1e20c826710c0f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lachatak/rust_roulette [INFO] finished tweaking git repo https://github.com/lachatak/rust_roulette [INFO] tweaked toml for git repo https://github.com/lachatak/rust_roulette written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lachatak/rust_roulette 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" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.0 [INFO] [stderr] Downloaded scan-rules v0.2.0 [INFO] [stderr] Downloaded strcursor v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19757e446d6bbcd3a5f10fb32425ef5b58bf1904939a30761c83ebd4c67acf09 [INFO] running `Command { std: "docker" "start" "-a" "19757e446d6bbcd3a5f10fb32425ef5b58bf1904939a30761c83ebd4c67acf09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19757e446d6bbcd3a5f10fb32425ef5b58bf1904939a30761c83ebd4c67acf09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19757e446d6bbcd3a5f10fb32425ef5b58bf1904939a30761c83ebd4c67acf09", kill_on_drop: false }` [INFO] [stdout] 19757e446d6bbcd3a5f10fb32425ef5b58bf1904939a30761c83ebd4c67acf09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccebe21dbd7af945355b06a6c826f2f6cb29461962f0fd32cc716959a051df11 [INFO] running `Command { std: "docker" "start" "-a" "ccebe21dbd7af945355b06a6c826f2f6cb29461962f0fd32cc716959a051df11", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking unicode-segmentation v0.1.2 [INFO] [stderr] Checking antidote v1.0.0 [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking itertools v0.4.19 [INFO] [stderr] Checking lazy_static v0.1.16 [INFO] [stderr] Checking scheduled-thread-pool v0.2.0 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling strcursor v0.2.5 [INFO] [stderr] Compiling scan-rules v0.2.0 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking rust_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | Ok(n @ 0 ... 36) => Ok(BetType::Number(n)), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:76:19 [INFO] [stdout] | [INFO] [stdout] 76 | 0 ... 36 => Ok(Pocket { pocket_number }), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | Ok(n @ 0 ... 36) => Ok(BetType::Number(n)), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:76:19 [INFO] [stdout] | [INFO] [stdout] 76 | 0 ... 36 => Ok(Pocket { pocket_number }), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | struct Player { [INFO] [stdout] 23 | name: String, [INFO] [stdout] | ------------ this field does not implement `Copy` [INFO] [stdout] 24 | amount: u32, [INFO] [stdout] 25 | bets: Vec, [INFO] [stdout] | -------------- this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> src/main.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | players: Vec, [INFO] [stdout] | -------------------- this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | struct Player { [INFO] [stdout] 23 | name: String, [INFO] [stdout] | ------------ this field does not implement `Copy` [INFO] [stdout] 24 | amount: u32, [INFO] [stdout] 25 | bets: Vec, [INFO] [stdout] | -------------- this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0204]: the trait `Copy` cannot be implemented for this type [INFO] [stdout] --> src/main.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | players: Vec, [INFO] [stdout] | -------------------- this field does not implement `Copy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | let mut table = Table::new(); [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: unused variable: `players` [INFO] [stdout] --> src/main.rs:126:35 [INFO] [stdout] | [INFO] [stdout] 126 | Some(Table{wheel, players}) => [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `players: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of partially moved value: `self` [INFO] [stdout] --> src/main.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 126 | Some(Table{wheel, players}) => [INFO] [stdout] | ------- value partially moved here [INFO] [stdout] 127 | // let p = self.table.unwrap().players; [INFO] [stdout] 128 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value used here after partial move [INFO] [stdout] 129 | println!("{:?}", self); [INFO] [stdout] | ---- use occurs due to use in closure [INFO] [stdout] | [INFO] [stdout] = note: partial move occurs because value has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value [INFO] [stdout] | [INFO] [stdout] 126 | Some(Table{wheel, ref players}) => [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0204, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0204`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_test` (bin "rust_test" test) due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:111:25 [INFO] [stdout] | [INFO] [stdout] 111 | let mut table = Table::new(); [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: unused variable: `players` [INFO] [stdout] --> src/main.rs:126:35 [INFO] [stdout] | [INFO] [stdout] 126 | Some(Table{wheel, players}) => [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `players: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of partially moved value: `self` [INFO] [stdout] --> src/main.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 126 | Some(Table{wheel, players}) => [INFO] [stdout] | ------- value partially moved here [INFO] [stdout] 127 | // let p = self.table.unwrap().players; [INFO] [stdout] 128 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ value used here after partial move [INFO] [stdout] 129 | println!("{:?}", self); [INFO] [stdout] | ---- use occurs due to use in closure [INFO] [stdout] | [INFO] [stdout] = note: partial move occurs because value has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value [INFO] [stdout] | [INFO] [stdout] 126 | Some(Table{wheel, ref players}) => [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0204, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0204`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_test` (bin "rust_test") due to 3 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ccebe21dbd7af945355b06a6c826f2f6cb29461962f0fd32cc716959a051df11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccebe21dbd7af945355b06a6c826f2f6cb29461962f0fd32cc716959a051df11", kill_on_drop: false }` [INFO] [stdout] ccebe21dbd7af945355b06a6c826f2f6cb29461962f0fd32cc716959a051df11