[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 beta-2023-04-20 for beta-1.70-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoundoulis%2Fmarket_sim" "/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/foundoulis/market_sim on toolchain beta-2023-04-20
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "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-tc2/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" "+beta-2023-04-20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rustyline v1.0.0
[INFO] [stderr]   Downloaded encode_unicode v0.1.3
[INFO] [stderr]   Downloaded nix v0.5.1
[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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0fe1e77b20e5a1ffd230da64e6955a01cfcb48f9160a12125cb8cd4a7354fd1f
[INFO] running `Command { std: "docker" "start" "-a" "0fe1e77b20e5a1ffd230da64e6955a01cfcb48f9160a12125cb8cd4a7354fd1f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0fe1e77b20e5a1ffd230da64e6955a01cfcb48f9160a12125cb8cd4a7354fd1f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fe1e77b20e5a1ffd230da64e6955a01cfcb48f9160a12125cb8cd4a7354fd1f", kill_on_drop: false }`
[INFO] [stdout] 0fe1e77b20e5a1ffd230da64e6955a01cfcb48f9160a12125cb8cd4a7354fd1f
[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=warn" "-e" "RUSTDOCFLAGS=--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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9b1c7375505847abfa03fae04cbfdb139bb2831efd2c76eb6c25a6ad0dfcf801
[INFO] running `Command { std: "docker" "start" "-a" "9b1c7375505847abfa03fae04cbfdb139bb2831efd2c76eb6c25a6ad0dfcf801", kill_on_drop: false }`
[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[E0308]: mismatched types
[INFO] [stdout]   --> src/prediction/markov.rs:33:66
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Ord + Copy> Markov<T> {
[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]    |                                                           arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                    found reference `&T`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/1b7dd2252b99671ce5d1cb9664c5f8636329436d/library/alloc/src/collections/btree/map.rs:999: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<T: Ord + Copy> Markov<T> {
[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]    |                                                           arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                    found reference `&T`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/1b7dd2252b99671ce5d1cb9664c5f8636329436d/library/alloc/src/collections/btree/map.rs:999: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<T: Ord + Copy> Markov<T> {
[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]    |                               arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                    found reference `&T`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/1b7dd2252b99671ce5d1cb9664c5f8636329436d/library/alloc/src/collections/btree/map.rs:999: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<T>`, found `&Vec<T>`
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              arguments to this method are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<T>`
[INFO] [stdout]            found reference `&Vec<T>`
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /rustc/1b7dd2252b99671ce5d1cb9664c5f8636329436d/library/alloc/src/collections/btree/map.rs:999: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:53:17
[INFO] [stdout]    |
[INFO] [stdout] 53 |             for (key, value) in map {
[INFO] [stdout]    |                 ^^^^^^^^^^^^    --- this is an iterator with items of type `&BTreeMap<T, u32>`
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 expected `BTreeMap<T, u32>`, found `(_, _)`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `BTreeMap<T, u32>`
[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::<u32>() % (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:56:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl<T: Ord + Copy> Markov<T> {
[INFO] [stdout]    |      - this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 56 |                 if r >= total_weight {
[INFO] [stdout]    |                         ^^^^^^^^^^^^ expected type parameter `T`, found integer
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type parameter `T`
[INFO] [stdout]                         found type `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 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 9 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "9b1c7375505847abfa03fae04cbfdb139bb2831efd2c76eb6c25a6ad0dfcf801", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9b1c7375505847abfa03fae04cbfdb139bb2831efd2c76eb6c25a6ad0dfcf801", kill_on_drop: false }`
[INFO] [stdout] 9b1c7375505847abfa03fae04cbfdb139bb2831efd2c76eb6c25a6ad0dfcf801
