[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 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/foundoulis/market_sim on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-3/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: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4ee4bca62d616aa85814aa91efb8abdabf0ea326c0ba6afb62a1b1f35e8473f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b4ee4bca62d616aa85814aa91efb8abdabf0ea326c0ba6afb62a1b1f35e8473f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4ee4bca62d616aa85814aa91efb8abdabf0ea326c0ba6afb62a1b1f35e8473f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4ee4bca62d616aa85814aa91efb8abdabf0ea326c0ba6afb62a1b1f35e8473f", kill_on_drop: false }` [INFO] [stdout] b4ee4bca62d616aa85814aa91efb8abdabf0ea326c0ba6afb62a1b1f35e8473f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 710e5389306b5bfd9c0f0e19937f00bcea0851e63ada0d0a21896c6dd3f021a5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "710e5389306b5bfd9c0f0e19937f00bcea0851e63ada0d0a21896c6dd3f021a5", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.37 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking encode_unicode v0.1.3 [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_mut` [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_mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [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] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use minority::strategy::thread_rng; [INFO] [stdout] | [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] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use minority::strategy::thread_rng; [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] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 33 | self.map.get(&first_key).unwrap().insert(&second_key, value + 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type parameter `T`, found `&T` [INFO] [stdout] | help: consider removing the borrow: `second_key` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 35 | self.map.get(&first_key).unwrap().insert(&second_key, 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type parameter `T`, found `&T` [INFO] [stdout] | help: consider removing the borrow: `second_key` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 39 | new_value.insert(&second_key, 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type parameter `T`, found `&T` [INFO] [stdout] | help: consider removing the borrow: `second_key` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 33 | self.map.get(&first_key).unwrap().insert(&second_key, value + 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type parameter `T`, found `&T` [INFO] [stdout] | help: consider removing the borrow: `second_key` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 35 | self.map.get(&first_key).unwrap().insert(&second_key, 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type parameter `T`, found `&T` [INFO] [stdout] | help: consider removing the borrow: `second_key` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 39 | new_value.insert(&second_key, 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected type parameter `T`, found `&T` [INFO] [stdout] | help: consider removing the borrow: `second_key` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&Vec` [INFO] [stdout] | help: consider removing the borrow: `first_key` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&Vec` [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] 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 expression has type `&BTreeMap` [INFO] [stdout] | | [INFO] [stdout] | expected struct `BTreeMap`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found tuple `(_, _)` [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] [stderr] error: could not compile `market-sim` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&Vec` [INFO] [stdout] | help: consider removing the borrow: `first_key` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&Vec` [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] 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 expression has type `&BTreeMap` [INFO] [stdout] | | [INFO] [stdout] | expected struct `BTreeMap`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found tuple `(_, _)` [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "710e5389306b5bfd9c0f0e19937f00bcea0851e63ada0d0a21896c6dd3f021a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "710e5389306b5bfd9c0f0e19937f00bcea0851e63ada0d0a21896c6dd3f021a5", kill_on_drop: false }` [INFO] [stdout] 710e5389306b5bfd9c0f0e19937f00bcea0851e63ada0d0a21896c6dd3f021a5