[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] 672620b8a80e3282a8424f7e21db9cf881d936dd [INFO] checking svenslaggare/stackjit-rs against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [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 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 262e3c73a68a31860248cfe2db4001a52fba00abc0830e4ea5b76227bbc70ad2 [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" "262e3c73a68a31860248cfe2db4001a52fba00abc0830e4ea5b76227bbc70ad2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "262e3c73a68a31860248cfe2db4001a52fba00abc0830e4ea5b76227bbc70ad2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "262e3c73a68a31860248cfe2db4001a52fba00abc0830e4ea5b76227bbc70ad2", kill_on_drop: false }` [INFO] [stdout] 262e3c73a68a31860248cfe2db4001a52fba00abc0830e4ea5b76227bbc70ad2 [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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f0895d808d26e419816f1b4af6c90c9a79397837c348a4be105c87e8b93d6bf [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" "4f0895d808d26e419816f1b4af6c90c9a79397837c348a4be105c87e8b93d6bf", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Checking static_assertions v0.3.4 [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: 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: `Branch` [INFO] [stdout] --> src/model/instruction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Branch(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchEqual` [INFO] [stdout] --> src/model/instruction.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | BranchEqual(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchNotEqual` [INFO] [stdout] --> src/model/instruction.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | BranchNotEqual(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchGreaterThan` [INFO] [stdout] --> src/model/instruction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | BranchGreaterThan(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchGreaterThanOrEqual` [INFO] [stdout] --> src/model/instruction.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | BranchGreaterThanOrEqual(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchLessThan` [INFO] [stdout] --> src/model/instruction.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | BranchLessThan(BranchTarget), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `BranchLessThanOrEqual` [INFO] [stdout] --> src/model/instruction.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | 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: `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:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn name(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `println_vec` [INFO] [stdout] --> src/ir/compiler.rs:365:4 [INFO] [stdout] | [INFO] [stdout] 365 | fn println_vec(original: &Vec, irs: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `InstructionIRCompiler` [INFO] [stdout] --> src/ir/ir_compiler.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct InstructionIRCompiler<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ir/ir_compiler.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(binder: &'a Binder, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile` [INFO] [stdout] --> src/ir/ir_compiler.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn compile(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_initialize_function` [INFO] [stdout] --> src/ir/ir_compiler.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | 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/ir_compiler.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn compile_instruction(&mut self, instruction_index: usize, instruction: &InstructionMIR) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_be_null` [INFO] [stdout] --> src/ir/ir_compiler.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | 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: `get_register_stack_offset` [INFO] [stdout] --> src/ir/ir_compiler.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | fn get_register_stack_offset(&self, register: &RegisterMIR) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `done` [INFO] [stdout] --> src/ir/ir_compiler.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn done(self) -> Vec { [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: `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: associated function is never used: `first` [INFO] [stdout] --> src/analysis/basic_block.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | 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:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | 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:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | 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:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | 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:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn extract_edges(graph: &ControlFlowGraph, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_jump_target` [INFO] [stdout] --> src/compiler/code_generator.rs:681:8 [INFO] [stdout] | [INFO] [stdout] 681 | 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:777:8 [INFO] [stdout] | [INFO] [stdout] 777 | 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:792:8 [INFO] [stdout] | [INFO] [stdout] 792 | pub fn pop_r32(mut encode_instruction: F, register: Register) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `local_stack_offset` [INFO] [stdout] --> src/compiler/stack_layout.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn local_stack_offset(function: &Function, index: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `operand_stack_offset` [INFO] [stdout] --> src/compiler/stack_layout.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn operand_stack_offset(function: &Function, index: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stack_value_offset` [INFO] [stdout] --> src/compiler/stack_layout.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn stack_value_offset(function: &Function, [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:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | 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:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn for_type(&self, register_type: &VirtualRegisterType) -> &BTreeSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `analyze` [INFO] [stdout] --> src/optimization/register_allocation/linear_scan.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn analyze(instructions: &Vec) -> (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:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn print_allocation(instructions: &Vec, live_intervals: &Vec, allocation: &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: `is_owned` [INFO] [stdout] --> src/runtime/memory.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | 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: `binder` [INFO] [stdout] --> src/engine/execution.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn binder(&self) -> &Binder { [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: `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:713:19 [INFO] [stdout] | [INFO] [stdout] 713 | 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:724:20 [INFO] [stdout] | [INFO] [stdout] 724 | 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:735:20 [INFO] [stdout] | [INFO] [stdout] 735 | static ref mapping_f32: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_F32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 70 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: struct is never constructed: `InstructionIRCompiler` [INFO] [stdout] --> src/ir/ir_compiler.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct InstructionIRCompiler<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ir/ir_compiler.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(binder: &'a Binder, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile` [INFO] [stdout] --> src/ir/ir_compiler.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn compile(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_initialize_function` [INFO] [stdout] --> src/ir/ir_compiler.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | 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/ir_compiler.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn compile_instruction(&mut self, instruction_index: usize, instruction: &InstructionMIR) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_be_null` [INFO] [stdout] --> src/ir/ir_compiler.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | 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: `get_register_stack_offset` [INFO] [stdout] --> src/ir/ir_compiler.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | fn get_register_stack_offset(&self, register: &RegisterMIR) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `done` [INFO] [stdout] --> src/ir/ir_compiler.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn done(self) -> Vec { [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: `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: associated function is never used: `set_jump_target` [INFO] [stdout] --> src/compiler/code_generator.rs:681:8 [INFO] [stdout] | [INFO] [stdout] 681 | 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:777:8 [INFO] [stdout] | [INFO] [stdout] 777 | 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:792:8 [INFO] [stdout] | [INFO] [stdout] 792 | pub fn pop_r32(mut encode_instruction: F, register: Register) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `local_stack_offset` [INFO] [stdout] --> src/compiler/stack_layout.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn local_stack_offset(function: &Function, index: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `operand_stack_offset` [INFO] [stdout] --> src/compiler/stack_layout.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn operand_stack_offset(function: &Function, index: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stack_value_offset` [INFO] [stdout] --> src/compiler/stack_layout.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn stack_value_offset(function: &Function, [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:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | 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:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn for_type(&self, register_type: &VirtualRegisterType) -> &BTreeSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binder` [INFO] [stdout] --> src/engine/execution.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn binder(&self) -> &Binder { [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:713:19 [INFO] [stdout] | [INFO] [stdout] 713 | 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:724:20 [INFO] [stdout] | [INFO] [stdout] 724 | 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:735:20 [INFO] [stdout] | [INFO] [stdout] 735 | static ref mapping_f32: Vec = { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `MAPPING_F32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.06s [INFO] running `Command { std: "docker" "inspect" "4f0895d808d26e419816f1b4af6c90c9a79397837c348a4be105c87e8b93d6bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f0895d808d26e419816f1b4af6c90c9a79397837c348a4be105c87e8b93d6bf", kill_on_drop: false }` [INFO] [stdout] 4f0895d808d26e419816f1b4af6c90c9a79397837c348a4be105c87e8b93d6bf