[INFO] cloning repository https://github.com/zesterer/funkicrab [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zesterer/funkicrab" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzesterer%2Ffunkicrab", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzesterer%2Ffunkicrab'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 98528cc593478391a0ef0f91ff533592cf263914 [INFO] checking zesterer/funkicrab against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzesterer%2Ffunkicrab" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zesterer/funkicrab on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zesterer/funkicrab [INFO] finished tweaking git repo https://github.com/zesterer/funkicrab [INFO] tweaked toml for git repo https://github.com/zesterer/funkicrab written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/zesterer/funkicrab already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bimap v0.1.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1f8ac0ee96ffe707af7d0e5f184f760cc4ab65bfaa095b9c190e2a90a4caa56c [INFO] running `Command { std: "docker" "start" "-a" "1f8ac0ee96ffe707af7d0e5f184f760cc4ab65bfaa095b9c190e2a90a4caa56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f8ac0ee96ffe707af7d0e5f184f760cc4ab65bfaa095b9c190e2a90a4caa56c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f8ac0ee96ffe707af7d0e5f184f760cc4ab65bfaa095b9c190e2a90a4caa56c", kill_on_drop: false }` [INFO] [stdout] 1f8ac0ee96ffe707af7d0e5f184f760cc4ab65bfaa095b9c190e2a90a4caa56c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3aebcc7acfeb69ed478e5442282c1c81e2ffb77ab67eef904f1fa8b2a5c16d66 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3aebcc7acfeb69ed478e5442282c1c81e2ffb77ab67eef904f1fa8b2a5c16d66", kill_on_drop: false }` [INFO] [stderr] Checking bimap v0.1.5 [INFO] [stderr] Checking funkicrab v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::Error` [INFO] [stdout] --> src/exec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::Error; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hir.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::FromIterator` [INFO] [stdout] --> src/llir.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | iter::FromIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/llir.rs:242:20 [INFO] [stdout] | [INFO] [stdout] 242 | if (if let CellAccessInfo::Exactly(cells) = &cell_reads { [INFO] [stdout] | ____________________^ [INFO] [stdout] 243 | | cells.len() == 0 [INFO] [stdout] 244 | | } else { [INFO] [stdout] 245 | | false [INFO] [stdout] 246 | | }) { [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 | if if let CellAccessInfo::Exactly(cells) = &cell_reads { [INFO] [stdout] 243 | cells.len() == 0 [INFO] [stdout] 244 | } else { [INFO] [stdout] 245 | false [INFO] [stdout] 246 | } { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Error` [INFO] [stdout] --> src/exec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::Error; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hir.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::FromIterator` [INFO] [stdout] --> src/llir.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | iter::FromIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/llir.rs:242:20 [INFO] [stdout] | [INFO] [stdout] 242 | if (if let CellAccessInfo::Exactly(cells) = &cell_reads { [INFO] [stdout] | ____________________^ [INFO] [stdout] 243 | | cells.len() == 0 [INFO] [stdout] 244 | | } else { [INFO] [stdout] 245 | | false [INFO] [stdout] 246 | | }) { [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 | if if let CellAccessInfo::Exactly(cells) = &cell_reads { [INFO] [stdout] 243 | cells.len() == 0 [INFO] [stdout] 244 | } else { [INFO] [stdout] 245 | false [INFO] [stdout] 246 | } { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellAccessInfo` [INFO] [stdout] --> src/opt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | CellAccessInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CellAccessInfo` [INFO] [stdout] --> src/opt.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | CellAccessInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/opt.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 65 | / loop { [INFO] [stdout] 66 | | let new_prog = optimise_program(prog.clone()); [INFO] [stdout] 67 | | if prog == new_prog { [INFO] [stdout] 68 | | return prog; [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] 72 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 73 | prog [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hir.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | o => panic!("Unknown operation: {:?}", o), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hir.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | _ => panic!("Unknown section type!"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/llir.rs:357:21 [INFO] [stdout] | [INFO] [stdout] 357 | t => panic!("Unknown token: {:?}", t), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/llir.rs:484:21 [INFO] [stdout] | [INFO] [stdout] 484 | _ => panic!("Unknown section type!"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bracket_count` [INFO] [stdout] --> src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut bracket_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bracket_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ir.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | return Some(copymuls.into_iter().map(|(shift, (i, f))| (shift, f)).collect()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inst` [INFO] [stdout] --> src/ir.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | inst => { return None; }, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_inst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ir.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | if let Some(&(i, n)) = copymuls.get(&base_shift) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/ir.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | if let Some(&(i, n)) = copymuls.get(&base_shift) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | (c, Inst::Add(_, 0)) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 117 | (c, Inst::CopyMul(_, _, 0)) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | (c, Inst::Nop) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | (c, Inst::Move(0)) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val_r` [INFO] [stdout] --> src/ir.rs:224:25 [INFO] [stdout] | [INFO] [stdout] 224 | let val_r = get_cell_val(&cells, idx_r); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_val_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ir.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | i => { ir.pop(); }, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/comp.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | Inst::Add(r, 0) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_id_count` [INFO] [stdout] --> src/hir.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut local_id_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_id_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/hir.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut code = String::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/llir.rs:142:57 [INFO] [stdout] | [INFO] [stdout] 142 | let change_reads = self.changes.iter().filter(|(idx, c)| if let Change::Incr(_) = c { true } else { false }).map(|(idx, _)| *idx); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/llir.rs:240:30 [INFO] [stdout] | [INFO] [stdout] 240 | ValInfo::Exactly(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/llir.rs:288:28 [INFO] [stdout] | [INFO] [stdout] 288 | Section::Input(input) => ValInfo::Exactly(0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut bracket_count = 0; [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 does not need to be mutable [INFO] [stdout] --> src/ir.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | let mut cells = Vec::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/opt.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 65 | / loop { [INFO] [stdout] 66 | | let new_prog = optimise_program(prog.clone()); [INFO] [stdout] 67 | | if prog == new_prog { [INFO] [stdout] 68 | | return prog; [INFO] [stdout] ... | [INFO] [stdout] 71 | | } [INFO] [stdout] 72 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 73 | prog [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hir.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | o => panic!("Unknown operation: {:?}", o), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/hir.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | _ => panic!("Unknown section type!"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/llir.rs:357:21 [INFO] [stdout] | [INFO] [stdout] 357 | t => panic!("Unknown token: {:?}", t), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/llir.rs:484:21 [INFO] [stdout] | [INFO] [stdout] 484 | _ => panic!("Unknown section type!"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bracket_count` [INFO] [stdout] --> src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut bracket_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bracket_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ir.rs:64:60 [INFO] [stdout] | [INFO] [stdout] 64 | return Some(copymuls.into_iter().map(|(shift, (i, f))| (shift, f)).collect()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inst` [INFO] [stdout] --> src/ir.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | inst => { return None; }, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_inst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ir.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | if let Some(&(i, n)) = copymuls.get(&base_shift) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/ir.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | if let Some(&(i, n)) = copymuls.get(&base_shift) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | (c, Inst::Add(_, 0)) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 117 | (c, Inst::CopyMul(_, _, 0)) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | (c, Inst::Nop) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/ir.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | (c, Inst::Move(0)) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val_r` [INFO] [stdout] --> src/ir.rs:224:25 [INFO] [stdout] | [INFO] [stdout] 224 | let val_r = get_cell_val(&cells, idx_r); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_val_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ir.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | i => { ir.pop(); }, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/comp.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | Inst::Add(r, 0) => {}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_id_count` [INFO] [stdout] --> src/hir.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut local_id_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_id_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/hir.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut code = String::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/llir.rs:142:57 [INFO] [stdout] | [INFO] [stdout] 142 | let change_reads = self.changes.iter().filter(|(idx, c)| if let Change::Incr(_) = c { true } else { false }).map(|(idx, _)| *idx); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/llir.rs:240:30 [INFO] [stdout] | [INFO] [stdout] 240 | ValInfo::Exactly(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/llir.rs:288:28 [INFO] [stdout] | [INFO] [stdout] 288 | Section::Input(input) => ValInfo::Exactly(0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut bracket_count = 0; [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 does not need to be mutable [INFO] [stdout] --> src/hir.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut local_id_count = 0; [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/hir.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut code = String::new(); [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/ir.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | let mut cells = Vec::new(); [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/hir.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let mut local_id_count = 0; [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/hir.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut code = String::new(); [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/opt.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn optimise_sections(mut sections: Vec
) -> Vec
{ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/exec.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Neg` [INFO] [stdout] --> src/hir.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Neg(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_c` [INFO] [stdout] --> src/hir.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn generate_c(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stringify` [INFO] [stdout] --> src/hir.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | fn stringify(&self, proc: Option<&Proc>) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_proc` [INFO] [stdout] --> src/hir.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | fn stringify_proc(proc: &Proc, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_sections` [INFO] [stdout] --> src/hir.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | fn stringify_sections(sections: &Vec
, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Exactly` [INFO] [stdout] --> src/llir.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Exactly(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MultipleOf` [INFO] [stdout] --> src/llir.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | MultipleOf { base: i32, factor: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Exactly` [INFO] [stdout] --> src/llir.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Exactly(HashSet), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EqualOrAbove` [INFO] [stdout] --> src/llir.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | EqualOrAbove(Idx), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Below` [INFO] [stdout] --> src/llir.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | Below(Idx), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Inside` [INFO] [stdout] --> src/llir.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | Inside(Idx, Idx), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Outside` [INFO] [stdout] --> src/llir.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | Outside(Idx, Idx), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Not` [INFO] [stdout] --> src/llir.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Not(HashSet), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Unknown` [INFO] [stdout] --> src/llir.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `union` [INFO] [stdout] --> src/llir.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn union(&self, rel_shift: Idx, other: &CellAccessInfo) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection` [INFO] [stdout] --> src/llir.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn intersection(&self, rel_shift: Idx, other: &CellAccessInfo) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Set` [INFO] [stdout] --> src/llir.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Set(u8), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Const` [INFO] [stdout] --> src/llir.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | Const(u8), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shift` [INFO] [stdout] --> src/llir.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn get_shift(&self) -> ValInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_c` [INFO] [stdout] --> src/llir.rs:371:12 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn generate_c(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG` [INFO] [stdout] --> src/llir.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | const DEBUG: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_basic_section` [INFO] [stdout] --> src/llir.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 374 | fn stringify_basic_section(basic: &BasicSection, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_input_section` [INFO] [stdout] --> src/llir.rs:417:12 [INFO] [stdout] | [INFO] [stdout] 417 | fn stringify_input_section(input: &InputSection, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_loop_section` [INFO] [stdout] --> src/llir.rs:439:12 [INFO] [stdout] | [INFO] [stdout] 439 | fn stringify_loop_section(luup: &LoopSection, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_sections` [INFO] [stdout] --> src/llir.rs:472:12 [INFO] [stdout] | [INFO] [stdout] 472 | fn stringify_sections(sections: &Vec
, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise_calc_shifts` [INFO] [stdout] --> src/opt.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn optimise_calc_shifts(section: &mut Section) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise_sections` [INFO] [stdout] --> src/opt.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn optimise_sections(mut sections: Vec
) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise_program` [INFO] [stdout] --> src/opt.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn optimise_program(mut prog: Program) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise` [INFO] [stdout] --> src/opt.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn optimise(mut prog: Program) -> Program { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/opt.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn optimise_sections(mut sections: Vec
) -> Vec
{ [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/exec.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Neg` [INFO] [stdout] --> src/hir.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Neg(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_c` [INFO] [stdout] --> src/hir.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn generate_c(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stringify` [INFO] [stdout] --> src/hir.rs:158:16 [INFO] [stdout] | [INFO] [stdout] 158 | fn stringify(&self, proc: Option<&Proc>) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_proc` [INFO] [stdout] --> src/hir.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | fn stringify_proc(proc: &Proc, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 70 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_sections` [INFO] [stdout] --> src/hir.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | fn stringify_sections(sections: &Vec
, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Exactly` [INFO] [stdout] --> src/llir.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Exactly(i32), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MultipleOf` [INFO] [stdout] --> src/llir.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | MultipleOf { base: i32, factor: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Exactly` [INFO] [stdout] --> src/llir.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Exactly(HashSet), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EqualOrAbove` [INFO] [stdout] --> src/llir.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | EqualOrAbove(Idx), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Below` [INFO] [stdout] --> src/llir.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | Below(Idx), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Inside` [INFO] [stdout] --> src/llir.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | Inside(Idx, Idx), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Outside` [INFO] [stdout] --> src/llir.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | Outside(Idx, Idx), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Not` [INFO] [stdout] --> src/llir.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Not(HashSet), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Unknown` [INFO] [stdout] --> src/llir.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `union` [INFO] [stdout] --> src/llir.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn union(&self, rel_shift: Idx, other: &CellAccessInfo) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection` [INFO] [stdout] --> src/llir.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn intersection(&self, rel_shift: Idx, other: &CellAccessInfo) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Set` [INFO] [stdout] --> src/llir.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | Set(u8), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Const` [INFO] [stdout] --> src/llir.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | Const(u8), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shift` [INFO] [stdout] --> src/llir.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | pub fn get_shift(&self) -> ValInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_no_effect` [INFO] [stdout] --> src/llir.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn has_no_effect(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_reads` [INFO] [stdout] --> src/llir.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub fn get_cell_reads(&self) -> CellAccessInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_c` [INFO] [stdout] --> src/llir.rs:371:12 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn generate_c(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG` [INFO] [stdout] --> src/llir.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | const DEBUG: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_basic_section` [INFO] [stdout] --> src/llir.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 374 | fn stringify_basic_section(basic: &BasicSection, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_input_section` [INFO] [stdout] --> src/llir.rs:417:12 [INFO] [stdout] | [INFO] [stdout] 417 | fn stringify_input_section(input: &InputSection, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_loop_section` [INFO] [stdout] --> src/llir.rs:439:12 [INFO] [stdout] | [INFO] [stdout] 439 | fn stringify_loop_section(luup: &LoopSection, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stringify_sections` [INFO] [stdout] --> src/llir.rs:472:12 [INFO] [stdout] | [INFO] [stdout] 472 | fn stringify_sections(sections: &Vec
, depth: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise_calc_shifts` [INFO] [stdout] --> src/opt.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn optimise_calc_shifts(section: &mut Section) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise_sections` [INFO] [stdout] --> src/opt.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn optimise_sections(mut sections: Vec
) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise_program` [INFO] [stdout] --> src/opt.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn optimise_program(mut prog: Program) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `optimise` [INFO] [stdout] --> src/opt.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn optimise(mut prog: Program) -> Program { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 70 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "3aebcc7acfeb69ed478e5442282c1c81e2ffb77ab67eef904f1fa8b2a5c16d66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3aebcc7acfeb69ed478e5442282c1c81e2ffb77ab67eef904f1fa8b2a5c16d66", kill_on_drop: false }` [INFO] [stdout] 3aebcc7acfeb69ed478e5442282c1c81e2ffb77ab67eef904f1fa8b2a5c16d66