[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] testing foundoulis/market_sim against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim" "/workspace/builds/worker-31/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-31/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/foundoulis/market_sim on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-31/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" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24fb3f5629ce161dcb76d7dcdc112abdcadcb3fcc9a0147a754ad789ba55df87 [INFO] running `Command { std: "docker" "start" "-a" "24fb3f5629ce161dcb76d7dcdc112abdcadcb3fcc9a0147a754ad789ba55df87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24fb3f5629ce161dcb76d7dcdc112abdcadcb3fcc9a0147a754ad789ba55df87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24fb3f5629ce161dcb76d7dcdc112abdcadcb3fcc9a0147a754ad789ba55df87", kill_on_drop: false }` [INFO] [stdout] 24fb3f5629ce161dcb76d7dcdc112abdcadcb3fcc9a0147a754ad789ba55df87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88ada84d008eb702db121e4d16d2b3e947b968793d56c6d3a4dc9020d1120f68 [INFO] running `Command { std: "docker" "start" "-a" "88ada84d008eb702db121e4d16d2b3e947b968793d56c6d3a4dc9020d1120f68", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.37 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling encode_unicode v0.1.3 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling nix v0.5.1 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling rustyline v1.0.0 [INFO] [stderr] Compiling 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] 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: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] | ^^^^^^^^^^^ expected type parameter `T`, found `&T` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - 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] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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] | - 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] = note: expected type parameter `T` [INFO] [stdout] found reference `&T` [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 struct `Vec`, found `&Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&Vec` [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] 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 `Option<&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` due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "88ada84d008eb702db121e4d16d2b3e947b968793d56c6d3a4dc9020d1120f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88ada84d008eb702db121e4d16d2b3e947b968793d56c6d3a4dc9020d1120f68", kill_on_drop: false }` [INFO] [stdout] 88ada84d008eb702db121e4d16d2b3e947b968793d56c6d3a4dc9020d1120f68