[INFO] cloning repository https://github.com/zxqcs/rusmachine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zxqcs/rusmachine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxqcs%2Frusmachine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxqcs%2Frusmachine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ffb151170b32077130ba97b7e2ea08009b6b478d [INFO] testing zxqcs/rusmachine against try#d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxqcs%2Frusmachine" "/workspace/builds/worker-101/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-101/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zxqcs/rusmachine on toolchain d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zxqcs/rusmachine [INFO] finished tweaking git repo https://github.com/zxqcs/rusmachine [INFO] tweaked toml for git repo https://github.com/zxqcs/rusmachine written to /workspace/builds/worker-101/source/Cargo.toml [INFO] crate git repo https://github.com/zxqcs/rusmachine already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a579f379d550dd6e24999dd459b8bcab87c15a163df7488b1f3923670eebe98 [INFO] running `Command { std: "docker" "start" "-a" "0a579f379d550dd6e24999dd459b8bcab87c15a163df7488b1f3923670eebe98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a579f379d550dd6e24999dd459b8bcab87c15a163df7488b1f3923670eebe98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a579f379d550dd6e24999dd459b8bcab87c15a163df7488b1f3923670eebe98", kill_on_drop: false }` [INFO] [stdout] 0a579f379d550dd6e24999dd459b8bcab87c15a163df7488b1f3923670eebe98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1bf2180748cd80dad5614b0f3340e98861cf3a408b827d428cf9cb72aa1610e4 [INFO] running `Command { std: "docker" "start" "-a" "1bf2180748cd80dad5614b0f3340e98861cf3a408b827d428cf9cb72aa1610e4", kill_on_drop: false }` [INFO] [stderr] Compiling machine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `list_length`, `scheme_assoc`, `scheme_map_clousre` [INFO] [stdout] --> src/assembler.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | append, car, cdr, list_length, scheme_assoc, scheme_cons, scheme_for_each, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | scheme_map_clousre, set_cdr, Exp, Pair, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `build_syntax_tree_into_memeory`, `tokenizer` [INFO] [stdout] --> src/machine.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::parser::{build_syntax_tree_into_memeory, tokenizer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `exp_to_str`, `tokenizer` [INFO] [stdout] --> src/primitives.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | parser::parser::{read_scheme_programs_from_stdin, tokenizer}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | parserfordev::parser::{exp_to_str, str_to_exp}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `is_eq`, `multiply`, `substract` [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | define_variable, is_eq, machine_statistics, multiply, substract, [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assembler::assembler::assemble` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use assembler::assembler::assemble; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:161:51 [INFO] [stdout] | [INFO] [stdout] 161 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | machine: &mut BasicMachine, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:183:51 [INFO] [stdout] | [INFO] [stdout] 183 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | machine: &mut BasicMachine, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/assembler.rs:249:25 [INFO] [stdout] | [INFO] [stdout] 249 | let data = index; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:248:64 [INFO] [stdout] | [INFO] [stdout] 248 | let lambda = move |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:257:59 [INFO] [stdout] | [INFO] [stdout] 257 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/assembler.rs:289:21 [INFO] [stdout] | [INFO] [stdout] 289 | let data = index; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:288:60 [INFO] [stdout] | [INFO] [stdout] 288 | let lambda = move |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:399:31 [INFO] [stdout] | [INFO] [stdout] 399 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:399:59 [INFO] [stdout] | [INFO] [stdout] 399 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:408:27 [INFO] [stdout] | [INFO] [stdout] 408 | move |machine: &mut BasicMachine, memory: &mut Memory| Exp::Index(index); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:408:55 [INFO] [stdout] | [INFO] [stdout] 408 | move |machine: &mut BasicMachine, memory: &mut Memory| Exp::Index(index); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/assembler.rs:418:39 [INFO] [stdout] | [INFO] [stdout] 418 | Object::Index(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 394 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | machine: &mut BasicMachine, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/gc.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | let label = machine [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/gc.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut x = Object::Nil; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/gc.rs:152:25 [INFO] [stdout] | [INFO] [stdout] 152 | let label = machine [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/gc.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | Object::Pair(x) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:271:38 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:271:55 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:271:72 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:275:38 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:275:55 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:275:72 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:279:35 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:279:52 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:279:69 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:283:35 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:283:52 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:283:69 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | x: &'static str, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | y: &'static str, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/machine.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | z: &'static str, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/primitives.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn machine_statistics(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/primitives.rs:78:57 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn initialize_stack(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/primitives.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn prompt_for_input(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/primitives.rs:83:57 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn prompt_for_input(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/primitives.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | Exp::List(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/tpfordev.rs:124:37 [INFO] [stdout] | [INFO] [stdout] 124 | if let Exp::List(Pair::Cons(lhs, rhs)) = x { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/tpfordev.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | if let Exp::List(Pair::Cons(lhs, rhs)) = x { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/infrastructure.rs:211:16 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn peek(&self) -> Option<&Object> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/machine.rs:86:16 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn execute(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_semantic_op` [INFO] [stdout] --> src/machine.rs:110:16 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn add_semantic_op(&mut self, fn_name: String, func: CallbackExp) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_machine_op` [INFO] [stdout] --> src/machine.rs:114:16 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn add_machine_op(&mut self, fn_name: String, func: Callbackmachine) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call_machine_op` [INFO] [stdout] --> src/machine.rs:122:16 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn call_machine_op(&mut self, fn_name: String, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_semantic_op` [INFO] [stdout] --> src/machine.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn is_semantic_op(&self, fn_name: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_machine_op` [INFO] [stdout] --> src/machine.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn is_machine_op(&self, fn_name: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MachineCase` [INFO] [stdout] --> src/machine_cases.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct MachineCase { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/machine_cases.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test_case` [INFO] [stdout] --> src/machine_cases.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn test_case() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `capacity` [INFO] [stdout] --> src/memory.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `define_variable_works` [INFO] [stdout] --> src/main.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn define_variable_works() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `extract_labels_alternative_works` [INFO] [stdout] --> src/main.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn extract_labels_alternative_works() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `machine_ops_works` [INFO] [stdout] --> src/main.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn machine_ops_works() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | read_scheme_programs_from_stdin(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BROKEN_HEART` should have a snake case name [INFO] [stdout] --> src/gc.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let BROKEN_HEART = Object::Symbol("broken_heart".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `broken_heart` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MachineCase` should have a snake case name [INFO] [stdout] --> src/machine_cases.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod MachineCase { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `machine_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 72 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "1bf2180748cd80dad5614b0f3340e98861cf3a408b827d428cf9cb72aa1610e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bf2180748cd80dad5614b0f3340e98861cf3a408b827d428cf9cb72aa1610e4", kill_on_drop: false }` [INFO] [stdout] 1bf2180748cd80dad5614b0f3340e98861cf3a408b827d428cf9cb72aa1610e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6d417646de6209afdbdd51905d681a828f62bcb4f7d9fda50d934902fe7f1c2 [INFO] running `Command { std: "docker" "start" "-a" "b6d417646de6209afdbdd51905d681a828f62bcb4f7d9fda50d934902fe7f1c2", kill_on_drop: false }` [INFO] [stderr] Compiling machine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `list_length`, `scheme_assoc`, `scheme_map_clousre` [INFO] [stdout] --> src/assembler.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | append, car, cdr, list_length, scheme_assoc, scheme_cons, scheme_for_each, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | scheme_map_clousre, set_cdr, Exp, Pair, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `car`, `cdr`, `exp_to_str`, `scheme_list_pretty_print` [INFO] [stdout] --> src/assembler.rs:562:32 [INFO] [stdout] | [INFO] [stdout] 562 | parserfordev::parser::{exp_to_str, scheme_list_pretty_print, str_to_exp}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 566 | tpfordev::type_system::{car, cdr, Exp, Pair}, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `extract_labels` [INFO] [stdout] --> src/assembler.rs:570:44 [INFO] [stdout] | [INFO] [stdout] 570 | assign_reg_name, assign_value_exp, extract_labels, extract_labels_alternative, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `build_syntax_tree_into_memeory`, `tokenizer` [INFO] [stdout] --> src/machine.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::parser::{build_syntax_tree_into_memeory, tokenizer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `exp_to_str`, `tokenizer` [INFO] [stdout] --> src/primitives.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 6 | parser::parser::{read_scheme_programs_from_stdin, tokenizer}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | parserfordev::parser::{exp_to_str, str_to_exp}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exp_to_str` [INFO] [stdout] --> src/primitives.rs:319:32 [INFO] [stdout] | [INFO] [stdout] 319 | parserfordev::parser::{exp_to_str, str_to_exp}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `is_eq`, `multiply`, `substract` [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | define_variable, is_eq, machine_statistics, multiply, substract, [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assembler::assembler::assemble` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use assembler::assembler::assemble; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:161:51 [INFO] [stdout] | [INFO] [stdout] 161 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | machine: &mut BasicMachine, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:183:51 [INFO] [stdout] | [INFO] [stdout] 183 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | machine: &mut BasicMachine, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/assembler.rs:249:25 [INFO] [stdout] | [INFO] [stdout] 249 | let data = index; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:248:64 [INFO] [stdout] | [INFO] [stdout] 248 | let lambda = move |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:257:59 [INFO] [stdout] | [INFO] [stdout] 257 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/assembler.rs:289:21 [INFO] [stdout] | [INFO] [stdout] 289 | let data = index; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:288:60 [INFO] [stdout] | [INFO] [stdout] 288 | let lambda = move |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:399:31 [INFO] [stdout] | [INFO] [stdout] 399 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:399:59 [INFO] [stdout] | [INFO] [stdout] 399 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:408:27 [INFO] [stdout] | [INFO] [stdout] 408 | move |machine: &mut BasicMachine, memory: &mut Memory| Exp::Index(index); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:408:55 [INFO] [stdout] | [INFO] [stdout] 408 | move |machine: &mut BasicMachine, memory: &mut Memory| Exp::Index(index); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/assembler.rs:418:39 [INFO] [stdout] | [INFO] [stdout] 418 | Object::Index(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 394 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/assembler.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | machine: &mut BasicMachine, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/assembler.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/assembler.rs:580:13 [INFO] [stdout] | [INFO] [stdout] 580 | let result = extract_labels_alternative(text.to_string(), &mut machine); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/assembler.rs:665:13 [INFO] [stdout] | [INFO] [stdout] 665 | let result = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `result` is assigned to, but never used [INFO] [stdout] --> src/assembler.rs:679:17 [INFO] [stdout] | [INFO] [stdout] 679 | let mut result = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/assembler.rs:687:9 [INFO] [stdout] | [INFO] [stdout] 687 | result = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/assembler.rs:701:13 [INFO] [stdout] | [INFO] [stdout] 701 | let result = extract_labels_alternative(text, &mut machine); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/assembler.rs:705:13 [INFO] [stdout] | [INFO] [stdout] 705 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `insts` [INFO] [stdout] --> src/assembler.rs:716:13 [INFO] [stdout] | [INFO] [stdout] 716 | let insts = extract_labels_alternative(text, &mut machine); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_insts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/assembler.rs:721:13 [INFO] [stdout] | [INFO] [stdout] 721 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/assembler.rs:734:13 [INFO] [stdout] | [INFO] [stdout] 734 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/assembler.rs:747:13 [INFO] [stdout] | [INFO] [stdout] 747 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/assembler.rs:768:13 [INFO] [stdout] | [INFO] [stdout] 768 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/gc.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | let label = machine [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/gc.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let mut x = Object::Nil; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/gc.rs:152:25 [INFO] [stdout] | [INFO] [stdout] 152 | let label = machine [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/gc.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | Object::Pair(x) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/infrastructure.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let s = String::from("(( 7 8) 9)"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:271:38 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:271:55 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:271:72 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:275:38 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:275:55 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:275:72 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:279:35 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:279:52 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:279:69 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:283:35 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:283:52 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:283:69 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/machine.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | x: &'static str, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/machine.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | y: &'static str, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/machine.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | z: &'static str, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/machine.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | memory: &mut Memory, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/primitives.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn machine_statistics(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/primitives.rs:78:57 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn initialize_stack(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/primitives.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn prompt_for_input(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/primitives.rs:83:57 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn prompt_for_input(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/primitives.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | Exp::List(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/tpfordev.rs:124:37 [INFO] [stdout] | [INFO] [stdout] 124 | if let Exp::List(Pair::Cons(lhs, rhs)) = x { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/tpfordev.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | if let Exp::List(Pair::Cons(lhs, rhs)) = x { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/assembler.rs:657:13 [INFO] [stdout] | [INFO] [stdout] 657 | let mut inst = "(assgin root (op *) (reg val) (reg exp))".to_string(); [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/assembler.rs:697:13 [INFO] [stdout] | [INFO] [stdout] 697 | let mut inst = str_to_exp("(branch (label base-case))".to_string()); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `relocate_old_result_in_new_works` [INFO] [stdout] --> src/gc.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | fn relocate_old_result_in_new_works() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/machine.rs:86:16 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn execute(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_semantic_op` [INFO] [stdout] --> src/machine.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn is_semantic_op(&self, fn_name: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `capacity` [INFO] [stdout] --> src/memory.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `define_variable_works` [INFO] [stdout] --> src/main.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn define_variable_works() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `extract_labels_alternative_works` [INFO] [stdout] --> src/main.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn extract_labels_alternative_works() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `machine_ops_works` [INFO] [stdout] --> src/main.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn machine_ops_works() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | read_scheme_programs_from_stdin(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BROKEN_HEART` should have a snake case name [INFO] [stdout] --> src/gc.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let BROKEN_HEART = Object::Symbol("broken_heart".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `broken_heart` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MachineCase` should have a snake case name [INFO] [stdout] --> src/machine_cases.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod MachineCase { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `machine_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `Command { std: "docker" "inspect" "b6d417646de6209afdbdd51905d681a828f62bcb4f7d9fda50d934902fe7f1c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6d417646de6209afdbdd51905d681a828f62bcb4f7d9fda50d934902fe7f1c2", kill_on_drop: false }` [INFO] [stdout] b6d417646de6209afdbdd51905d681a828f62bcb4f7d9fda50d934902fe7f1c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 876d862887e4a138d580ae8053920b62dae076da5e46c17365c3e5032abace22 [INFO] running `Command { std: "docker" "start" "-a" "876d862887e4a138d580ae8053920b62dae076da5e46c17365c3e5032abace22", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `list_length`, `scheme_assoc`, `scheme_map_clousre` [INFO] [stderr] --> src/assembler.rs:9:27 [INFO] [stderr] | [INFO] [stderr] 9 | append, car, cdr, list_length, scheme_assoc, scheme_cons, scheme_for_each, [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] 10 | scheme_map_clousre, set_cdr, Exp, Pair, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `car`, `cdr`, `exp_to_str`, `scheme_list_pretty_print` [INFO] [stderr] --> src/assembler.rs:562:32 [INFO] [stderr] | [INFO] [stderr] 562 | parserfordev::parser::{exp_to_str, scheme_list_pretty_print, str_to_exp}, [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 566 | tpfordev::type_system::{car, cdr, Exp, Pair}, [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `extract_labels` [INFO] [stderr] --> src/assembler.rs:570:44 [INFO] [stderr] | [INFO] [stderr] 570 | assign_reg_name, assign_value_exp, extract_labels, extract_labels_alternative, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `build_syntax_tree_into_memeory`, `tokenizer` [INFO] [stderr] --> src/machine.rs:6:33 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::parser::parser::{build_syntax_tree_into_memeory, tokenizer}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::BufReader` [INFO] [stderr] --> src/parser.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::BufReader; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `exp_to_str`, `tokenizer` [INFO] [stderr] --> src/primitives.rs:6:59 [INFO] [stderr] | [INFO] [stderr] 6 | parser::parser::{read_scheme_programs_from_stdin, tokenizer}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 7 | parserfordev::parser::{exp_to_str, str_to_exp}, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `exp_to_str` [INFO] [stderr] --> src/primitives.rs:319:32 [INFO] [stderr] | [INFO] [stderr] 319 | parserfordev::parser::{exp_to_str, str_to_exp}, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `is_eq`, `multiply`, `substract` [INFO] [stderr] --> src/main.rs:18:22 [INFO] [stderr] | [INFO] [stderr] 18 | define_variable, is_eq, machine_statistics, multiply, substract, [INFO] [stderr] | ^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `assembler::assembler::assemble` [INFO] [stderr] --> src/main.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use assembler::assembler::assemble; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:161:51 [INFO] [stderr] | [INFO] [stderr] 161 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `machine` [INFO] [stderr] --> src/assembler.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 157 | machine: &mut BasicMachine, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:158:9 [INFO] [stderr] | [INFO] [stderr] 158 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:183:51 [INFO] [stderr] | [INFO] [stderr] 183 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `machine` [INFO] [stderr] --> src/assembler.rs:179:9 [INFO] [stderr] | [INFO] [stderr] 179 | machine: &mut BasicMachine, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:180:9 [INFO] [stderr] | [INFO] [stderr] 180 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/assembler.rs:249:25 [INFO] [stderr] | [INFO] [stderr] 249 | let data = index; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:248:64 [INFO] [stderr] | [INFO] [stderr] 248 | let lambda = move |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:257:59 [INFO] [stderr] | [INFO] [stderr] 257 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:242:9 [INFO] [stderr] | [INFO] [stderr] 242 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/assembler.rs:289:21 [INFO] [stderr] | [INFO] [stderr] 289 | let data = index; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:288:60 [INFO] [stderr] | [INFO] [stderr] 288 | let lambda = move |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:283:9 [INFO] [stderr] | [INFO] [stderr] 283 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `machine` [INFO] [stderr] --> src/assembler.rs:399:31 [INFO] [stderr] | [INFO] [stderr] 399 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:399:59 [INFO] [stderr] | [INFO] [stderr] 399 | let lambda = |machine: &mut BasicMachine, memory: &mut Memory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `machine` [INFO] [stderr] --> src/assembler.rs:408:27 [INFO] [stderr] | [INFO] [stderr] 408 | move |machine: &mut BasicMachine, memory: &mut Memory| Exp::Index(index); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:408:55 [INFO] [stderr] | [INFO] [stderr] 408 | move |machine: &mut BasicMachine, memory: &mut Memory| Exp::Index(index); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/assembler.rs:418:39 [INFO] [stderr] | [INFO] [stderr] 418 | Object::Index(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:394:9 [INFO] [stderr] | [INFO] [stderr] 394 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `machine` [INFO] [stderr] --> src/assembler.rs:487:9 [INFO] [stderr] | [INFO] [stderr] 487 | machine: &mut BasicMachine, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/assembler.rs:488:9 [INFO] [stderr] | [INFO] [stderr] 488 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/assembler.rs:580:13 [INFO] [stderr] | [INFO] [stderr] 580 | let result = extract_labels_alternative(text.to_string(), &mut machine); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/assembler.rs:665:13 [INFO] [stderr] | [INFO] [stderr] 665 | let result = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: variable `result` is assigned to, but never used [INFO] [stderr] --> src/assembler.rs:679:17 [INFO] [stderr] | [INFO] [stderr] 679 | let mut result = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_result` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `result` is never read [INFO] [stderr] --> src/assembler.rs:687:9 [INFO] [stderr] | [INFO] [stderr] 687 | result = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/assembler.rs:701:13 [INFO] [stderr] | [INFO] [stderr] 701 | let result = extract_labels_alternative(text, &mut machine); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/assembler.rs:705:13 [INFO] [stderr] | [INFO] [stderr] 705 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `insts` [INFO] [stderr] --> src/assembler.rs:716:13 [INFO] [stderr] | [INFO] [stderr] 716 | let insts = extract_labels_alternative(text, &mut machine); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_insts` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/assembler.rs:721:13 [INFO] [stderr] | [INFO] [stderr] 721 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/assembler.rs:734:13 [INFO] [stderr] | [INFO] [stderr] 734 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/assembler.rs:747:13 [INFO] [stderr] | [INFO] [stderr] 747 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r` [INFO] [stderr] --> src/assembler.rs:768:13 [INFO] [stderr] | [INFO] [stderr] 768 | let r = consume_box_closure(cb, &mut machine, &mut memory); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/gc.rs:76:25 [INFO] [stderr] | [INFO] [stderr] 76 | let label = machine [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `x` is never read [INFO] [stderr] --> src/gc.rs:96:17 [INFO] [stderr] | [INFO] [stderr] 96 | let mut x = Object::Nil; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `label` [INFO] [stderr] --> src/gc.rs:152:25 [INFO] [stderr] | [INFO] [stderr] 152 | let label = machine [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/gc.rs:173:30 [INFO] [stderr] | [INFO] [stderr] 173 | Object::Pair(x) => true, [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/infrastructure.rs:284:13 [INFO] [stderr] | [INFO] [stderr] 284 | let s = String::from("(( 7 8) 9)"); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/machine.rs:271:38 [INFO] [stderr] | [INFO] [stderr] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/machine.rs:271:55 [INFO] [stderr] | [INFO] [stderr] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/machine.rs:271:72 [INFO] [stderr] | [INFO] [stderr] 271 | pub fn assign_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/machine.rs:275:38 [INFO] [stderr] | [INFO] [stderr] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/machine.rs:275:55 [INFO] [stderr] | [INFO] [stderr] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/machine.rs:275:72 [INFO] [stderr] | [INFO] [stderr] 275 | pub fn assign_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/machine.rs:279:35 [INFO] [stderr] | [INFO] [stderr] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/machine.rs:279:52 [INFO] [stderr] | [INFO] [stderr] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/machine.rs:279:69 [INFO] [stderr] | [INFO] [stderr] 279 | pub fn set_car(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/machine.rs:283:35 [INFO] [stderr] | [INFO] [stderr] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/machine.rs:283:52 [INFO] [stderr] | [INFO] [stderr] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/machine.rs:283:69 [INFO] [stderr] | [INFO] [stderr] 283 | pub fn set_cdr(&mut self, x: &'static str, y: &'static str, memory: &mut Memory) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/machine.rs:289:13 [INFO] [stderr] | [INFO] [stderr] 289 | x: &'static str, [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/machine.rs:290:13 [INFO] [stderr] | [INFO] [stderr] 290 | y: &'static str, [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `z` [INFO] [stderr] --> src/machine.rs:291:13 [INFO] [stderr] | [INFO] [stderr] 291 | z: &'static str, [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/machine.rs:292:13 [INFO] [stderr] | [INFO] [stderr] 292 | memory: &mut Memory, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/memory.rs:22:17 [INFO] [stderr] | [INFO] [stderr] 22 | for i in 0..size { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/primitives.rs:71:59 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn machine_statistics(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/primitives.rs:78:57 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn initialize_stack(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `machine` [INFO] [stderr] --> src/primitives.rs:83:29 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn prompt_for_input(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/primitives.rs:83:57 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn prompt_for_input(machine: &mut BasicMachine, memory: &mut Memory) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/primitives.rs:95:31 [INFO] [stderr] | [INFO] [stderr] 95 | Exp::List(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> src/tpfordev.rs:124:37 [INFO] [stderr] | [INFO] [stderr] 124 | if let Exp::List(Pair::Cons(lhs, rhs)) = x { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> src/tpfordev.rs:133:42 [INFO] [stderr] | [INFO] [stderr] 133 | if let Exp::List(Pair::Cons(lhs, rhs)) = x { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/assembler.rs:657:13 [INFO] [stderr] | [INFO] [stderr] 657 | let mut inst = "(assgin root (op *) (reg val) (reg exp))".to_string(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/assembler.rs:697:13 [INFO] [stderr] | [INFO] [stderr] 697 | let mut inst = str_to_exp("(branch (label base-case))".to_string()); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `relocate_old_result_in_new_works` [INFO] [stderr] --> src/gc.rs:254:8 [INFO] [stderr] | [INFO] [stderr] 254 | fn relocate_old_result_in_new_works() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `execute` [INFO] [stderr] --> src/machine.rs:86:16 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn execute(&mut self, memory: &mut Memory) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_semantic_op` [INFO] [stderr] --> src/machine.rs:126:16 [INFO] [stderr] | [INFO] [stderr] 126 | pub fn is_semantic_op(&self, fn_name: String) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `capacity` [INFO] [stderr] --> src/memory.rs:34:16 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn capacity(&self) -> usize { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `define_variable_works` [INFO] [stderr] --> src/main.rs:129:4 [INFO] [stderr] | [INFO] [stderr] 129 | fn define_variable_works() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `extract_labels_alternative_works` [INFO] [stderr] --> src/main.rs:143:4 [INFO] [stderr] | [INFO] [stderr] 143 | fn extract_labels_alternative_works() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `machine_ops_works` [INFO] [stderr] --> src/main.rs:152:4 [INFO] [stderr] | [INFO] [stderr] 152 | fn machine_ops_works() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | read_scheme_programs_from_stdin(&mut input); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: variable `BROKEN_HEART` should have a snake case name [INFO] [stderr] --> src/gc.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | let BROKEN_HEART = Object::Symbol("broken_heart".to_string()); [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `broken_heart` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: module `MachineCase` should have a snake case name [INFO] [stderr] --> src/machine_cases.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | pub mod MachineCase { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `machine_case` [INFO] [stderr] [INFO] [stderr] warning: `machine` (bin "machine" test) generated 82 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/machine-0e29c276425c3161) [INFO] [stdout] [INFO] [stdout] running 51 tests [INFO] [stdout] test assembler::test::assemble_works ... ok [INFO] [stdout] test assembler::test::assign_reg_name_works ... ok [INFO] [stdout] test assembler::test::is_operation_exp_works ... ok [INFO] [stdout] test assembler::test::assign_value_exp_works ... ok [INFO] [stdout] test assembler::test::make_assign_works ... ok [INFO] [stdout] test assembler::test::make_operation_exp_works ... ok [INFO] [stdout] test assembler::test::make_save_works ... ok [INFO] [stdout] test assembler::test::make_primitive_exp_works ... ok [INFO] [stdout] test assembler::test::make_perform_works ... ok [INFO] [stdout] test assembler::test::make_test_works ... ok [INFO] [stdout] test assembler::test::operation_exp_op_works ... ok [INFO] [stdout] test gc::test::is_pair_works ... ok [INFO] [stdout] test assembler::test::operation_exp_operands_works ... ok [INFO] [stdout] test assembler::test::make_restore_works ... ok [INFO] [stdout] test infrastructure::test::register_get_works ... ok [INFO] [stdout] test infrastructure::test::register_set_works ... ok [INFO] [stdout] test infrastructure::test::stack_push_pop ... ok [INFO] [stdout] test infrastructure::test::get_list_from_memory_as_str_works ... ok [INFO] [stdout] test machine::test::machine_ops_bool_works ... ok [INFO] [stdout] test machine::test::machine_ops_works ... ok [INFO] [stdout] test machine::test::machine_ops_exp_works ... ok [INFO] [stdout] test parser::test::is_end_with_double_quote_works ... ok [INFO] [stdout] test machine::test::set_register_contents_as_in_memory_works ... ok [INFO] [stdout] test parser::test::build_syntax_tree_into_memeory_works ... ok [INFO] [stdout] test parser::test::read_scheme_quote_works ... ok [INFO] [stdout] test parser::test::read_scheme_string_works ... ok [INFO] [stdout] test parser::test::tokenizer_works ... ok [INFO] [stdout] test parserfordev::test::exp_to_str_works ... ok [INFO] [stdout] test parserfordev::test::str_to_exp_works ... ok [INFO] [stdout] test primitives::test::add_binding_to_frame_works ... ok [INFO] [stdout] test primitives::test::caadr_works ... ok [INFO] [stdout] test primitives::test::caar_works ... ok [INFO] [stdout] test primitives::test::caddr_works ... ok [INFO] [stdout] test primitives::test::cadddr_works ... ok [INFO] [stdout] test primitives::test::cadr_works ... ok [INFO] [stdout] test primitives::test::cdadr_works ... ok [INFO] [stdout] test primitives::test::cdddr_works ... ok [INFO] [stdout] test primitives::test::cdar_works ... ok [INFO] [stdout] test assembler::test::lookup_label_works ... ok [INFO] [stdout] test primitives::test::cddr_works ... ok [INFO] [stdout] test primitives::test::multiply_works ... ok [INFO] [stdout] test primitives::test::is_tagged_list_works ... ok [INFO] [stdout] test assembler::test::make_goto_works ... ok [INFO] [stdout] test tpfordev::test::car_works ... ok [INFO] [stdout] test primitives::test::define_variable_works ... ok [INFO] [stdout] test assembler::test::make_branch_works ... ok [INFO] [stdout] test tpfordev::test::cdr_works ... ok [INFO] [stdout] test tpfordev::test::scheme_map_clousre_works ... ok [INFO] [stdout] test tpfordev::test::scheme_map_works ... ok [INFO] [stdout] test tpfordev::test::scheme_assoc_works ... ok [INFO] [stdout] test primitives::test::read_works ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- primitives::test::read_works stdout ---- [INFO] [stdout] thread 'primitives::test::read_works' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `List(Cons(Symbol("define"), Cons(List(Cons(Symbol("square"), Cons(Symbol("x"), Nil))), Cons(List(Cons(Symbol("*"), Cons(Symbol("x"), Cons(Symbol("x"), Nil)))), Nil))))`, [INFO] [stdout] right: `List(Nil)`', src/primitives.rs:462:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55d34a4c8810 - std::backtrace_rs::backtrace::libunwind::trace::h99dbb39dca18857d [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x55d34a4c8810 - std::backtrace_rs::backtrace::trace_unsynchronized::h832861927e9cfedf [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55d34a4c8810 - std::sys_common::backtrace::_print_fmt::h3d18154c77dcf310 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55d34a4c8810 - ::fmt::he312f4ad5b9bb346 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55d34a4ecb1c - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x55d34a4c5415 - std::io::Write::write_fmt::h65d36b96410d80d7 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/io/mod.rs:1665:15 [INFO] [stdout] 6: 0x55d34a4ca98b - std::sys_common::backtrace::_print::h65d996766de40da4 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55d34a4ca98b - std::sys_common::backtrace::print::h40df9727e635f303 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55d34a4ca98b - std::panicking::default_hook::{{closure}}::hd2da4327dea91a51 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x55d34a4ca49c - std::panicking::default_hook::h3d55120ad6ada158 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x55d34a4cb054 - std::panicking::rust_panic_with_hook::hf85dd0bb545e3b55 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x55d34a4cab37 - std::panicking::begin_panic_handler::{{closure}}::h736ae969434da9fa [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x55d34a4c8cec - std::sys_common::backtrace::__rust_end_short_backtrace::h6133bb80b1d6c3e0 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x55d34a4caa99 - rust_begin_unwind [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x55d34a421421 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x55d34a4ea968 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x55d34a45166a - core::panicking::assert_failed::h8bd5a93e2761d63c [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x55d34a45f7fc - machine::primitives::test::read_works::h085512285d24ef4e [INFO] [stdout] at /opt/rustwide/workdir/src/primitives.rs:462:9 [INFO] [stdout] 18: 0x55d34a45f4ea - machine::primitives::test::read_works::{{closure}}::h71395d11231d1e58 [INFO] [stdout] at /opt/rustwide/workdir/src/primitives.rs:454:5 [INFO] [stdout] 19: 0x55d34a43a10e - core::ops::function::FnOnce::call_once::hb229730da10c3df8 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55d34a4acab3 - core::ops::function::FnOnce::call_once::h227fa683a5745bd3 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x55d34a4acab3 - test::__rust_begin_short_backtrace::h3a193bd570ada00a [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:578:5 [INFO] [stdout] 22: 0x55d34a4ab528 - as core::ops::function::FnOnce>::call_once::h262d2f411717179a [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 23: 0x55d34a4ab528 - as core::ops::function::FnOnce<()>>::call_once::hfec00caec3e52a7b [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:347:9 [INFO] [stdout] 24: 0x55d34a4ab528 - std::panicking::try::do_call::ha5f42e76ffda569d [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:401:40 [INFO] [stdout] 25: 0x55d34a4ab528 - std::panicking::try::h53f36df0935b9500 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:365:19 [INFO] [stdout] 26: 0x55d34a4ab528 - std::panic::catch_unwind::h5a497f74b0ce006f [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:434:14 [INFO] [stdout] 27: 0x55d34a4ab528 - test::run_test_in_process::hab0aead337f48a88 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:601:18 [INFO] [stdout] 28: 0x55d34a4ab528 - test::run_test::run_test_inner::{{closure}}::h632c383164d4cba2 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:493:39 [INFO] [stdout] 29: 0x55d34a479cad - test::run_test::run_test_inner::{{closure}}::h7c4b3612891a4b58 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/test/src/lib.rs:520:37 [INFO] [stdout] 30: 0x55d34a479cad - std::sys_common::backtrace::__rust_begin_short_backtrace::habf7d8a08419d00e [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 31: 0x55d34a47e3d8 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h3acba502e2068204 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 32: 0x55d34a47e3d8 - as core::ops::function::FnOnce<()>>::call_once::h526ef819c1964a35 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:347:9 [INFO] [stdout] 33: 0x55d34a47e3d8 - std::panicking::try::do_call::hc0b5663d6373cec8 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:401:40 [INFO] [stdout] 34: 0x55d34a47e3d8 - std::panicking::try::ha9007ede9d35dcd6 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panicking.rs:365:19 [INFO] [stdout] 35: 0x55d34a47e3d8 - std::panic::catch_unwind::hf60d56329ebbb81c [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/panic.rs:434:14 [INFO] [stdout] 36: 0x55d34a47e3d8 - std::thread::Builder::spawn_unchecked::{{closure}}::hb1722d498f4ce777 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 37: 0x55d34a47e3d8 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h15eb01325730c962 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x55d34a4cfbc7 - as core::ops::function::FnOnce>::call_once::h09f167e08fc945ff [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 39: 0x55d34a4cfbc7 - as core::ops::function::FnOnce>::call_once::hf814fe85eeb118e0 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x55d34a4cfbc7 - std::sys::unix::thread::Thread::new::thread_start::hb71b17934c5f5e68 [INFO] [stdout] at /rustc/d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2/library/std/src/sys/unix/thread.rs:91:17 [INFO] [stdout] 41: 0x7f635ceb0609 - start_thread [INFO] [stdout] 42: 0x7f635cc82293 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] primitives::test::read_works [INFO] [stdout] [INFO] [stdout] test result: FAILED. 50 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin machine' [INFO] running `Command { std: "docker" "inspect" "876d862887e4a138d580ae8053920b62dae076da5e46c17365c3e5032abace22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "876d862887e4a138d580ae8053920b62dae076da5e46c17365c3e5032abace22", kill_on_drop: false }` [INFO] [stdout] 876d862887e4a138d580ae8053920b62dae076da5e46c17365c3e5032abace22