[INFO] cloning repository https://github.com/Auxnon/silt-lua [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Auxnon/silt-lua" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAuxnon%2Fsilt-lua", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAuxnon%2Fsilt-lua'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8bdc41de225dd9469edb667278a1af802d408a0 [INFO] testing Auxnon/silt-lua against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAuxnon%2Fsilt-lua" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Auxnon/silt-lua on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Auxnon/silt-lua [INFO] finished tweaking git repo https://github.com/Auxnon/silt-lua [INFO] tweaked toml for git repo https://github.com/Auxnon/silt-lua written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Auxnon/silt-lua 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded allocator-api2 v0.2.14 [INFO] [stderr] Downloaded syn v2.0.29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2488620a5a0c1aff6881c8666214698e97adb1d5701edc9db8b239eb902fa3e8 [INFO] running `Command { std: "docker" "start" "-a" "2488620a5a0c1aff6881c8666214698e97adb1d5701edc9db8b239eb902fa3e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2488620a5a0c1aff6881c8666214698e97adb1d5701edc9db8b239eb902fa3e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2488620a5a0c1aff6881c8666214698e97adb1d5701edc9db8b239eb902fa3e8", kill_on_drop: false }` [INFO] [stdout] 2488620a5a0c1aff6881c8666214698e97adb1d5701edc9db8b239eb902fa3e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 685bf2306c2789750da18c5ac7b4eddc3418b9df391887f5aab17126fccbd1ff [INFO] running `Command { std: "docker" "start" "-a" "685bf2306c2789750da18c5ac7b4eddc3418b9df391887f5aab17126fccbd1ff", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.87 [INFO] [stderr] Compiling bumpalo v3.13.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.87 [INFO] [stderr] Compiling allocator-api2 v0.2.14 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.87 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.87 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.87 [INFO] [stderr] Compiling silt-lua v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `scope_and_block_until_then_eat` [INFO] [stdout] --> src/compiler.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | macro_rules! scope_and_block_until_then_eat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `op_assign` [INFO] [stdout] --> src/compiler.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | macro_rules! op_assign { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `expect_token_exp` [INFO] [stdout] --> src/compiler.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | macro_rules! expect_token_exp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/error.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | value::{self, Value}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `intr2f` [INFO] [stdout] --> src/lua.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! intr2f { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `op_error` [INFO] [stdout] --> src/lua.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | macro_rules! op_error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `valeq` [INFO] [stdout] --> src/lib.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | macro_rules! valeq { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `fails` [INFO] [stdout] --> src/lib.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | macro_rules! fails { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `vstr` [INFO] [stdout] --> src/lib.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | macro_rules! vstr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compiler.rs:1946:5 [INFO] [stdout] | [INFO] [stdout] 1945 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 1946 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compiler.rs:1951:5 [INFO] [stdout] | [INFO] [stdout] 1950 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 1951 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chunk.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | match self.constants.iter().enumerate().position(|(i, x)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/compiler.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let t = self.iterator.next(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:597:33 [INFO] [stdout] | [INFO] [stdout] 597 | fn swap_function(&mut self, mut func: &mut FunctionObject) { [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: unused variable: `loc` [INFO] [stdout] --> src/compiler.rs:694:13 [INFO] [stdout] | [INFO] [stdout] 694 | let loc = self.current_location; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/compiler.rs:976:39 [INFO] [stdout] | [INFO] [stdout] 976 | if let Token::ColonIdentifier(target) = t { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_ident` [INFO] [stdout] --> src/compiler.rs:1033:54 [INFO] [stdout] | [INFO] [stdout] 1033 | fn define_function(this: &mut Compiler, local: bool, pre_ident: Option) -> Catch { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/compiler.rs:1466:19 [INFO] [stdout] | [INFO] [stdout] 1466 | Some((i, location)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/compiler.rs:1482:21 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compiler.rs:1482:28 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/compiler.rs:1482:35 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> src/compiler.rs:1546:62 [INFO] [stdout] | [INFO] [stdout] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:1546:58 [INFO] [stdout] | [INFO] [stdout] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1880:33 [INFO] [stdout] | [INFO] [stdout] 1880 | fn integer(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1892:32 [INFO] [stdout] | [INFO] [stdout] 1892 | fn number(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1904:32 [INFO] [stdout] | [INFO] [stdout] 1904 | fn string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1916:33 [INFO] [stdout] | [INFO] [stdout] 1916 | fn literal(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1928:30 [INFO] [stdout] | [INFO] [stdout] 1928 | fn call(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compiler.rs:1944:15 [INFO] [stdout] | [INFO] [stdout] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1944:36 [INFO] [stdout] | [INFO] [stdout] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compiler.rs:1949:16 [INFO] [stdout] | [INFO] [stdout] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1949:37 [INFO] [stdout] | [INFO] [stdout] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut strip = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last` is assigned to, but never used [INFO] [stdout] --> src/lua.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | let mut last = Value::Nil; // TODO temporary for testing [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/lua.rs:522:40 [INFO] [stdout] | [INFO] [stdout] 522 | OpCode::DEFINE_LOCAL { constant } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `constant: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/lua.rs:625:35 [INFO] [stdout] | [INFO] [stdout] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/lua.rs:625:41 [INFO] [stdout] | [INFO] [stdout] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `literal: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/lua.rs:627:21 [INFO] [stdout] | [INFO] [stdout] 627 | last = self.pop(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lua.rs:762:41 [INFO] [stdout] | [INFO] [stdout] 762 | Value::Function(func) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lua.rs:841:42 [INFO] [stdout] | [INFO] [stdout] 841 | OpCode::TABLE_GET_FROM { index } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `index: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_top` [INFO] [stdout] --> src/lua.rs:953:13 [INFO] [stdout] | [INFO] [stdout] 953 | let frame_top = unsafe { self.stack_top.sub((param_count as usize) + 1) }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lua.rs:1017:33 [INFO] [stdout] | [INFO] [stdout] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple` is never used [INFO] [stdout] --> src/lib.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn simple(source: &str) -> Value { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `complex` is never used [INFO] [stdout] --> src/lib.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn complex(source: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tester` is never used [INFO] [stdout] --> src/code.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Tester { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extra` is never read [INFO] [stdout] --> src/compiler.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Compiler { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 249 | extra: bool, // pub global: &'a mut Environment, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_and_return` and `set_label` are never used [INFO] [stdout] --> src/compiler.rs:413:8 [INFO] [stdout] | [INFO] [stdout] 254 | impl<'a> Compiler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 413 | fn store_and_return(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | fn set_label(&mut self, label: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `declaration_scope` is never used [INFO] [stdout] --> src/compiler.rs:798:4 [INFO] [stdout] | [INFO] [stdout] 798 | fn declaration_scope( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic_for_statement` is never used [INFO] [stdout] --> src/compiler.rs:1359:4 [INFO] [stdout] | [INFO] [stdout] 1359 | fn generic_for_statement() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `final_resolve_goto` is never used [INFO] [stdout] --> src/compiler.rs:1479:4 [INFO] [stdout] | [INFO] [stdout] 1479 | fn final_resolve_goto(this: &mut Compiler) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `goto_scope_skip` is never used [INFO] [stdout] --> src/compiler.rs:1485:4 [INFO] [stdout] | [INFO] [stdout] 1485 | fn goto_scope_skip(this: &mut Compiler) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_expression` is never used [INFO] [stdout] --> src/compiler.rs:1507:4 [INFO] [stdout] | [INFO] [stdout] 1507 | fn next_expression(this: &mut Compiler) -> Catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_local_stack` and `take` are never used [INFO] [stdout] --> src/function.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'frame> CallFrame { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn print_local_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn take(&mut self) -> &Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/function.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct NativeObject { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 177 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Typer` is never constructed [INFO] [stdout] --> src/lexer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Mode { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Typer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eat_eat_send` is never used [INFO] [stdout] --> src/lexer.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl<'a> Lexer { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | fn eat_eat_send(&mut self, token: Token) -> TokenOption { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/lua.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a> Lua { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 231 | fn reserve(&mut self) -> *mut Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn print_upvalues(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | fn read_top(&self) -> Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn grab_mut(&mut self, n: usize) -> &mut Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 952 | fn call(&self, function: &Rc, param_count: u8) -> CallFrame { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1175 | fn print_raw_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExampleUserData` is never constructed [INFO] [stdout] --> src/userdata.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct ExampleUserData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/lua.rs:688:28 [INFO] [stdout] | [INFO] [stdout] 688 | if f.upvalue_count >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.08s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "685bf2306c2789750da18c5ac7b4eddc3418b9df391887f5aab17126fccbd1ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "685bf2306c2789750da18c5ac7b4eddc3418b9df391887f5aab17126fccbd1ff", kill_on_drop: false }` [INFO] [stdout] 685bf2306c2789750da18c5ac7b4eddc3418b9df391887f5aab17126fccbd1ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 480b4180457ecee829988b38f1a900d6b8c31f3662d8699a055ceeb8e3c75f39 [INFO] running `Command { std: "docker" "start" "-a" "480b4180457ecee829988b38f1a900d6b8c31f3662d8699a055ceeb8e3c75f39", kill_on_drop: false }` [INFO] [stdout] warning: unused macro definition: `scope_and_block_until_then_eat` [INFO] [stdout] --> src/compiler.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | macro_rules! scope_and_block_until_then_eat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `op_assign` [INFO] [stdout] --> src/compiler.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | macro_rules! op_assign { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `expect_token_exp` [INFO] [stdout] --> src/compiler.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | macro_rules! expect_token_exp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/error.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | value::{self, Value}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `intr2f` [INFO] [stdout] --> src/lua.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! intr2f { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `op_error` [INFO] [stdout] --> src/lua.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | macro_rules! op_error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `valeq` [INFO] [stdout] --> src/lib.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | macro_rules! valeq { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `fails` [INFO] [stdout] --> src/lib.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | macro_rules! fails { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `vstr` [INFO] [stdout] --> src/lib.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | macro_rules! vstr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compiler.rs:1946:5 [INFO] [stdout] | [INFO] [stdout] 1945 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 1946 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compiler.rs:1951:5 [INFO] [stdout] | [INFO] [stdout] 1950 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 1951 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chunk.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | match self.constants.iter().enumerate().position(|(i, x)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/compiler.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let t = self.iterator.next(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:597:33 [INFO] [stdout] | [INFO] [stdout] 597 | fn swap_function(&mut self, mut func: &mut FunctionObject) { [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: unused variable: `loc` [INFO] [stdout] --> src/compiler.rs:694:13 [INFO] [stdout] | [INFO] [stdout] 694 | let loc = self.current_location; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/compiler.rs:976:39 [INFO] [stdout] | [INFO] [stdout] 976 | if let Token::ColonIdentifier(target) = t { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_ident` [INFO] [stdout] --> src/compiler.rs:1033:54 [INFO] [stdout] | [INFO] [stdout] 1033 | fn define_function(this: &mut Compiler, local: bool, pre_ident: Option) -> Catch { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/compiler.rs:1466:19 [INFO] [stdout] | [INFO] [stdout] 1466 | Some((i, location)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/compiler.rs:1482:21 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compiler.rs:1482:28 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/compiler.rs:1482:35 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> src/compiler.rs:1546:62 [INFO] [stdout] | [INFO] [stdout] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:1546:58 [INFO] [stdout] | [INFO] [stdout] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1880:33 [INFO] [stdout] | [INFO] [stdout] 1880 | fn integer(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1892:32 [INFO] [stdout] | [INFO] [stdout] 1892 | fn number(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1904:32 [INFO] [stdout] | [INFO] [stdout] 1904 | fn string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1916:33 [INFO] [stdout] | [INFO] [stdout] 1916 | fn literal(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1928:30 [INFO] [stdout] | [INFO] [stdout] 1928 | fn call(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compiler.rs:1944:15 [INFO] [stdout] | [INFO] [stdout] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1944:36 [INFO] [stdout] | [INFO] [stdout] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compiler.rs:1949:16 [INFO] [stdout] | [INFO] [stdout] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1949:37 [INFO] [stdout] | [INFO] [stdout] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut strip = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last` is assigned to, but never used [INFO] [stdout] --> src/lua.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | let mut last = Value::Nil; // TODO temporary for testing [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/lua.rs:522:40 [INFO] [stdout] | [INFO] [stdout] 522 | OpCode::DEFINE_LOCAL { constant } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `constant: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/lua.rs:625:35 [INFO] [stdout] | [INFO] [stdout] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/lua.rs:625:41 [INFO] [stdout] | [INFO] [stdout] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `literal: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/lua.rs:627:21 [INFO] [stdout] | [INFO] [stdout] 627 | last = self.pop(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lua.rs:762:41 [INFO] [stdout] | [INFO] [stdout] 762 | Value::Function(func) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lua.rs:841:42 [INFO] [stdout] | [INFO] [stdout] 841 | OpCode::TABLE_GET_FROM { index } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `index: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_top` [INFO] [stdout] --> src/lua.rs:953:13 [INFO] [stdout] | [INFO] [stdout] 953 | let frame_top = unsafe { self.stack_top.sub((param_count as usize) + 1) }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lua.rs:1017:33 [INFO] [stdout] | [INFO] [stdout] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple` is never used [INFO] [stdout] --> src/lib.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn simple(source: &str) -> Value { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `complex` is never used [INFO] [stdout] --> src/lib.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn complex(source: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tester` is never used [INFO] [stdout] --> src/code.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Tester { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extra` is never read [INFO] [stdout] --> src/compiler.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Compiler { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 249 | extra: bool, // pub global: &'a mut Environment, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling silt-lua v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `store_and_return` and `set_label` are never used [INFO] [stdout] --> src/compiler.rs:413:8 [INFO] [stdout] | [INFO] [stdout] 254 | impl<'a> Compiler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 413 | fn store_and_return(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | fn set_label(&mut self, label: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `declaration_scope` is never used [INFO] [stdout] --> src/compiler.rs:798:4 [INFO] [stdout] | [INFO] [stdout] 798 | fn declaration_scope( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic_for_statement` is never used [INFO] [stdout] --> src/compiler.rs:1359:4 [INFO] [stdout] | [INFO] [stdout] 1359 | fn generic_for_statement() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `final_resolve_goto` is never used [INFO] [stdout] --> src/compiler.rs:1479:4 [INFO] [stdout] | [INFO] [stdout] 1479 | fn final_resolve_goto(this: &mut Compiler) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `goto_scope_skip` is never used [INFO] [stdout] --> src/compiler.rs:1485:4 [INFO] [stdout] | [INFO] [stdout] 1485 | fn goto_scope_skip(this: &mut Compiler) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_expression` is never used [INFO] [stdout] --> src/compiler.rs:1507:4 [INFO] [stdout] | [INFO] [stdout] 1507 | fn next_expression(this: &mut Compiler) -> Catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_local_stack` and `take` are never used [INFO] [stdout] --> src/function.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'frame> CallFrame { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn print_local_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn take(&mut self) -> &Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/function.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct NativeObject { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 177 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Typer` is never constructed [INFO] [stdout] --> src/lexer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Mode { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Typer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eat_eat_send` is never used [INFO] [stdout] --> src/lexer.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl<'a> Lexer { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | fn eat_eat_send(&mut self, token: Token) -> TokenOption { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/lua.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a> Lua { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 231 | fn reserve(&mut self) -> *mut Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn print_upvalues(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | fn read_top(&self) -> Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn grab_mut(&mut self, n: usize) -> &mut Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 952 | fn call(&self, function: &Rc, param_count: u8) -> CallFrame { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1175 | fn print_raw_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExampleUserData` is never constructed [INFO] [stdout] --> src/userdata.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct ExampleUserData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/lua.rs:688:28 [INFO] [stdout] | [INFO] [stdout] 688 | if f.upvalue_count >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `scope_and_block_until_then_eat` [INFO] [stdout] --> src/compiler.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | macro_rules! scope_and_block_until_then_eat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `op_assign` [INFO] [stdout] --> src/compiler.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | macro_rules! op_assign { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `expect_token_exp` [INFO] [stdout] --> src/compiler.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | macro_rules! expect_token_exp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/error.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | value::{self, Value}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `intr2f` [INFO] [stdout] --> src/lua.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! intr2f { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `op_error` [INFO] [stdout] --> src/lua.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | macro_rules! op_error { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/lib.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | code::{self, OpCode}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compiler.rs:1946:5 [INFO] [stdout] | [INFO] [stdout] 1945 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 1946 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compiler.rs:1951:5 [INFO] [stdout] | [INFO] [stdout] 1950 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 1951 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chunk.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | match self.constants.iter().enumerate().position(|(i, x)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/compiler.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let t = self.iterator.next(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:597:33 [INFO] [stdout] | [INFO] [stdout] 597 | fn swap_function(&mut self, mut func: &mut FunctionObject) { [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: unused variable: `loc` [INFO] [stdout] --> src/compiler.rs:694:13 [INFO] [stdout] | [INFO] [stdout] 694 | let loc = self.current_location; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/compiler.rs:976:39 [INFO] [stdout] | [INFO] [stdout] 976 | if let Token::ColonIdentifier(target) = t { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_ident` [INFO] [stdout] --> src/compiler.rs:1033:54 [INFO] [stdout] | [INFO] [stdout] 1033 | fn define_function(this: &mut Compiler, local: bool, pre_ident: Option) -> Catch { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/compiler.rs:1466:19 [INFO] [stdout] | [INFO] [stdout] 1466 | Some((i, location)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/compiler.rs:1482:21 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/compiler.rs:1482:28 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/compiler.rs:1482:35 [INFO] [stdout] | [INFO] [stdout] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> src/compiler.rs:1546:62 [INFO] [stdout] | [INFO] [stdout] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:1546:58 [INFO] [stdout] | [INFO] [stdout] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1880:33 [INFO] [stdout] | [INFO] [stdout] 1880 | fn integer(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1892:32 [INFO] [stdout] | [INFO] [stdout] 1892 | fn number(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1904:32 [INFO] [stdout] | [INFO] [stdout] 1904 | fn string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1916:33 [INFO] [stdout] | [INFO] [stdout] 1916 | fn literal(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1928:30 [INFO] [stdout] | [INFO] [stdout] 1928 | fn call(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compiler.rs:1944:15 [INFO] [stdout] | [INFO] [stdout] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1944:36 [INFO] [stdout] | [INFO] [stdout] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/compiler.rs:1949:16 [INFO] [stdout] | [INFO] [stdout] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compiler.rs:1949:37 [INFO] [stdout] | [INFO] [stdout] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut strip = false; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last` is assigned to, but never used [INFO] [stdout] --> src/lua.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | let mut last = Value::Nil; // TODO temporary for testing [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/lua.rs:522:40 [INFO] [stdout] | [INFO] [stdout] 522 | OpCode::DEFINE_LOCAL { constant } => todo!(), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `constant: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/lua.rs:625:35 [INFO] [stdout] | [INFO] [stdout] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal` [INFO] [stdout] --> src/lua.rs:625:41 [INFO] [stdout] | [INFO] [stdout] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `literal: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last` is never read [INFO] [stdout] --> src/lua.rs:627:21 [INFO] [stdout] | [INFO] [stdout] 627 | last = self.pop(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lua.rs:762:41 [INFO] [stdout] | [INFO] [stdout] 762 | Value::Function(func) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lua.rs:841:42 [INFO] [stdout] | [INFO] [stdout] 841 | OpCode::TABLE_GET_FROM { index } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `index: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frame_top` [INFO] [stdout] --> src/lua.rs:953:13 [INFO] [stdout] | [INFO] [stdout] 953 | let frame_top = unsafe { self.stack_top.sub((param_count as usize) + 1) }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lua.rs:1017:33 [INFO] [stdout] | [INFO] [stdout] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blank` [INFO] [stdout] --> src/lib.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let blank = FunctionObject::new(None, false); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_blank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CONSTANT` and `RETURN` are never constructed [INFO] [stdout] --> src/code.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Tester { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 106 | CONSTANT(u8), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 107 | RETURN, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `extra` is never read [INFO] [stdout] --> src/compiler.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Compiler { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 249 | extra: bool, // pub global: &'a mut Environment, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `store_and_return` and `set_label` are never used [INFO] [stdout] --> src/compiler.rs:413:8 [INFO] [stdout] | [INFO] [stdout] 254 | impl<'a> Compiler { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 413 | fn store_and_return(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | fn set_label(&mut self, label: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `declaration_scope` is never used [INFO] [stdout] --> src/compiler.rs:798:4 [INFO] [stdout] | [INFO] [stdout] 798 | fn declaration_scope( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic_for_statement` is never used [INFO] [stdout] --> src/compiler.rs:1359:4 [INFO] [stdout] | [INFO] [stdout] 1359 | fn generic_for_statement() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `final_resolve_goto` is never used [INFO] [stdout] --> src/compiler.rs:1479:4 [INFO] [stdout] | [INFO] [stdout] 1479 | fn final_resolve_goto(this: &mut Compiler) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `goto_scope_skip` is never used [INFO] [stdout] --> src/compiler.rs:1485:4 [INFO] [stdout] | [INFO] [stdout] 1485 | fn goto_scope_skip(this: &mut Compiler) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_expression` is never used [INFO] [stdout] --> src/compiler.rs:1507:4 [INFO] [stdout] | [INFO] [stdout] 1507 | fn next_expression(this: &mut Compiler) -> Catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_local_stack` and `take` are never used [INFO] [stdout] --> src/function.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'frame> CallFrame { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn print_local_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn take(&mut self) -> &Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/function.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct NativeObject { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 177 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Typer` is never constructed [INFO] [stdout] --> src/lexer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Mode { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | Typer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eat_eat_send` is never used [INFO] [stdout] --> src/lexer.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl<'a> Lexer { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | fn eat_eat_send(&mut self, token: Token) -> TokenOption { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/lua.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 195 | impl<'a> Lua { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 231 | fn reserve(&mut self) -> *mut Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn print_upvalues(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | fn read_top(&self) -> Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn grab_mut(&mut self, n: usize) -> &mut Value { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 952 | fn call(&self, function: &Rc, param_count: u8) -> CallFrame { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1175 | fn print_raw_stack(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExampleUserData` is never constructed [INFO] [stdout] --> src/userdata.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct ExampleUserData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/lua.rs:688:28 [INFO] [stdout] | [INFO] [stdout] 688 | if f.upvalue_count >= 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "480b4180457ecee829988b38f1a900d6b8c31f3662d8699a055ceeb8e3c75f39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "480b4180457ecee829988b38f1a900d6b8c31f3662d8699a055ceeb8e3c75f39", kill_on_drop: false }` [INFO] [stdout] 480b4180457ecee829988b38f1a900d6b8c31f3662d8699a055ceeb8e3c75f39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1bcdc50d7dfb1cfc5da53fbcedc6daaa1aa1f718fea196d039a857bb04dbc185 [INFO] running `Command { std: "docker" "start" "-a" "1bcdc50d7dfb1cfc5da53fbcedc6daaa1aa1f718fea196d039a857bb04dbc185", kill_on_drop: false }` [INFO] [stderr] warning: unused macro definition: `scope_and_block_until_then_eat` [INFO] [stderr] --> src/compiler.rs:56:14 [INFO] [stderr] | [INFO] [stderr] 56 | macro_rules! scope_and_block_until_then_eat { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `op_assign` [INFO] [stderr] --> src/compiler.rs:83:14 [INFO] [stderr] | [INFO] [stderr] 83 | macro_rules! op_assign { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `expect_token_exp` [INFO] [stderr] --> src/compiler.rs:120:14 [INFO] [stderr] | [INFO] [stderr] 120 | macro_rules! expect_token_exp { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/error.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | value::{self, Value}, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `intr2f` [INFO] [stderr] --> src/lua.rs:21:14 [INFO] [stderr] | [INFO] [stderr] 21 | macro_rules! intr2f { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `op_error` [INFO] [stderr] --> src/lua.rs:97:14 [INFO] [stderr] | [INFO] [stderr] 97 | macro_rules! op_error { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `valeq` [INFO] [stderr] --> src/lib.rs:60:14 [INFO] [stderr] | [INFO] [stderr] 60 | macro_rules! valeq { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `fails` [INFO] [stderr] --> src/lib.rs:66:14 [INFO] [stderr] | [INFO] [stderr] 66 | macro_rules! fails { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `vstr` [INFO] [stderr] --> src/lib.rs:75:14 [INFO] [stderr] | [INFO] [stderr] 75 | macro_rules! vstr { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/compiler.rs:1946:5 [INFO] [stderr] | [INFO] [stderr] 1945 | todo!(); [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] 1946 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/compiler.rs:1951:5 [INFO] [stderr] | [INFO] [stderr] 1950 | todo!(); [INFO] [stderr] | ------- any code following this expression is unreachable [INFO] [stderr] 1951 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/chunk.rs:44:60 [INFO] [stderr] | [INFO] [stderr] 44 | match self.constants.iter().enumerate().position(|(i, x)| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/compiler.rs:381:13 [INFO] [stderr] | [INFO] [stderr] 381 | let t = self.iterator.next(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/compiler.rs:597:33 [INFO] [stderr] | [INFO] [stderr] 597 | fn swap_function(&mut self, mut func: &mut FunctionObject) { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `loc` [INFO] [stderr] --> src/compiler.rs:694:13 [INFO] [stderr] | [INFO] [stderr] 694 | let loc = self.current_location; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/compiler.rs:976:39 [INFO] [stderr] | [INFO] [stderr] 976 | if let Token::ColonIdentifier(target) = t { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pre_ident` [INFO] [stderr] --> src/compiler.rs:1033:54 [INFO] [stderr] | [INFO] [stderr] 1033 | fn define_function(this: &mut Compiler, local: bool, pre_ident: Option) -> Catch { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_ident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/compiler.rs:1466:19 [INFO] [stderr] | [INFO] [stderr] 1466 | Some((i, location)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ident` [INFO] [stderr] --> src/compiler.rs:1482:21 [INFO] [stderr] | [INFO] [stderr] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/compiler.rs:1482:28 [INFO] [stderr] | [INFO] [stderr] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/compiler.rs:1482:35 [INFO] [stderr] | [INFO] [stderr] 1482 | .for_each(|(ident, index, location)| {}); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `local` [INFO] [stderr] --> src/compiler.rs:1546:62 [INFO] [stderr] | [INFO] [stderr] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/compiler.rs:1546:58 [INFO] [stderr] | [INFO] [stderr] 1546 | fn named_variable(this: &mut Compiler, can_assign: bool, mut local: bool) -> Catch { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1880:33 [INFO] [stderr] | [INFO] [stderr] 1880 | fn integer(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1892:32 [INFO] [stderr] | [INFO] [stderr] 1892 | fn number(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1904:32 [INFO] [stderr] | [INFO] [stderr] 1904 | fn string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1916:33 [INFO] [stderr] | [INFO] [stderr] 1916 | fn literal(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1928:30 [INFO] [stderr] | [INFO] [stderr] 1928 | fn call(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `this` [INFO] [stderr] --> src/compiler.rs:1944:15 [INFO] [stderr] | [INFO] [stderr] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1944:36 [INFO] [stderr] | [INFO] [stderr] 1944 | fn call_table(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `this` [INFO] [stderr] --> src/compiler.rs:1949:16 [INFO] [stderr] | [INFO] [stderr] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `can_assign` [INFO] [stderr] --> src/compiler.rs:1949:37 [INFO] [stderr] | [INFO] [stderr] 1949 | fn call_string(this: &mut Compiler, can_assign: bool) -> Catch { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lexer.rs:160:13 [INFO] [stderr] | [INFO] [stderr] 160 | let mut strip = false; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable `last` is assigned to, but never used [INFO] [stderr] --> src/lua.rs:415:17 [INFO] [stderr] | [INFO] [stderr] 415 | let mut last = Value::Nil; // TODO temporary for testing [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_last` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `constant` [INFO] [stderr] --> src/lua.rs:522:40 [INFO] [stderr] | [INFO] [stderr] 522 | OpCode::DEFINE_LOCAL { constant } => todo!(), [INFO] [stderr] | ^^^^^^^^ help: try ignoring the field: `constant: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dest` [INFO] [stderr] --> src/lua.rs:625:35 [INFO] [stderr] | [INFO] [stderr] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stderr] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `literal` [INFO] [stderr] --> src/lua.rs:625:41 [INFO] [stderr] | [INFO] [stderr] 625 | OpCode::LITERAL { dest, literal } => {} [INFO] [stderr] | ^^^^^^^ help: try ignoring the field: `literal: _` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `last` is never read [INFO] [stderr] --> src/lua.rs:627:21 [INFO] [stderr] | [INFO] [stderr] 627 | last = self.pop(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func` [INFO] [stderr] --> src/lua.rs:762:41 [INFO] [stderr] | [INFO] [stderr] 762 | Value::Function(func) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/lua.rs:841:42 [INFO] [stderr] | [INFO] [stderr] 841 | OpCode::TABLE_GET_FROM { index } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `index: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `frame_top` [INFO] [stderr] --> src/lua.rs:953:13 [INFO] [stderr] | [INFO] [stderr] 953 | let frame_top = unsafe { self.stack_top.sub((param_count as usize) + 1) }; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frame_top` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/lua.rs:1017:33 [INFO] [stderr] | [INFO] [stderr] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: function `simple` is never used [INFO] [stderr] --> src/lib.rs:21:4 [INFO] [stderr] | [INFO] [stderr] 21 | fn simple(source: &str) -> Value { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `complex` is never used [INFO] [stderr] --> src/lib.rs:36:4 [INFO] [stderr] | [INFO] [stderr] 36 | fn complex(source: &str) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Tester` is never used [INFO] [stderr] --> src/code.rs:105:10 [INFO] [stderr] | [INFO] [stderr] 105 | pub enum Tester { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `extra` is never read [INFO] [stderr] --> src/compiler.rs:249:5 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Compiler { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 249 | extra: bool, // pub global: &'a mut Environment, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `store_and_return` and `set_label` are never used [INFO] [stderr] --> src/compiler.rs:413:8 [INFO] [stderr] | [INFO] [stderr] 254 | impl<'a> Compiler { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 413 | fn store_and_return(&mut self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 559 | fn set_label(&mut self, label: String) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `declaration_scope` is never used [INFO] [stderr] --> src/compiler.rs:798:4 [INFO] [stderr] | [INFO] [stderr] 798 | fn declaration_scope( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `generic_for_statement` is never used [INFO] [stderr] --> src/compiler.rs:1359:4 [INFO] [stderr] | [INFO] [stderr] 1359 | fn generic_for_statement() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `final_resolve_goto` is never used [INFO] [stderr] --> src/compiler.rs:1479:4 [INFO] [stderr] | [INFO] [stderr] 1479 | fn final_resolve_goto(this: &mut Compiler) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `goto_scope_skip` is never used [INFO] [stderr] --> src/compiler.rs:1485:4 [INFO] [stderr] | [INFO] [stderr] 1485 | fn goto_scope_skip(this: &mut Compiler) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `next_expression` is never used [INFO] [stderr] --> src/compiler.rs:1507:4 [INFO] [stderr] | [INFO] [stderr] 1507 | fn next_expression(this: &mut Compiler) -> Catch { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `print_local_stack` and `take` are never used [INFO] [stderr] --> src/function.rs:68:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl<'frame> CallFrame { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 68 | pub fn print_local_stack(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn take(&mut self) -> &Value { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/function.rs:177:5 [INFO] [stderr] | [INFO] [stderr] 176 | pub struct NativeObject { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 177 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Typer` is never constructed [INFO] [stderr] --> src/lexer.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 6 | enum Mode { [INFO] [stderr] | ---- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 9 | Typer, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `eat_eat_send` is never used [INFO] [stderr] --> src/lexer.rs:129:8 [INFO] [stderr] | [INFO] [stderr] 58 | impl<'a> Lexer { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 129 | fn eat_eat_send(&mut self, token: Token) -> TokenOption { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/lua.rs:231:8 [INFO] [stderr] | [INFO] [stderr] 195 | impl<'a> Lua { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 231 | fn reserve(&mut self) -> *mut Value { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 244 | fn print_upvalues(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 331 | fn read_top(&self) -> Value { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 360 | fn grab_mut(&mut self, n: usize) -> &mut Value { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 952 | fn call(&self, function: &Rc, param_count: u8) -> CallFrame { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 1017 | fn close_upvalue(&mut self, value: Value) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1175 | fn print_raw_stack(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ExampleUserData` is never constructed [INFO] [stderr] --> src/userdata.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | struct ExampleUserData { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: comparison is useless due to type limits [INFO] [stderr] --> src/lua.rs:688:28 [INFO] [stderr] | [INFO] [stderr] 688 | if f.upvalue_count >= 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/lib.rs:85:16 [INFO] [stderr] | [INFO] [stderr] 85 | code::{self, OpCode}, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `blank` [INFO] [stderr] --> src/lib.rs:229:13 [INFO] [stderr] | [INFO] [stderr] 229 | let blank = FunctionObject::new(None, false); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_blank` [INFO] [stderr] [INFO] [stderr] warning: variants `CONSTANT` and `RETURN` are never constructed [INFO] [stderr] --> src/code.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 105 | pub enum Tester { [INFO] [stderr] | ------ variants in this enum [INFO] [stderr] 106 | CONSTANT(u8), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 107 | RETURN, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `silt-lua` (lib) generated 59 warnings (run `cargo fix --lib -p silt-lua` to apply 4 suggestions) [INFO] [stderr] warning: `silt-lua` (lib test) generated 56 warnings (53 duplicates) (run `cargo fix --lib -p silt-lua --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/silt_lua-b14e27680000d385) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test tests::scope ... ok [INFO] [stdout] test tests::closures ... ok [INFO] [stdout] test tests::chunk_validity ... ok [INFO] [stdout] test tests::compliance ... ok [INFO] [stdout] test tests::test_32bits ... ok [INFO] [stdout] test tests::string_infererence ... ok [INFO] [stdout] test tests::closures2 ... ok [INFO] [stdout] test tests::speed ... ok [INFO] [stdout] test tests::fib ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.23s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/silt_lua_cli-173e43d98ce6d997) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests silt_lua [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1bcdc50d7dfb1cfc5da53fbcedc6daaa1aa1f718fea196d039a857bb04dbc185", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bcdc50d7dfb1cfc5da53fbcedc6daaa1aa1f718fea196d039a857bb04dbc185", kill_on_drop: false }` [INFO] [stdout] 1bcdc50d7dfb1cfc5da53fbcedc6daaa1aa1f718fea196d039a857bb04dbc185