[INFO] cloning repository https://github.com/svenslaggare/stackjit-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/svenslaggare/stackjit-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fstackjit-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fstackjit-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 94d24e6aca21b1c58a81119ceef6baf0e49a67e5 [INFO] checking svenslaggare/stackjit-rs against master#195ad4830e11a544391abe296b146450dea8411b for pr-82781 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsvenslaggare%2Fstackjit-rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/svenslaggare/stackjit-rs on toolchain 195ad4830e11a544391abe296b146450dea8411b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+195ad4830e11a544391abe296b146450dea8411b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/svenslaggare/stackjit-rs [INFO] finished tweaking git repo https://github.com/svenslaggare/stackjit-rs [INFO] tweaked toml for git repo https://github.com/svenslaggare/stackjit-rs written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/svenslaggare/stackjit-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+195ad4830e11a544391abe296b146450dea8411b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+195ad4830e11a544391abe296b146450dea8411b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 776b9a8c1dc0e3977bbd8903278a647f0e5c3a2cce865e17e5daac93caebd03f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "776b9a8c1dc0e3977bbd8903278a647f0e5c3a2cce865e17e5daac93caebd03f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "776b9a8c1dc0e3977bbd8903278a647f0e5c3a2cce865e17e5daac93caebd03f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "776b9a8c1dc0e3977bbd8903278a647f0e5c3a2cce865e17e5daac93caebd03f", kill_on_drop: false }` [INFO] [stdout] 776b9a8c1dc0e3977bbd8903278a647f0e5c3a2cce865e17e5daac93caebd03f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+195ad4830e11a544391abe296b146450dea8411b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ff14fc937fafca3d83b16c2a06a6f0d6ebb3dc495567c229be449469fd59cc9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6ff14fc937fafca3d83b16c2a06a6f0d6ebb3dc495567c229be449469fd59cc9", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking static_assertions v0.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling iced-x86 v1.10.3 [INFO] [stderr] Checking stackjit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `class_type` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:438:43 [INFO] [stdout] | [INFO] [stdout] 438 | InstructionMIRData::NewObject(class_type, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_reference` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:438:55 [INFO] [stdout] | [INFO] [stdout] 438 | InstructionMIRData::NewObject(class_type, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_type` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:43 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_name` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:55 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:67 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_reference` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:80 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_type` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:44 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_name` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:56 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_reference` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:68 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:85 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_type` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:438:43 [INFO] [stdout] | [INFO] [stdout] 438 | InstructionMIRData::NewObject(class_type, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_reference` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:438:55 [INFO] [stdout] | [INFO] [stdout] 438 | InstructionMIRData::NewObject(class_type, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_type` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:43 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_name` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:55 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:67 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_reference` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:441:80 [INFO] [stdout] | [INFO] [stdout] 441 | InstructionMIRData::LoadField(class_type, field_name, destination, class_reference) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_type` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:44 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_name` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:56 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `class_reference` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:68 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_class_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:444:85 [INFO] [stdout] | [INFO] [stdout] 444 | InstructionMIRData::StoreField(class_type, field_name, class_reference, value) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LoadFloat32` [INFO] [stdout] --> src/model/instruction.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | LoadFloat32(f32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LoadLocal` [INFO] [stdout] --> src/model/instruction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | LoadLocal(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `StoreLocal` [INFO] [stdout] --> src/model/instruction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | StoreLocal(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Sub` [INFO] [stdout] --> src/model/instruction.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LoadArgument` [INFO] [stdout] --> src/model/instruction.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | LoadArgument(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NewArray` [INFO] [stdout] --> src/model/instruction.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | NewArray(Type), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `StoreElement` [INFO] [stdout] --> src/model/instruction.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | StoreElement(Type), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LoadArrayLength` [INFO] [stdout] --> src/model/instruction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | LoadArrayLength, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NewObject` [INFO] [stdout] --> src/model/instruction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | NewObject(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LoadField` [INFO] [stdout] --> src/model/instruction.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | LoadField(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `StoreField` [INFO] [stdout] --> src/model/instruction.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | StoreField(String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Branch` [INFO] [stdout] --> src/model/instruction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Branch(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchEqual` [INFO] [stdout] --> src/model/instruction.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | BranchEqual(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchNotEqual` [INFO] [stdout] --> src/model/instruction.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | BranchNotEqual(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchGreaterThan` [INFO] [stdout] --> src/model/instruction.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | BranchGreaterThan(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchGreaterThanOrEqual` [INFO] [stdout] --> src/model/instruction.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | BranchGreaterThanOrEqual(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchLessThan` [INFO] [stdout] --> src/model/instruction.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | BranchLessThan(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchLessThanOrEqual` [INFO] [stdout] --> src/model/instruction.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | BranchLessThanOrEqual(BranchTarget) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `operand_stack_size` [INFO] [stdout] --> src/model/function.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | operand_stack_size: usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `operand_stack_size` [INFO] [stdout] --> src/model/function.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn operand_stack_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/model/class.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(name: String, field_type: Type) -> Field { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/model/class.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/model/class.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(name: String, fields: Vec) -> Class { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fields` [INFO] [stdout] --> src/model/class.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn fields(&self) -> &Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_defined` [INFO] [stdout] --> src/model/class.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn is_defined(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `define` [INFO] [stdout] --> src/model/class.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn define(&mut self, class: Class) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/ir/mid.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn name(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/ir/mid.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn name(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `assign_register` [INFO] [stdout] --> src/ir/mid.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn assign_register(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `assign_virtual_register` [INFO] [stdout] --> src/ir/mid.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn assign_virtual_register(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `use_registers` [INFO] [stdout] --> src/ir/mid.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn use_registers(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `use_virtual_registers` [INFO] [stdout] --> src/ir/mid.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn use_virtual_registers(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `println_vec` [INFO] [stdout] --> src/ir/compiler.rs:402:4 [INFO] [stdout] | [INFO] [stdout] 402 | fn println_vec(original: &Vec, irs: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AllocatedInstructionIRCompiler` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct AllocatedInstructionIRCompiler<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(binder: &'a Binder, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `done` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn done(self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn compile(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register_allocate` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn register_allocate(compilation_result: &MIRCompilationResult) -> RegisterAllocation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_initialize_function` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn compile_initialize_function(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_instruction` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | fn compile_instruction(&mut self, instruction_index: usize, instruction: &InstructionMIR) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_stack_frame` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 497 | fn print_stack_frame(&mut self, instruction_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_call_argument_sources` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:503:8 [INFO] [stdout] | [INFO] [stdout] 503 | fn get_call_argument_sources(&self, func_to_call: &FunctionDefinition, arguments: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_be_null` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:532:8 [INFO] [stdout] | [INFO] [stdout] 532 | fn can_be_null(&self, instruction_index: usize, register: &RegisterMIR) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_alive_registers` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:537:8 [INFO] [stdout] | [INFO] [stdout] 537 | fn push_alive_registers(&mut self, instruction_index: usize) -> Vec<(VirtualRegister, HardwareRegister)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_alive_registers` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:549:8 [INFO] [stdout] | [INFO] [stdout] 549 | fn pop_alive_registers(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_if_alive` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:571:8 [INFO] [stdout] | [INFO] [stdout] 571 | fn push_if_alive(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_register` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:593:8 [INFO] [stdout] | [INFO] [stdout] 593 | fn move_register(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_operator` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:616:8 [INFO] [stdout] | [INFO] [stdout] 616 | fn binary_operator< [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_operator_f32` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:651:8 [INFO] [stdout] | [INFO] [stdout] 651 | fn binary_operator_f32< [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_virtual_register_stack_offset` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 687 | fn get_virtual_register_stack_offset(&self, register: &VirtualRegister) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register_stack_offset` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:691:8 [INFO] [stdout] | [INFO] [stdout] 691 | fn get_register_stack_offset(&self, register: &RegisterMIR) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TempRegisters` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:696:8 [INFO] [stdout] | [INFO] [stdout] 696 | struct TempRegisters<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:702:12 [INFO] [stdout] | [INFO] [stdout] 702 | pub fn new(register_allocation: &'a RegisterAllocation) -> TempRegisters<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_remove` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:717:12 [INFO] [stdout] | [INFO] [stdout] 717 | pub fn try_remove(&mut self, register: &RegisterMIR) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:723:12 [INFO] [stdout] | [INFO] [stdout] 723 | pub fn get_register(&mut self, register: &RegisterMIR) -> (bool, HardwareRegister) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FloatSpill` [INFO] [stdout] --> src/ir/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | FloatSpill, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddToStackPointer` [INFO] [stdout] --> src/ir/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | AddToStackPointer(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pop` [INFO] [stdout] --> src/ir/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | Pop(HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PushExplicit` [INFO] [stdout] --> src/ir/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | PushExplicit(HardwareRegisterExplicit), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PopExplicit` [INFO] [stdout] --> src/ir/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | PopExplicit(HardwareRegisterExplicit), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PopEmpty` [INFO] [stdout] --> src/ir/mod.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | PopEmpty, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PushInt32` [INFO] [stdout] --> src/ir/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | PushInt32(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/ir/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | Move(HardwareRegister, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MoveInt32ToRegister` [INFO] [stdout] --> src/ir/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | MoveInt32ToRegister(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddInt32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | AddInt32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddInt32ToFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | AddInt32ToFrameMemory(i32, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SubInt32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | SubInt32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SubInt32ToFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | SubInt32ToFrameMemory(i32, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddFloat32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | AddFloat32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SubFloat32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | SubFloat32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompareFromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | CompareFromFrameMemory(Type, HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompareToFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | CompareToFrameMemory(Type, i32, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Register` [INFO] [stdout] --> src/ir/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | Register(HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first` [INFO] [stdout] --> src/analysis/basic_block.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn first(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `linearize` [INFO] [stdout] --> src/analysis/basic_block.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn linearize(blocks: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_instructions` [INFO] [stdout] --> src/analysis/basic_block.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn get_instructions(instructions: &Vec, indices: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_graph` [INFO] [stdout] --> src/analysis/control_flow_graph.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn print_graph(&self, instructions: &Vec, blocks: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `extract_edges` [INFO] [stdout] --> src/analysis/control_flow_graph.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn extract_edges(graph: &ControlFlowGraph, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_liveness` [INFO] [stdout] --> src/analysis/liveness.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn compute_liveness(compilation_result: &MIRCompilationResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_live_interval` [INFO] [stdout] --> src/analysis/liveness.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn get_live_interval(register: &VirtualRegister, alive_at: &HashSet) -> LiveInterval { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_virtual_registers` [INFO] [stdout] --> src/analysis/liveness.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn get_virtual_registers(instructions: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_liveness_for_register` [INFO] [stdout] --> src/analysis/liveness.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn compute_liveness_for_register(instructions: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compute_liveness_for_register_in_block` [INFO] [stdout] --> src/analysis/liveness.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn compute_liveness_for_register_in_block(instructions: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UsageSite` [INFO] [stdout] --> src/analysis/liveness.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct UsageSite { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `UseSites` [INFO] [stdout] --> src/analysis/liveness.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 186 | type UseSites = HashMap>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `AssignSites` [INFO] [stdout] --> src/analysis/liveness.rs:187:1 [INFO] [stdout] | [INFO] [stdout] 187 | type AssignSites = HashMap>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_register_usage` [INFO] [stdout] --> src/analysis/liveness.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn get_register_usage(instructions: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Int` [INFO] [stdout] --> src/analysis/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Int, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Float` [INFO] [stdout] --> src/analysis/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Float [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/analysis/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from(register: &RegisterMIR) -> VirtualRegister { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_jump_target` [INFO] [stdout] --> src/compiler/code_generator.rs:788:8 [INFO] [stdout] | [INFO] [stdout] 788 | fn set_jump_target(&mut self, branch_offset: usize, branch_instruction_size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `push_r32` [INFO] [stdout] --> src/compiler/code_generator.rs:884:8 [INFO] [stdout] | [INFO] [stdout] 884 | pub fn push_r32(mut encode_instruction: F, register: Register) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pop_r32` [INFO] [stdout] --> src/compiler/code_generator.rs:899:8 [INFO] [stdout] | [INFO] [stdout] 899 | pub fn pop_r32(mut encode_instruction: F, register: Register) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_call_register` [INFO] [stdout] --> src/compiler/calling_conventions.rs:237:8 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn get_call_register(func_to_call: &FunctionDefinition, index: usize, argument_type: &Type) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RETURN_VALUE_32` [INFO] [stdout] --> src/compiler/calling_conventions.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | pub const RETURN_VALUE_32: Register = Register::EAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Absolute` [INFO] [stdout] --> src/compiler/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | Absolute [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Settings` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Settings { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `allocate` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn allocate(live_intervals: &Vec, settings: &Settings) -> RegisterAllocation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FreeRegisters` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct FreeRegisters { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn new(settings: &Settings) -> FreeRegisters { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_for_type` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn max_for_type(&self, register_type: &VirtualRegisterType) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `for_type` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn for_type(&self, register_type: &VirtualRegisterType) -> &BTreeSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `for_type_mut` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn for_type_mut(&mut self, register_type: &VirtualRegisterType) -> &mut BTreeSet { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_free_register` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn get_free_register(&mut self, register_type: &VirtualRegisterType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `expire_old_intervals` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn expire_old_intervals(allocated_registers: &mut HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_at_interval` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn split_at_interval(allocated_registers: &mut HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `analyze` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn analyze(compilation_result: &MIRCompilationResult) -> (Vec, ControlFlowGraph, Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_allocation` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn print_allocation(instructions: &Vec, live_intervals: &Vec, allocation: &RegisterAllocation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Hardware` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Hardware { register: HardwareRegister, live_interval: LiveInterval }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stack` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Stack { live_interval: LiveInterval } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `interval` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn interval(&self) -> &LiveInterval { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_stack` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn is_stack(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hardware_register` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hardware_register(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RegisterAllocation` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct RegisterAllocation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn new(allocated: HashMap, spilled: Vec) -> RegisterAllocation { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_allocated_registers` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn num_allocated_registers(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_spilled_registers` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn num_spilled_registers(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_register(&self, register: &RegisterMIR) -> &AllocatedRegister { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alive_registers_at` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn alive_registers_at(&self, instruction_index: usize) -> Vec<(VirtualRegister, HardwareRegister)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alive_hardware_registers_at` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn alive_hardware_registers_at(&self, instruction_index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_owned` [INFO] [stdout] --> src/runtime/memory.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn is_owned(&self, address: *const std::ffi::c_void) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inside` [INFO] [stdout] --> src/runtime/heap.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn inside(&self, address: *const std::ffi::c_void) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_function` [INFO] [stdout] --> src/engine/execution.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_function(&self, signature: &FunctionSignature) -> Option<&Function> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_class` [INFO] [stdout] --> src/engine/execution.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn add_class(&mut self, class: Class) -> ExecutionEngineResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clear_vm` [INFO] [stdout] --> src/vm.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn clear_vm() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_float` [INFO] [stdout] --> src/execution_tests/float.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | extern "C" fn print_float(x: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add` [INFO] [stdout] --> src/execution_tests/float.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | extern "C" fn add(x: f32, y: f32) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum` [INFO] [stdout] --> src/execution_tests/call.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | extern "C" fn sum(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum8` [INFO] [stdout] --> src/execution_tests/call.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | extern "C" fn sum8(x0: i32, x1: i32, x2: i32, x3: i32, x4: i32, x5: i32, x6: i32, x7: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum8_sub` [INFO] [stdout] --> src/execution_tests/call.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | extern "C" fn sum8_sub(x0: i32, x1: i32, x2: i32, x3: i32, x4: i32, x5: i32, x6: i32, x7: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub` [INFO] [stdout] --> src/execution_tests/call.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | extern "C" fn sub(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_array` [INFO] [stdout] --> src/execution_tests/array.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | extern "C" fn print_array(ptr: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_array` [INFO] [stdout] --> src/execution_tests/array.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | extern "C" fn set_array(ptr: u64, index: i32, value: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_array_float` [INFO] [stdout] --> src/execution_tests/array.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | extern "C" fn set_array_float(ptr: u64, index: i32, value: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_float` [INFO] [stdout] --> src/execution_tests/array.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | extern "C" fn print_float(x: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_point` [INFO] [stdout] --> src/execution_tests/class.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | extern "C" fn print_point(ptr: u64) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_point_x` [INFO] [stdout] --> src/execution_tests/class.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | extern "C" fn set_point_x(ptr: u64, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `push` [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | extern "C" fn push() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum` [INFO] [stdout] --> src/main.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | extern "C" fn sum(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum3` [INFO] [stdout] --> src/main.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | extern "C" fn sum3(x: i32, y: i32, z: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `mapping_i64` should have an upper case name [INFO] [stdout] --> src/compiler/code_generator.rs:820:19 [INFO] [stdout] | [INFO] [stdout] 820 | static ref mapping_i64: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_I64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `mapping_i32` should have an upper case name [INFO] [stdout] --> src/compiler/code_generator.rs:831:20 [INFO] [stdout] | [INFO] [stdout] 831 | static ref mapping_i32: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_I32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `mapping_f32` should have an upper case name [INFO] [stdout] --> src/compiler/code_generator.rs:842:20 [INFO] [stdout] | [INFO] [stdout] 842 | static ref mapping_f32: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_F32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 153 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `operand_stack_size` [INFO] [stdout] --> src/model/function.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | operand_stack_size: usize [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: `operand_stack_size` [INFO] [stdout] --> src/model/function.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn operand_stack_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/model/class.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fields` [INFO] [stdout] --> src/model/class.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn fields(&self) -> &Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_defined` [INFO] [stdout] --> src/model/class.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn is_defined(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AllocatedInstructionIRCompiler` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct AllocatedInstructionIRCompiler<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(binder: &'a Binder, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `done` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn done(self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn compile(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register_allocate` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn register_allocate(compilation_result: &MIRCompilationResult) -> RegisterAllocation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_initialize_function` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn compile_initialize_function(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_instruction` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | fn compile_instruction(&mut self, instruction_index: usize, instruction: &InstructionMIR) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_stack_frame` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:497:8 [INFO] [stdout] | [INFO] [stdout] 497 | fn print_stack_frame(&mut self, instruction_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_call_argument_sources` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:503:8 [INFO] [stdout] | [INFO] [stdout] 503 | fn get_call_argument_sources(&self, func_to_call: &FunctionDefinition, arguments: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_be_null` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:532:8 [INFO] [stdout] | [INFO] [stdout] 532 | fn can_be_null(&self, instruction_index: usize, register: &RegisterMIR) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_alive_registers` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:537:8 [INFO] [stdout] | [INFO] [stdout] 537 | fn push_alive_registers(&mut self, instruction_index: usize) -> Vec<(VirtualRegister, HardwareRegister)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_alive_registers` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:549:8 [INFO] [stdout] | [INFO] [stdout] 549 | fn pop_alive_registers(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_if_alive` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:571:8 [INFO] [stdout] | [INFO] [stdout] 571 | fn push_if_alive(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_register` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:593:8 [INFO] [stdout] | [INFO] [stdout] 593 | fn move_register(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_operator` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:616:8 [INFO] [stdout] | [INFO] [stdout] 616 | fn binary_operator< [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_operator_f32` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:651:8 [INFO] [stdout] | [INFO] [stdout] 651 | fn binary_operator_f32< [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_virtual_register_stack_offset` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:687:8 [INFO] [stdout] | [INFO] [stdout] 687 | fn get_virtual_register_stack_offset(&self, register: &VirtualRegister) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register_stack_offset` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:691:8 [INFO] [stdout] | [INFO] [stdout] 691 | fn get_register_stack_offset(&self, register: &RegisterMIR) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TempRegisters` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:696:8 [INFO] [stdout] | [INFO] [stdout] 696 | struct TempRegisters<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:702:12 [INFO] [stdout] | [INFO] [stdout] 702 | pub fn new(register_allocation: &'a RegisterAllocation) -> TempRegisters<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `try_remove` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:717:12 [INFO] [stdout] | [INFO] [stdout] 717 | pub fn try_remove(&mut self, register: &RegisterMIR) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/ir/allocated_ir_compiler.rs:723:12 [INFO] [stdout] | [INFO] [stdout] 723 | pub fn get_register(&mut self, register: &RegisterMIR) -> (bool, HardwareRegister) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FloatSpill` [INFO] [stdout] --> src/ir/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | FloatSpill, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddToStackPointer` [INFO] [stdout] --> src/ir/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | AddToStackPointer(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pop` [INFO] [stdout] --> src/ir/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | Pop(HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PushExplicit` [INFO] [stdout] --> src/ir/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | PushExplicit(HardwareRegisterExplicit), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PopExplicit` [INFO] [stdout] --> src/ir/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | PopExplicit(HardwareRegisterExplicit), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PopEmpty` [INFO] [stdout] --> src/ir/mod.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | PopEmpty, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PushInt32` [INFO] [stdout] --> src/ir/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | PushInt32(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/ir/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | Move(HardwareRegister, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MoveInt32ToRegister` [INFO] [stdout] --> src/ir/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | MoveInt32ToRegister(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddInt32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | AddInt32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddInt32ToFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | AddInt32ToFrameMemory(i32, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SubInt32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | SubInt32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SubInt32ToFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | SubInt32ToFrameMemory(i32, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AddFloat32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | AddFloat32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SubFloat32FromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | SubFloat32FromFrameMemory(HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompareFromFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | CompareFromFrameMemory(Type, HardwareRegister, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CompareToFrameMemory` [INFO] [stdout] --> src/ir/mod.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | CompareToFrameMemory(Type, i32, HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Register` [INFO] [stdout] --> src/ir/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | Register(HardwareRegister), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_jump_target` [INFO] [stdout] --> src/compiler/code_generator.rs:788:8 [INFO] [stdout] | [INFO] [stdout] 788 | fn set_jump_target(&mut self, branch_offset: usize, branch_instruction_size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `push_r32` [INFO] [stdout] --> src/compiler/code_generator.rs:884:8 [INFO] [stdout] | [INFO] [stdout] 884 | pub fn push_r32(mut encode_instruction: F, register: Register) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pop_r32` [INFO] [stdout] --> src/compiler/code_generator.rs:899:8 [INFO] [stdout] | [INFO] [stdout] 899 | pub fn pop_r32(mut encode_instruction: F, register: Register) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_call_register` [INFO] [stdout] --> src/compiler/calling_conventions.rs:237:8 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn get_call_register(func_to_call: &FunctionDefinition, index: usize, argument_type: &Type) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RETURN_VALUE_32` [INFO] [stdout] --> src/compiler/calling_conventions.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | pub const RETURN_VALUE_32: Register = Register::EAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Absolute` [INFO] [stdout] --> src/compiler/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | Absolute [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `for_type` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn for_type(&self, register_type: &VirtualRegisterType) -> &BTreeSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `interval` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn interval(&self) -> &LiveInterval { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_stack` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn is_stack(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_register` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_register(&self, register: &RegisterMIR) -> &AllocatedRegister { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alive_registers_at` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn alive_registers_at(&self, instruction_index: usize) -> Vec<(VirtualRegister, HardwareRegister)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alive_hardware_registers_at` [INFO] [stdout] --> src/optimization/register_allocation/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn alive_hardware_registers_at(&self, instruction_index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_function` [INFO] [stdout] --> src/engine/execution.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_function(&self, signature: &FunctionSignature) -> Option<&Function> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clear_vm` [INFO] [stdout] --> src/vm.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn clear_vm() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `push` [INFO] [stdout] --> src/main.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | extern "C" fn push() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum` [INFO] [stdout] --> src/main.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | extern "C" fn sum(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum3` [INFO] [stdout] --> src/main.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | extern "C" fn sum3(x: i32, y: i32, z: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `mapping_i64` should have an upper case name [INFO] [stdout] --> src/compiler/code_generator.rs:820:19 [INFO] [stdout] | [INFO] [stdout] 820 | static ref mapping_i64: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_I64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `mapping_i32` should have an upper case name [INFO] [stdout] --> src/compiler/code_generator.rs:831:20 [INFO] [stdout] | [INFO] [stdout] 831 | static ref mapping_i32: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_I32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `mapping_f32` should have an upper case name [INFO] [stdout] --> src/compiler/code_generator.rs:842:20 [INFO] [stdout] | [INFO] [stdout] 842 | static ref mapping_f32: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_F32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 75 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 26.28s [INFO] running `Command { std: "docker" "inspect" "6ff14fc937fafca3d83b16c2a06a6f0d6ebb3dc495567c229be449469fd59cc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ff14fc937fafca3d83b16c2a06a6f0d6ebb3dc495567c229be449469fd59cc9", kill_on_drop: false }` [INFO] [stdout] 6ff14fc937fafca3d83b16c2a06a6f0d6ebb3dc495567c229be449469fd59cc9