[INFO] cloning repository https://github.com/tree0303/zixzaa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tree0303/zixzaa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftree0303%2Fzixzaa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftree0303%2Fzixzaa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3a693afcde6ea40803917b9230cafaf6085f7b38 [INFO] checking tree0303/zixzaa against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftree0303%2Fzixzaa" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tree0303/zixzaa on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tree0303/zixzaa [INFO] finished tweaking git repo https://github.com/tree0303/zixzaa [INFO] tweaked toml for git repo https://github.com/tree0303/zixzaa written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tree0303/zixzaa 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a5b2fc80b590bbe3dfcfefdec53e4d9ac4eb1a4f60dc59832cf8bcb0a1f2f33 [INFO] running `Command { std: "docker" "start" "-a" "1a5b2fc80b590bbe3dfcfefdec53e4d9ac4eb1a4f60dc59832cf8bcb0a1f2f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a5b2fc80b590bbe3dfcfefdec53e4d9ac4eb1a4f60dc59832cf8bcb0a1f2f33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a5b2fc80b590bbe3dfcfefdec53e4d9ac4eb1a4f60dc59832cf8bcb0a1f2f33", kill_on_drop: false }` [INFO] [stdout] 1a5b2fc80b590bbe3dfcfefdec53e4d9ac4eb1a4f60dc59832cf8bcb0a1f2f33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e6d8f58fb050c7f127c46911f45d24061a8f8168fea97d3f6e0397b5ba81f00 [INFO] running `Command { std: "docker" "start" "-a" "4e6d8f58fb050c7f127c46911f45d24061a8f8168fea97d3f6e0397b5ba81f00", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.88 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.88 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.88 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.88 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.88 [INFO] [stderr] Checking ZIXZA v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `OpenOptions`, `result`, `self` [INFO] [stdout] --> src/load_agent.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path, fs::{OpenOptions, self, File}, io::{BufReader, BufRead}, result}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `csv::Error` [INFO] [stdout] --> src/load_agent.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use csv::Error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mc_vs_random_data_2` [INFO] [stdout] --> src/main.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::collect_data::{mc_vs_random_data_2, mc_vs_mc_data, mc_vs_random_data_ex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenOptions`, `result`, `self` [INFO] [stdout] --> src/load_agent.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path, fs::{OpenOptions, self, File}, io::{BufReader, BufRead}, result}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `csv::Error` [INFO] [stdout] --> src/load_agent.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use csv::Error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mc_vs_random_data_2` [INFO] [stdout] --> src/main.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::collect_data::{mc_vs_random_data_2, mc_vs_mc_data, mc_vs_random_data_ex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/zixza/montecarlo.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | let (state, action, reward, actions) = data; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `po` [INFO] [stdout] --> src/zixza/montecarlo.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let po = match self.q.iter().find(|((c, _), _)| *c ==10456235733654307266) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_po` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gd` [INFO] [stdout] --> src/zixza/montecarlo.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let gd = match self.q.iter().find(|((c, _), _)| *c ==10700626897810751490) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/zixza/montecarlo.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let input = loop { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopnum` [INFO] [stdout] --> src/zixza/montecarlo.rs:139:33 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn param_set(&mut self, loopnum: usize){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopnum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/zixza/montecarlo.rs:207:115 [INFO] [stdout] | [INFO] [stdout] 207 | ...&Vec<(u8, u8, u8)>, epsilon: f32, a: (u8, u8, u8)) -> HashMap<(u8, u8), f32>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/zixza/montecarlo.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | qs.iter().find(|(&k, &v)| *v == max_num) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/zixza/montecarlo.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | let (state, action, reward, actions) = data; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `po` [INFO] [stdout] --> src/zixza/montecarlo.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let po = match self.q.iter().find(|((c, _), _)| *c ==10456235733654307266) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_po` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gd` [INFO] [stdout] --> src/zixza/montecarlo.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let gd = match self.q.iter().find(|((c, _), _)| *c ==10700626897810751490) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/zixza/montecarlo.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let input = loop { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopnum` [INFO] [stdout] --> src/zixza/montecarlo.rs:139:33 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn param_set(&mut self, loopnum: usize){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopnum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/zixza/montecarlo.rs:207:115 [INFO] [stdout] | [INFO] [stdout] 207 | ...&Vec<(u8, u8, u8)>, epsilon: f32, a: (u8, u8, u8)) -> HashMap<(u8, u8), f32>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/zixza/montecarlo.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | qs.iter().find(|(&k, &v)| *v == max_num) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | let mut how_win = 0; [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: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | how_win = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/collect_data.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let str = if first {"first"}else {"second"}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | let mut how_win = 0; [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: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | how_win = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [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: variable `number` is assigned to, but never used [INFO] [stdout] --> src/collect_data.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut number = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_number` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number` is never read [INFO] [stdout] --> src/collect_data.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | number+=1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model_num` [INFO] [stdout] --> src/collect_data.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let model_num = filename.chars().filter_map(|f| f.to_string().parse().ok()).collect::>()[0]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_model_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/collect_data.rs:141:44 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn mc_vs_random_data_ex(filename: &str,index:usize , first: bool,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_win` [INFO] [stdout] --> src/main.rs:83:44 [INFO] [stdout] | [INFO] [stdout] 83 | let (next_state, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/collect_data.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let str = if first {"first"}else {"second"}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:159:44 [INFO] [stdout] | [INFO] [stdout] 159 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `state` is assigned to, but never used [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut state = game.get_state(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_state` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:196:26 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:196:40 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `state` is never read [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | state = next_state; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [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: `first` [INFO] [stdout] --> src/main.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let first = if i <10000 {true}else{false}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `number` is assigned to, but never used [INFO] [stdout] --> src/collect_data.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut number = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_number` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number` is never read [INFO] [stdout] --> src/collect_data.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | number+=1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model_num` [INFO] [stdout] --> src/collect_data.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let model_num = filename.chars().filter_map(|f| f.to_string().parse().ok()).collect::>()[0]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_model_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/collect_data.rs:141:44 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn mc_vs_random_data_ex(filename: &str,index:usize , first: bool,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:404:29 [INFO] [stdout] | [INFO] [stdout] 404 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:421:29 [INFO] [stdout] | [INFO] [stdout] 421 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:486:21 [INFO] [stdout] | [INFO] [stdout] 486 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 468 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActionKey` is never constructed [INFO] [stdout] --> src/zixza/montecarlo.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ActionKey(usize, DiceMove, usize); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `q_show` is never used [INFO] [stdout] --> src/zixza/montecarlo.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl McAgent { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn q_show(&self, max_count: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mc_vs_random_data_2` is never used [INFO] [stdout] --> src/collect_data.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mc_vs_random_data_2(filename: &str,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_win` [INFO] [stdout] --> src/main.rs:83:44 [INFO] [stdout] | [INFO] [stdout] 83 | let (next_state, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:159:44 [INFO] [stdout] | [INFO] [stdout] 159 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `state` is assigned to, but never used [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut state = game.get_state(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_state` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:196:26 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:196:40 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `state` is never read [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | state = next_state; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let first = if i <10000 {true}else{false}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:404:29 [INFO] [stdout] | [INFO] [stdout] 404 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:421:29 [INFO] [stdout] | [INFO] [stdout] 421 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:486:21 [INFO] [stdout] | [INFO] [stdout] 486 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 468 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActionKey` is never constructed [INFO] [stdout] --> src/zixza/montecarlo.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ActionKey(usize, DiceMove, usize); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `q_show` is never used [INFO] [stdout] --> src/zixza/montecarlo.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl McAgent { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn q_show(&self, max_count: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mc_vs_random_data_2` is never used [INFO] [stdout] --> src/collect_data.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mc_vs_random_data_2(filename: &str,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.33s [INFO] running `Command { std: "docker" "inspect" "4e6d8f58fb050c7f127c46911f45d24061a8f8168fea97d3f6e0397b5ba81f00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e6d8f58fb050c7f127c46911f45d24061a8f8168fea97d3f6e0397b5ba81f00", kill_on_drop: false }` [INFO] [stdout] 4e6d8f58fb050c7f127c46911f45d24061a8f8168fea97d3f6e0397b5ba81f00 [INFO] checking tree0303/zixzaa against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftree0303%2Fzixzaa" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tree0303/zixzaa on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tree0303/zixzaa [INFO] finished tweaking git repo https://github.com/tree0303/zixzaa [INFO] tweaked toml for git repo https://github.com/tree0303/zixzaa written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tree0303/zixzaa 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 307fbb48fda1768eb61f7fdf0d803a17a5aae41588e8b89f621e9aae5de8db7f [INFO] running `Command { std: "docker" "start" "-a" "307fbb48fda1768eb61f7fdf0d803a17a5aae41588e8b89f621e9aae5de8db7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "307fbb48fda1768eb61f7fdf0d803a17a5aae41588e8b89f621e9aae5de8db7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "307fbb48fda1768eb61f7fdf0d803a17a5aae41588e8b89f621e9aae5de8db7f", kill_on_drop: false }` [INFO] [stdout] 307fbb48fda1768eb61f7fdf0d803a17a5aae41588e8b89f621e9aae5de8db7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7a15374aa10c761145dc61437ecd5028413a67005ed317287cd3ca1de3caf9a [INFO] running `Command { std: "docker" "start" "-a" "b7a15374aa10c761145dc61437ecd5028413a67005ed317287cd3ca1de3caf9a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.88 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.88 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.88 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.88 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.88 [INFO] [stderr] Checking ZIXZA v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `OpenOptions`, `result`, `self` [INFO] [stdout] --> src/load_agent.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path, fs::{OpenOptions, self, File}, io::{BufReader, BufRead}, result}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `csv::Error` [INFO] [stdout] --> src/load_agent.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use csv::Error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mc_vs_random_data_2` [INFO] [stdout] --> src/main.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::collect_data::{mc_vs_random_data_2, mc_vs_mc_data, mc_vs_random_data_ex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenOptions`, `result`, `self` [INFO] [stdout] --> src/load_agent.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, path::Path, fs::{OpenOptions, self, File}, io::{BufReader, BufRead}, result}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `csv::Error` [INFO] [stdout] --> src/load_agent.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use csv::Error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mc_vs_random_data_2` [INFO] [stdout] --> src/main.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::collect_data::{mc_vs_random_data_2, mc_vs_mc_data, mc_vs_random_data_ex}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/zixza/montecarlo.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | let (state, action, reward, actions) = data; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `po` [INFO] [stdout] --> src/zixza/montecarlo.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let po = match self.q.iter().find(|((c, _), _)| *c ==10456235733654307266) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_po` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gd` [INFO] [stdout] --> src/zixza/montecarlo.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let gd = match self.q.iter().find(|((c, _), _)| *c ==10700626897810751490) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/zixza/montecarlo.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let input = loop { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopnum` [INFO] [stdout] --> src/zixza/montecarlo.rs:139:33 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn param_set(&mut self, loopnum: usize){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopnum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/zixza/montecarlo.rs:207:115 [INFO] [stdout] | [INFO] [stdout] 207 | ...&Vec<(u8, u8, u8)>, epsilon: f32, a: (u8, u8, u8)) -> HashMap<(u8, u8), f32>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/zixza/montecarlo.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | qs.iter().find(|(&k, &v)| *v == max_num) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | let mut how_win = 0; [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: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | how_win = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/zixza/montecarlo.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | let (state, action, reward, actions) = data; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `po` [INFO] [stdout] --> src/zixza/montecarlo.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let po = match self.q.iter().find(|((c, _), _)| *c ==10456235733654307266) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_po` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gd` [INFO] [stdout] --> src/zixza/montecarlo.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | let gd = match self.q.iter().find(|((c, _), _)| *c ==10700626897810751490) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/zixza/montecarlo.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let input = loop { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopnum` [INFO] [stdout] --> src/zixza/montecarlo.rs:139:33 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn param_set(&mut self, loopnum: usize){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopnum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/zixza/montecarlo.rs:207:115 [INFO] [stdout] | [INFO] [stdout] 207 | ...&Vec<(u8, u8, u8)>, epsilon: f32, a: (u8, u8, u8)) -> HashMap<(u8, u8), f32>{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/zixza/montecarlo.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | qs.iter().find(|(&k, &v)| *v == max_num) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/collect_data.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let str = if first {"first"}else {"second"}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [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: variable `number` is assigned to, but never used [INFO] [stdout] --> src/collect_data.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut number = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_number` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number` is never read [INFO] [stdout] --> src/collect_data.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | number+=1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model_num` [INFO] [stdout] --> src/collect_data.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let model_num = filename.chars().filter_map(|f| f.to_string().parse().ok()).collect::>()[0]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_model_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/collect_data.rs:141:44 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn mc_vs_random_data_ex(filename: &str,index:usize , first: bool,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_win` [INFO] [stdout] --> src/main.rs:83:44 [INFO] [stdout] | [INFO] [stdout] 83 | let (next_state, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:159:44 [INFO] [stdout] | [INFO] [stdout] 159 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `state` is assigned to, but never used [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut state = game.get_state(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_state` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:196:26 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:196:40 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `state` is never read [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | state = next_state; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let first = if i <10000 {true}else{false}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:404:29 [INFO] [stdout] | [INFO] [stdout] 404 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:421:29 [INFO] [stdout] | [INFO] [stdout] 421 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:486:21 [INFO] [stdout] | [INFO] [stdout] 486 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 468 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | let mut how_win = 0; [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: value assigned to `how_win` is never read [INFO] [stdout] --> src/zixza.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | how_win = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActionKey` is never constructed [INFO] [stdout] --> src/zixza/montecarlo.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ActionKey(usize, DiceMove, usize); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `q_show` is never used [INFO] [stdout] --> src/zixza/montecarlo.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl McAgent { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn q_show(&self, max_count: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mc_vs_random_data_2` is never used [INFO] [stdout] --> src/collect_data.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mc_vs_random_data_2(filename: &str,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/collect_data.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let str = if first {"first"}else {"second"}; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [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: variable `number` is assigned to, but never used [INFO] [stdout] --> src/collect_data.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut number = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_number` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number` is never read [INFO] [stdout] --> src/collect_data.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | number+=1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model_num` [INFO] [stdout] --> src/collect_data.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let model_num = filename.chars().filter_map(|f| f.to_string().parse().ok()).collect::>()[0]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_model_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/collect_data.rs:141:44 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn mc_vs_random_data_ex(filename: &str,index:usize , first: bool,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collect_data.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut str_buf = format!("{},{},{}",mc_win, how, steps); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/load_agent.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Err(e) => panic!("faild to open file"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `vec` is never read [INFO] [stdout] --> src/load_agent.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut vec = Vec::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_win` [INFO] [stdout] --> src/main.rs:83:44 [INFO] [stdout] | [INFO] [stdout] 83 | let (next_state, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:159:44 [INFO] [stdout] | [INFO] [stdout] 159 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `state` is assigned to, but never used [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut state = game.get_state(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_state` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:196:26 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `how_to_win` [INFO] [stdout] --> src/main.rs:196:40 [INFO] [stdout] | [INFO] [stdout] 196 | let (next_state, reward, done, how_to_win) = game.step(action); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_how_to_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `state` is never read [INFO] [stdout] --> src/main.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | state = next_state; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:286:13 [INFO] [stdout] | [INFO] [stdout] 286 | let first = if i <10000 {true}else{false}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:404:29 [INFO] [stdout] | [INFO] [stdout] 404 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reward` [INFO] [stdout] --> src/main.rs:421:29 [INFO] [stdout] | [INFO] [stdout] 421 | let (_, reward, done, how_win) = game.step(action); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inmatch` is never read [INFO] [stdout] --> src/main.rs:486:21 [INFO] [stdout] | [INFO] [stdout] 486 | let mut inmatch = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 468 | let mut random = RandomAgent::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActionKey` is never constructed [INFO] [stdout] --> src/zixza/montecarlo.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ActionKey(usize, DiceMove, usize); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `q_show` is never used [INFO] [stdout] --> src/zixza/montecarlo.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl McAgent { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn q_show(&self, max_count: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mc_vs_random_data_2` is never used [INFO] [stdout] --> src/collect_data.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn mc_vs_random_data_2(filename: &str,mc_win: bool, how: &str, steps: usize) {//first, mc_win, how, steps [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.16s [INFO] running `Command { std: "docker" "inspect" "b7a15374aa10c761145dc61437ecd5028413a67005ed317287cd3ca1de3caf9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7a15374aa10c761145dc61437ecd5028413a67005ed317287cd3ca1de3caf9a", kill_on_drop: false }` [INFO] [stdout] b7a15374aa10c761145dc61437ecd5028413a67005ed317287cd3ca1de3caf9a