[INFO] cloning repository https://github.com/jawline/mdp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jawline/mdp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjawline%2Fmdp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjawline%2Fmdp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cf4618d31e21c93e57bfc8082970147d3ef1f769 [INFO] testing jawline/mdp against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjawline%2Fmdp" "/workspace/builds/worker-72/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-72/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jawline/mdp on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jawline/mdp [INFO] finished tweaking git repo https://github.com/jawline/mdp [INFO] tweaked toml for git repo https://github.com/jawline/mdp written to /workspace/builds/worker-72/source/Cargo.toml [INFO] crate git repo https://github.com/jawline/mdp already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70f255e2f705d3560c8ecbc906f4bb82a528c25c620b930d06d6e085003faec9 [INFO] running `Command { std: "docker" "start" "-a" "70f255e2f705d3560c8ecbc906f4bb82a528c25c620b930d06d6e085003faec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70f255e2f705d3560c8ecbc906f4bb82a528c25c620b930d06d6e085003faec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70f255e2f705d3560c8ecbc906f4bb82a528c25c620b930d06d6e085003faec9", kill_on_drop: false }` [INFO] [stdout] 70f255e2f705d3560c8ecbc906f4bb82a528c25c620b930d06d6e085003faec9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d8b950a0d67eba19acaae4848b73070393823c45ecd5836f09f31218dbee13c [INFO] running `Command { std: "docker" "start" "-a" "5d8b950a0d67eba19acaae4848b73070393823c45ecd5836f09f31218dbee13c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rand_core v0.2.1 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling rand v0.5.4 [INFO] [stderr] Compiling markov v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GreedyAgent` [INFO] [stdout] --> src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use strategies::greedy::{ GreedyAgent }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarkovChainAgent` [INFO] [stdout] --> src/main.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use strategies::markov::{ MarkovChainAgent }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/matrix/mod.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn print_matrix(mat: &Matrix) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - pub fn print_matrix(mat: &Matrix) { [INFO] [stdout] 13 + pub fn print_matrix(mat: &dyn Matrix) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/greedy.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | fn select_transfer(&self, from: usize, possible: &Vec<(usize, f32, f32)>) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/greedy.rs:26:72 [INFO] [stdout] | [INFO] [stdout] 26 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/greedy.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/strategies/greedy.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/greedy.rs:32:67 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/strategies/greedy.rs:32:80 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/strategies/greedy.rs:32:91 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/greedy.rs:32:104 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/markov.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | fn select_transfer(&self, from: usize, possible: &Vec<(usize, f32, f32)>) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/markov.rs:36:72 [INFO] [stdout] | [INFO] [stdout] 36 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/markov.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/strategies/markov.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/markov.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/strategies/markov.rs:42:80 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/strategies/markov.rs:42:91 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/markov.rs:42:104 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:54:72 [INFO] [stdout] | [INFO] [stdout] 54 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:58:30 [INFO] [stdout] | [INFO] [stdout] 58 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:58:104 [INFO] [stdout] | [INFO] [stdout] 58 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/matrix/dense.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(default: T, width: usize, height: usize) -> DenseMatrix { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 41s [INFO] running `Command { std: "docker" "inspect" "5d8b950a0d67eba19acaae4848b73070393823c45ecd5836f09f31218dbee13c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d8b950a0d67eba19acaae4848b73070393823c45ecd5836f09f31218dbee13c", kill_on_drop: false }` [INFO] [stdout] 5d8b950a0d67eba19acaae4848b73070393823c45ecd5836f09f31218dbee13c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7dccd66ba8e6c7e93ff60a36fa1cb6ef8db38177e09177bc1128fd0e0c841cbf [INFO] running `Command { std: "docker" "start" "-a" "7dccd66ba8e6c7e93ff60a36fa1cb6ef8db38177e09177bc1128fd0e0c841cbf", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling markov v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GreedyAgent` [INFO] [stdout] --> src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use strategies::greedy::{ GreedyAgent }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarkovChainAgent` [INFO] [stdout] --> src/main.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use strategies::markov::{ MarkovChainAgent }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/matrix/mod.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn print_matrix(mat: &Matrix) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - pub fn print_matrix(mat: &Matrix) { [INFO] [stdout] 13 + pub fn print_matrix(mat: &dyn Matrix) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/greedy.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | fn select_transfer(&self, from: usize, possible: &Vec<(usize, f32, f32)>) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/greedy.rs:26:72 [INFO] [stdout] | [INFO] [stdout] 26 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/greedy.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/strategies/greedy.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/greedy.rs:32:67 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/strategies/greedy.rs:32:80 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/strategies/greedy.rs:32:91 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/greedy.rs:32:104 [INFO] [stdout] | [INFO] [stdout] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/markov.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | fn select_transfer(&self, from: usize, possible: &Vec<(usize, f32, f32)>) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/markov.rs:36:72 [INFO] [stdout] | [INFO] [stdout] 36 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/markov.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/strategies/markov.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/markov.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/strategies/markov.rs:42:80 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/strategies/markov.rs:42:91 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/markov.rs:42:104 [INFO] [stdout] | [INFO] [stdout] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:54:72 [INFO] [stdout] | [INFO] [stdout] 54 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `process` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:58:30 [INFO] [stdout] | [INFO] [stdout] 58 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `success` [INFO] [stdout] --> src/strategies/reinforcement/naive.rs:58:104 [INFO] [stdout] | [INFO] [stdout] 58 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/matrix/dense.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(default: T, width: usize, height: usize) -> DenseMatrix { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.83s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/markov-52864924d84edba5) [INFO] running `Command { std: "docker" "inspect" "7dccd66ba8e6c7e93ff60a36fa1cb6ef8db38177e09177bc1128fd0e0c841cbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dccd66ba8e6c7e93ff60a36fa1cb6ef8db38177e09177bc1128fd0e0c841cbf", kill_on_drop: false }` [INFO] [stdout] 7dccd66ba8e6c7e93ff60a36fa1cb6ef8db38177e09177bc1128fd0e0c841cbf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 88453548a003bd99ddfc0fd8eac2f55d6020af165f68947d566c019d050e647e [INFO] running `Command { std: "docker" "start" "-a" "88453548a003bd99ddfc0fd8eac2f55d6020af165f68947d566c019d050e647e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `GreedyAgent` [INFO] [stderr] --> src/main.rs:11:27 [INFO] [stderr] | [INFO] [stderr] 11 | use strategies::greedy::{ GreedyAgent }; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `MarkovChainAgent` [INFO] [stderr] --> src/main.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 12 | use strategies::markov::{ MarkovChainAgent }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/matrix/mod.rs:13:46 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn print_matrix(mat: &Matrix) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 - pub fn print_matrix(mat: &Matrix) { [INFO] [stderr] 13 + pub fn print_matrix(mat: &dyn Matrix) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/strategies/greedy.rs:15:28 [INFO] [stderr] | [INFO] [stderr] 15 | fn select_transfer(&self, from: usize, possible: &Vec<(usize, f32, f32)>) -> Option { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `success` [INFO] [stderr] --> src/strategies/greedy.rs:26:72 [INFO] [stderr] | [INFO] [stderr] 26 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `process` [INFO] [stderr] --> src/strategies/greedy.rs:32:30 [INFO] [stderr] | [INFO] [stderr] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/strategies/greedy.rs:32:52 [INFO] [stderr] | [INFO] [stderr] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/strategies/greedy.rs:32:67 [INFO] [stderr] | [INFO] [stderr] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `to` [INFO] [stderr] --> src/strategies/greedy.rs:32:80 [INFO] [stderr] | [INFO] [stderr] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reward` [INFO] [stderr] --> src/strategies/greedy.rs:32:91 [INFO] [stderr] | [INFO] [stderr] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `success` [INFO] [stderr] --> src/strategies/greedy.rs:32:104 [INFO] [stderr] | [INFO] [stderr] 32 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/strategies/markov.rs:16:28 [INFO] [stderr] | [INFO] [stderr] 16 | fn select_transfer(&self, from: usize, possible: &Vec<(usize, f32, f32)>) -> Option { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `success` [INFO] [stderr] --> src/strategies/markov.rs:36:72 [INFO] [stderr] | [INFO] [stderr] 36 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `process` [INFO] [stderr] --> src/strategies/markov.rs:42:30 [INFO] [stderr] | [INFO] [stderr] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/strategies/markov.rs:42:52 [INFO] [stderr] | [INFO] [stderr] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/strategies/markov.rs:42:67 [INFO] [stderr] | [INFO] [stderr] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `to` [INFO] [stderr] --> src/strategies/markov.rs:42:80 [INFO] [stderr] | [INFO] [stderr] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reward` [INFO] [stderr] --> src/strategies/markov.rs:42:91 [INFO] [stderr] | [INFO] [stderr] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `success` [INFO] [stderr] --> src/strategies/markov.rs:42:104 [INFO] [stderr] | [INFO] [stderr] 42 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) {} [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `process` [INFO] [stderr] --> src/strategies/reinforcement/naive.rs:11:25 [INFO] [stderr] | [INFO] [stderr] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/strategies/reinforcement/naive.rs:11:47 [INFO] [stderr] | [INFO] [stderr] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `to` [INFO] [stderr] --> src/strategies/reinforcement/naive.rs:11:60 [INFO] [stderr] | [INFO] [stderr] 11 | fn try_transfer(&self, process: &Process, from: usize, to: usize) -> bool { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `success` [INFO] [stderr] --> src/strategies/reinforcement/naive.rs:54:72 [INFO] [stderr] | [INFO] [stderr] 54 | fn select_reward(&self, process: &Process, from: usize, to: usize, success: bool) -> f32 { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `process` [INFO] [stderr] --> src/strategies/reinforcement/naive.rs:58:30 [INFO] [stderr] | [INFO] [stderr] 58 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `success` [INFO] [stderr] --> src/strategies/reinforcement/naive.rs:58:104 [INFO] [stderr] | [INFO] [stderr] 58 | fn punish_action(&mut self, process: &Process, state: &State, from: usize, to: usize, reward: f32, success: bool) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_success` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/matrix/dense.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn new(default: T, width: usize, height: usize) -> DenseMatrix { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `markov` (bin "markov" test) generated 26 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.98s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/markov-52864924d84edba5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "88453548a003bd99ddfc0fd8eac2f55d6020af165f68947d566c019d050e647e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88453548a003bd99ddfc0fd8eac2f55d6020af165f68947d566c019d050e647e", kill_on_drop: false }` [INFO] [stdout] 88453548a003bd99ddfc0fd8eac2f55d6020af165f68947d566c019d050e647e