[INFO] cloning repository https://github.com/Yiklek/rslua [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yiklek/rslua" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYiklek%2Frslua", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYiklek%2Frslua'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d50ce071b19088c4aa7776c92906750d748b36d [INFO] checking Yiklek/rslua/3d50ce071b19088c4aa7776c92906750d748b36d against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYiklek%2Frslua" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Yiklek/rslua on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yiklek/rslua [INFO] finished tweaking git repo https://github.com/Yiklek/rslua [INFO] tweaked toml for git repo https://github.com/Yiklek/rslua written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Yiklek/rslua already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 684af24096be8605097773a790f8c1d20a15a5badd32df217c27879d74be3fab [INFO] running `Command { std: "docker" "start" "-a" "684af24096be8605097773a790f8c1d20a15a5badd32df217c27879d74be3fab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "684af24096be8605097773a790f8c1d20a15a5badd32df217c27879d74be3fab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "684af24096be8605097773a790f8c1d20a15a5badd32df217c27879d74be3fab", kill_on_drop: false }` [INFO] [stdout] 684af24096be8605097773a790f8c1d20a15a5badd32df217c27879d74be3fab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e17382a96caeb2ff967c4ad26c0bb4b58908577327056f05c3ed7dbb01316cd [INFO] running `Command { std: "docker" "start" "-a" "4e17382a96caeb2ff967c4ad26c0bb4b58908577327056f05c3ed7dbb01316cd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking rslua v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> src/chunk.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/chunk.rs:384:9 [INFO] [stdout] | [INFO] [stdout] 384 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `list` and `un_dump` [INFO] [stdout] --> src/chunk.rs:385:24 [INFO] [stdout] | [INFO] [stdout] 385 | use crate::chunk::{un_dump, list, print_chunk}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> src/state.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut registry = LuaValue::Table(Arc::new(RefCell::new(table))); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/state.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut registry = LuaValue::Table(Arc::new(RefCell::new(table))); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/api.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait LuaApi { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn abs_index(&self, idx: isize) -> usize; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn insert(&mut self, idx: isize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | fn remove(&mut self, idx: isize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn type_name(&self, tp: LuaValue) -> &'static str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn is_none_or_nil(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 35 | fn is_boolean(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | fn is_integer(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn is_table(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 40 | fn is_thread(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | fn is_function(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 42 | fn is_rust_function(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn to_rust_function(&self, idx: isize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn push_number(&mut self, n: f64); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | fn push_string(&mut self, s: String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn new_table(&mut self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn get_field(&mut self, idx: isize, k: String) -> LuaValue; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 70 | fn get_i(&mut self, idx: isize, i: i64) -> LuaValue; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | fn get_global(&mut self, name: String) -> LuaValue; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn set_field(&mut self, idx: isize, k: String); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn register(&mut self, name: String, f: RustFn); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 78 | /*function*/ [INFO] [stdout] 79 | fn load(&mut self, chunk: Bytes, chunk_name: &str, mode: &str); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pc` is never used [INFO] [stdout] --> src/api.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait LuaVM: LuaApi { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 84 | fn pc(&self) -> PCAddr; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LightUserData`, `Function`, `UserData`, and `Thread` are never constructed [INFO] [stdout] --> src/api.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub enum LuaValue { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 256 | LightUserData, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 262 | Closure(Arc), [INFO] [stdout] 263 | UserData, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 264 | Thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LuaValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ABC_B_LEN` is never used [INFO] [stdout] --> src/instruction.rs:146:7 [INFO] [stdout] | [INFO] [stdout] 146 | const ABC_B_LEN :usize = 9; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `A_SBX_A_LEN` is never used [INFO] [stdout] --> src/instruction.rs:150:7 [INFO] [stdout] | [INFO] [stdout] 150 | const A_SBX_A_LEN :usize = 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `A_SBX_SBX_LEN` is never used [INFO] [stdout] --> src/instruction.rs:151:7 [INFO] [stdout] | [INFO] [stdout] 151 | const A_SBX_SBX_LEN :usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AX_AX_LEN` is never used [INFO] [stdout] --> src/instruction.rs:152:7 [INFO] [stdout] | [INFO] [stdout] 152 | const AX_AX_LEN :usize = 26; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `op_name`, `op_mode`, `b_mode`, and `c_mode` are never used [INFO] [stdout] --> src/instruction.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 161 | impl Instruction{ [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 162 | pub fn op_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn op_mode(&self) -> OpMode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn b_mode(&self) -> OpArgMode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn c_mode(&self) -> OpArgMode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `test_flag`, `set_a_flag`, `arg_b_mode`, `arg_c_mode`, `op_mode`, and `name` are never read [INFO] [stdout] --> src/instruction.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 213 | pub(crate)struct OpCode { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 214 | test_flag: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 215 | set_a_flag: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 216 | arg_b_mode: OpArgMode, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 217 | arg_c_mode: OpArgMode, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 218 | op_mode: OpMode, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 219 | name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_capacity` are never used [INFO] [stdout] --> src/state.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl LuaState { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 163 | pub fn new() -> LuaState { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn with_capacity(i: usize) -> LuaState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_stack` is never used [INFO] [stdout] --> src/state.rs:748:15 [INFO] [stdout] | [INFO] [stdout] 748 | pub(crate) fn print_stack(state: &LuaState) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_stack` is never used [INFO] [stdout] --> src/state.rs:757:15 [INFO] [stdout] | [INFO] [stdout] 757 | pub(crate) fn format_stack(state: &LuaState) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/chunk.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chunk` is never constructed [INFO] [stdout] --> src/chunk.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/chunk.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct ProtoType { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 54 | pub source: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 55 | // debug [INFO] [stdout] 56 | pub line_defined: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 57 | pub last_line_defined: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub up_values: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub line_info: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 68 | // debug [INFO] [stdout] 69 | pub loc_vars: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | pub up_value_names: Vec, // debug [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProtoType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `in_stack` and `idx` are never read [INFO] [stdout] --> src/chunk.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct UpValue { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 99 | pub in_stack: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 100 | pub idx: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `var_name`, `start_pc`, and `end_pc` are never read [INFO] [stdout] --> src/chunk.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct LocVar { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 105 | pub var_name: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 106 | pub start_pc: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 107 | pub end_pc: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocVar` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `un_dump_file` is never used [INFO] [stdout] --> src/chunk.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | pub(crate) fn un_dump_file(file_path: &dyn ToString) -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/chunk.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | pub(crate) fn read_file(file_path: &dyn ToString) -> Bytes { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list` is never used [INFO] [stdout] --> src/chunk.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn list(p: &ProtoType) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_header` is never used [INFO] [stdout] --> src/chunk.rs:283:4 [INFO] [stdout] | [INFO] [stdout] 283 | fn print_header(p: &ProtoType) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_code` is never used [INFO] [stdout] --> src/chunk.rs:300:4 [INFO] [stdout] | [INFO] [stdout] 300 | fn print_code(p: &ProtoType) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_operands` is never used [INFO] [stdout] --> src/chunk.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn print_operands(i: Instruction) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_detail` is never used [INFO] [stdout] --> src/chunk.rs:353:4 [INFO] [stdout] | [INFO] [stdout] 353 | fn print_detail(p: &ProtoType) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_chunk` is never used [INFO] [stdout] --> src/chunk.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn print_chunk(path: &dyn ToString) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lua_main` is never used [INFO] [stdout] --> src/vm.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn lua_main(file: &dyn ToString){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/state.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | if new_top < 0 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/api.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait LuaApi { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn abs_index(&self, idx: isize) -> usize; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn insert(&mut self, idx: isize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn type_name(&self, tp: LuaValue) -> &'static str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn is_none_or_nil(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 35 | fn is_boolean(&self, idx: isize) -> bool; [INFO] [stdout] 36 | fn is_integer(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn is_table(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 40 | fn is_thread(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | fn is_function(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 42 | fn is_rust_function(&self, idx: isize) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn to_rust_function(&self, idx: isize) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn new_table(&mut self); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn get_field(&mut self, idx: isize, k: String) -> LuaValue; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 70 | fn get_i(&mut self, idx: isize, i: i64) -> LuaValue; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | fn get_global(&mut self, name: String) -> LuaValue; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn set_field(&mut self, idx: isize, k: String); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pc` is never used [INFO] [stdout] --> src/api.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait LuaVM: LuaApi { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 84 | fn pc(&self) -> PCAddr; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LightUserData`, `Function`, `UserData`, and `Thread` are never constructed [INFO] [stdout] --> src/api.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub enum LuaValue { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 256 | LightUserData, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | Function, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 262 | Closure(Arc), [INFO] [stdout] 263 | UserData, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 264 | Thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LuaValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ABC_B_LEN` is never used [INFO] [stdout] --> src/instruction.rs:146:7 [INFO] [stdout] | [INFO] [stdout] 146 | const ABC_B_LEN :usize = 9; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `A_SBX_A_LEN` is never used [INFO] [stdout] --> src/instruction.rs:150:7 [INFO] [stdout] | [INFO] [stdout] 150 | const A_SBX_A_LEN :usize = 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `A_SBX_SBX_LEN` is never used [INFO] [stdout] --> src/instruction.rs:151:7 [INFO] [stdout] | [INFO] [stdout] 151 | const A_SBX_SBX_LEN :usize = 18; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AX_AX_LEN` is never used [INFO] [stdout] --> src/instruction.rs:152:7 [INFO] [stdout] | [INFO] [stdout] 152 | const AX_AX_LEN :usize = 26; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `test_flag` and `set_a_flag` are never read [INFO] [stdout] --> src/instruction.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 213 | pub(crate)struct OpCode { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 214 | test_flag: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 215 | set_a_flag: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OpCode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/chunk.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chunk` is never constructed [INFO] [stdout] --> src/chunk.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | struct Chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `un_dump_file` is never used [INFO] [stdout] --> src/chunk.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | pub(crate) fn un_dump_file(file_path: &dyn ToString) -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/state.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | if new_top < 0 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.38s [INFO] running `Command { std: "docker" "inspect" "4e17382a96caeb2ff967c4ad26c0bb4b58908577327056f05c3ed7dbb01316cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e17382a96caeb2ff967c4ad26c0bb4b58908577327056f05c3ed7dbb01316cd", kill_on_drop: false }` [INFO] [stdout] 4e17382a96caeb2ff967c4ad26c0bb4b58908577327056f05c3ed7dbb01316cd