[INFO] cloning repository https://github.com/foundoulis/market_sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/foundoulis/market_sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5fc832f33e3031d30390ec9b8faadb2054787eef [INFO] checking foundoulis/market_sim/5fc832f33e3031d30390ec9b8faadb2054787eef against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/foundoulis/market_sim 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/foundoulis/market_sim [INFO] finished tweaking git repo https://github.com/foundoulis/market_sim [INFO] tweaked toml for git repo https://github.com/foundoulis/market_sim written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/foundoulis/market_sim 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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded encode_unicode v0.1.3 [INFO] [stderr] Downloaded rustyline v1.0.0 [INFO] [stderr] Downloaded bitflags v0.4.0 [INFO] [stderr] Downloaded nix v0.5.1 [INFO] [stderr] Downloaded libc v0.2.37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c289a18fb0ce996b573bfa305cb861be8fab72a5e8d325a4698790bd3a6acd2f [INFO] running `Command { std: "docker" "start" "-a" "c289a18fb0ce996b573bfa305cb861be8fab72a5e8d325a4698790bd3a6acd2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c289a18fb0ce996b573bfa305cb861be8fab72a5e8d325a4698790bd3a6acd2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c289a18fb0ce996b573bfa305cb861be8fab72a5e8d325a4698790bd3a6acd2f", kill_on_drop: false }` [INFO] [stdout] c289a18fb0ce996b573bfa305cb861be8fab72a5e8d325a4698790bd3a6acd2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfad11b4e803a73e534a2f09ebf3d3149fb36650a04f31b6b8e315b4898fc6e3 [INFO] running `Command { std: "docker" "start" "-a" "cfad11b4e803a73e534a2f09ebf3d3149fb36650a04f31b6b8e315b4898fc6e3", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.37 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking encode_unicode v0.1.3 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking rustyline v1.0.0 [INFO] [stderr] Checking market-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `unused_lints` [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unused_lints)] [INFO] [stdout] | ^^^^^^^^^^^^ help: did you mean: `unused_labels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unused_lints` [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unused_lints)] [INFO] [stdout] | ^^^^^^^^^^^^ help: did you mean: `unused_labels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:33:66 [INFO] [stdout] | [INFO] [stdout] 12 | impl Markov { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 33 | self.map.get(&first_key).unwrap().insert(&second_key, value + 1); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 33 - self.map.get(&first_key).unwrap().insert(&second_key, value + 1); [INFO] [stdout] 33 + self.map.get(&first_key).unwrap().insert(second_key, value + 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:33:66 [INFO] [stdout] | [INFO] [stdout] 12 | impl Markov { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 33 | self.map.get(&first_key).unwrap().insert(&second_key, value + 1); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 33 - self.map.get(&first_key).unwrap().insert(&second_key, value + 1); [INFO] [stdout] 33 + self.map.get(&first_key).unwrap().insert(second_key, value + 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 12 | impl Markov { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 35 | self.map.get(&first_key).unwrap().insert(&second_key, 1); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 35 - self.map.get(&first_key).unwrap().insert(&second_key, 1); [INFO] [stdout] 35 + self.map.get(&first_key).unwrap().insert(second_key, 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 12 | impl Markov { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 35 | self.map.get(&first_key).unwrap().insert(&second_key, 1); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 35 - self.map.get(&first_key).unwrap().insert(&second_key, 1); [INFO] [stdout] 35 + self.map.get(&first_key).unwrap().insert(second_key, 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 12 | impl Markov { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 39 | new_value.insert(&second_key, 1); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 39 - new_value.insert(&second_key, 1); [INFO] [stdout] 39 + new_value.insert(second_key, 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:39:38 [INFO] [stdout] | [INFO] [stdout] 12 | impl Markov { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 39 | new_value.insert(&second_key, 1); [INFO] [stdout] | ------ ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 39 - new_value.insert(&second_key, 1); [INFO] [stdout] 39 + new_value.insert(second_key, 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | self.map.insert(&first_key, new_value); [INFO] [stdout] | ------ ^^^^^^^^^^ expected `Vec`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<_>` [INFO] [stdout] found reference `&Vec<_>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 40 - self.map.insert(&first_key, new_value); [INFO] [stdout] 40 + self.map.insert(first_key, new_value); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | if values.len() < self.step_size { [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 47 | if values.len() < self.step_size.try_into().unwrap() { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:40:37 [INFO] [stdout] | [INFO] [stdout] 40 | self.map.insert(&first_key, new_value); [INFO] [stdout] | ------ ^^^^^^^^^^ expected `Vec`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<_>` [INFO] [stdout] found reference `&Vec<_>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 40 - self.map.insert(&first_key, new_value); [INFO] [stdout] 40 + self.map.insert(first_key, new_value); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | for (key, value) in map { [INFO] [stdout] | ^^^^^^^^^^^^ --- this is an iterator with items of type `&BTreeMap` [INFO] [stdout] | | [INFO] [stdout] | expected `BTreeMap`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/prediction/markov.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let r = thread_rng().gen::() % (total_weight + value); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | if values.len() < self.step_size { [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^ expected `usize`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 47 | if values.len() < self.step_size.try_into().unwrap() { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/prediction/markov.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | for (key, value) in map { [INFO] [stdout] | ^^^^^^^^^^^^ --- this is an iterator with items of type `&BTreeMap` [INFO] [stdout] | | [INFO] [stdout] | expected `BTreeMap`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/prediction/markov.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | let r = thread_rng().gen::() % (total_weight + value); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `market-sim` (bin "market-sim") due to 8 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `market-sim` (bin "market-sim" test) due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "cfad11b4e803a73e534a2f09ebf3d3149fb36650a04f31b6b8e315b4898fc6e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfad11b4e803a73e534a2f09ebf3d3149fb36650a04f31b6b8e315b4898fc6e3", kill_on_drop: false }` [INFO] [stdout] cfad11b4e803a73e534a2f09ebf3d3149fb36650a04f31b6b8e315b4898fc6e3