[INFO] cloning repository https://github.com/mleung123/CSC261Project2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mleung123/CSC261Project2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmleung123%2FCSC261Project2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmleung123%2FCSC261Project2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f941af8b176bb38ed19777700d94b78887dde0c [INFO] checking mleung123/CSC261Project2 against master#8f08b3a32478b8d0507732800ecb548a76e0fd0c for pr-144157 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmleung123%2FCSC261Project2" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mleung123/CSC261Project2 [INFO] finished tweaking git repo https://github.com/mleung123/CSC261Project2 [INFO] tweaked toml for git repo https://github.com/mleung123/CSC261Project2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mleung123/CSC261Project2 on toolchain 8f08b3a32478b8d0507732800ecb548a76e0fd0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mleung123/CSC261Project2 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" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bb49e06297946641a93b3b7f5b392acf3e4fe541fc4c0332b9e6bd1ed88eb36 [INFO] running `Command { std: "docker" "start" "-a" "5bb49e06297946641a93b3b7f5b392acf3e4fe541fc4c0332b9e6bd1ed88eb36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bb49e06297946641a93b3b7f5b392acf3e4fe541fc4c0332b9e6bd1ed88eb36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bb49e06297946641a93b3b7f5b392acf3e4fe541fc4c0332b9e6bd1ed88eb36", kill_on_drop: false }` [INFO] [stdout] 5bb49e06297946641a93b3b7f5b392acf3e4fe541fc4c0332b9e6bd1ed88eb36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+8f08b3a32478b8d0507732800ecb548a76e0fd0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d131c08132db9c1cf13939a53aac2974939de70991a07678529e240d78fbec6f [INFO] running `Command { std: "docker" "start" "-a" "d131c08132db9c1cf13939a53aac2974939de70991a07678529e240d78fbec6f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking CSC261Project2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | let target = (reward_f + (self.gamma * next_q_max)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - let target = (reward_f + (self.gamma * next_q_max)); [INFO] [stdout] 206 + let target = reward_f + (self.gamma * next_q_max); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | let target = (reward_f + (self.gamma * next_q_max)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - let target = (reward_f + (self.gamma * next_q_max)); [INFO] [stdout] 206 + let target = reward_f + (self.gamma * next_q_max); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let mut reply = NegotiationMessage::create_random(&mut rng, message != NegotiationMessage::Empty); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_accept` [INFO] [stdout] --> src/main.rs:175:81 [INFO] [stdout] | [INFO] [stdout] 175 | fn compute_reward_and_update_q(&mut self, final_offer: &NegotiationMessage, is_accept: bool, num_rounds:i32) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_accept` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut reward_f = reward as f32; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:191:25 [INFO] [stdout] | [INFO] [stdout] 191 | let (state, mut action) = self.episode_history[i].clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_message` is never read [INFO] [stdout] --> src/main.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 261 | current_message = agent_1_offer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep_num` [INFO] [stdout] --> src/main.rs:242:92 [INFO] [stdout] | [INFO] [stdout] 242 | fn episode_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, ep_num: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ep_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:26 [INFO] [stdout] | [INFO] [stdout] 242 | fn episode_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, ep_num: u32) { [INFO] [stdout] | -----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | fn episode_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, ep_num: u32) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:344:24 [INFO] [stdout] | [INFO] [stdout] 344 | fn epoch_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, n_episodes: u32, epoch: usize) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:344:45 [INFO] [stdout] | [INFO] [stdout] 344 | fn epoch_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, n_episodes: u32, epoch: usize) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRINTING` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const PRINTING: bool = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rng.reseed(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 152 | let _ = rng.reseed(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | rng.reseed(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = rng.reseed(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let mut reply = NegotiationMessage::create_random(&mut rng, message != NegotiationMessage::Empty); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_accept` [INFO] [stdout] --> src/main.rs:175:81 [INFO] [stdout] | [INFO] [stdout] 175 | fn compute_reward_and_update_q(&mut self, final_offer: &NegotiationMessage, is_accept: bool, num_rounds:i32) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_accept` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut reward_f = reward as f32; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:191:25 [INFO] [stdout] | [INFO] [stdout] 191 | let (state, mut action) = self.episode_history[i].clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_message` is never read [INFO] [stdout] --> src/main.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 261 | current_message = agent_1_offer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ep_num` [INFO] [stdout] --> src/main.rs:242:92 [INFO] [stdout] | [INFO] [stdout] 242 | fn episode_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, ep_num: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ep_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:26 [INFO] [stdout] | [INFO] [stdout] 242 | fn episode_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, ep_num: u32) { [INFO] [stdout] | -----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | fn episode_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, ep_num: u32) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:344:24 [INFO] [stdout] | [INFO] [stdout] 344 | fn epoch_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, n_episodes: u32, epoch: usize) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:344:45 [INFO] [stdout] | [INFO] [stdout] 344 | fn epoch_driver(mut agent_1: &mut T, mut agent_2: &mut T, exploration_rate: f32, n_episodes: u32, epoch: usize) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRINTING` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const PRINTING: bool = false; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rng.reseed(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 152 | let _ = rng.reseed(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | rng.reseed(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 158 | let _ = rng.reseed(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.93s [INFO] running `Command { std: "docker" "inspect" "d131c08132db9c1cf13939a53aac2974939de70991a07678529e240d78fbec6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d131c08132db9c1cf13939a53aac2974939de70991a07678529e240d78fbec6f", kill_on_drop: false }` [INFO] [stdout] d131c08132db9c1cf13939a53aac2974939de70991a07678529e240d78fbec6f