[INFO] cloning repository https://github.com/WasmSanitizer/WasmSanitizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WasmSanitizer/WasmSanitizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWasmSanitizer%2FWasmSanitizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWasmSanitizer%2FWasmSanitizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 251f82461e78ba4b6bff3602784bc098569ae44f [INFO] testing WasmSanitizer/WasmSanitizer against 1.90.0 for beta-1.91-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWasmSanitizer%2FWasmSanitizer" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/WasmSanitizer/WasmSanitizer [INFO] finished tweaking git repo https://github.com/WasmSanitizer/WasmSanitizer [INFO] tweaked toml for git repo https://github.com/WasmSanitizer/WasmSanitizer written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/WasmSanitizer/WasmSanitizer on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/WasmSanitizer/WasmSanitizer 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.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serial_test v3.0.0 [INFO] [stderr] Downloaded rand_distr v0.3.0 [INFO] [stderr] Downloaded serial_test_derive v3.0.0 [INFO] [stderr] Downloaded wasabi_leb128 v0.4.0 [INFO] [stderr] Downloaded syn v0.12.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5df018a0892c8b592f8a93866a75d056d8f5e383ddf51855b8bdb180a0d972f9 [INFO] running `Command { std: "docker" "start" "-a" "5df018a0892c8b592f8a93866a75d056d8f5e383ddf51855b8bdb180a0d972f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5df018a0892c8b592f8a93866a75d056d8f5e383ddf51855b8bdb180a0d972f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5df018a0892c8b592f8a93866a75d056d8f5e383ddf51855b8bdb180a0d972f9", kill_on_drop: false }` [INFO] [stdout] 5df018a0892c8b592f8a93866a75d056d8f5e383ddf51855b8bdb180a0d972f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4e84614ac2faac83d885c3743f6ed460c2cd40f49eb8f06d9d8dafbc6398c40 [INFO] running `Command { std: "docker" "start" "-a" "a4e84614ac2faac83d885c3743f6ed460c2cd40f49eb8f06d9d8dafbc6398c40", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Compiling syn v0.12.15 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling wasabi_leb128 v0.4.0 [INFO] [stderr] Compiling rand_distr v0.3.0 [INFO] [stderr] Compiling binary_derive v0.2.0 (/opt/rustwide/workdir/lib/wasm/binary_derive) [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> lib/wasm/binary_derive/src/lib.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | / quote!({ [INFO] [stdout] 38 | | #( #check_tag )* [INFO] [stdout] 39 | | #decode_fields [INFO] [stdout] 40 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> lib/wasm/binary_derive/src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | quote!( #( #field_name: )* #field_ty::decode(reader, state)? ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> lib/wasm/binary_derive/src/lib.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | let body = quote!({ [INFO] [stdout] | ________________^ [INFO] [stdout] 154 | | #( bytes_written += #tag.encode(writer)?; )* [INFO] [stdout] 155 | | #( bytes_written += #field_names.encode(writer)? );* [INFO] [stdout] 156 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling wasm v0.5.0 (/opt/rustwide/workdir/lib/wasm) [INFO] [stdout] warning: unused variable: `new_func_idx` [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:892:13 [INFO] [stdout] | [INFO] [stdout] 892 | let new_func_idx: Idx = self.add_function(type_, locals, body); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_func_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1044:27 [INFO] [stdout] | [INFO] [stdout] 1044 | pub fn param_or_local(&self, idx: Idx) -> ParamOrLocalRef { [INFO] [stdout] | ^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1044 | pub fn param_or_local(&self, idx: Idx) -> ParamOrLocalRef<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1051:31 [INFO] [stdout] | [INFO] [stdout] 1051 | pub fn param_or_local_mut(&mut self, idx: Idx) -> ParamOrLocalMut { [INFO] [stdout] | ^^^^^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1051 | pub fn param_or_local_mut(&mut self, idx: Idx) -> ParamOrLocalMut<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1058:28 [INFO] [stdout] | [INFO] [stdout] 1058 | pub fn param_or_locals(&self) -> impl Iterator, ParamOrLocalRef)> { [INFO] [stdout] | ^^^^^ the lifetime is elided here --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1058 | pub fn param_or_locals(&self) -> impl Iterator, ParamOrLocalRef<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1064:32 [INFO] [stdout] | [INFO] [stdout] 1064 | pub fn param_or_locals_mut(&mut self) -> impl Iterator, ParamOrLocalMut)> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1064 | pub fn param_or_locals_mut(&mut self) -> impl Iterator, ParamOrLocalMut<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1093:19 [INFO] [stdout] | [INFO] [stdout] 1093 | pub fn params(&self) -> impl Iterator, ParamRef)> { [INFO] [stdout] | ^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1093 | pub fn params(&self) -> impl Iterator, ParamRef<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1104:23 [INFO] [stdout] | [INFO] [stdout] 1104 | pub fn params_mut(&mut self) -> impl Iterator, ParamMut)> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1104 | pub fn params_mut(&mut self) -> impl Iterator, ParamMut<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm_instrumenter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blue`, `Cyan`, and `Purple` [INFO] [stdout] --> src/test.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | if (import_module == module_name && import_name == func_name) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if (import_module == module_name && import_name == func_name) { [INFO] [stdout] 106 + if import_module == module_name && import_name == func_name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:142:24 [INFO] [stdout] | [INFO] [stdout] 142 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 142 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:217:24 [INFO] [stdout] | [INFO] [stdout] 217 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 217 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:281:24 [INFO] [stdout] | [INFO] [stdout] 281 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 281 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 281 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:348:24 [INFO] [stdout] | [INFO] [stdout] 348 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 348 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 348 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/test.rs:397:30 [INFO] [stdout] | [INFO] [stdout] 397 | match(&code.body[i]){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 397 - match(&code.body[i]){ [INFO] [stdout] 397 + match &code.body[i]{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:446:24 [INFO] [stdout] | [INFO] [stdout] 446 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 446 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 446 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:485:24 [INFO] [stdout] | [INFO] [stdout] 485 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 485 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 485 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:695:24 [INFO] [stdout] | [INFO] [stdout] 695 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 695 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 695 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:801:24 [INFO] [stdout] | [INFO] [stdout] 801 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 801 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 801 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:938:20 [INFO] [stdout] | [INFO] [stdout] 938 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 938 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1367:24 [INFO] [stdout] | [INFO] [stdout] 1367 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1367 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1367 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1436:24 [INFO] [stdout] | [INFO] [stdout] 1436 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1436 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1436 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1807:24 [INFO] [stdout] | [INFO] [stdout] 1807 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1807 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1807 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | proc_exit_idx = idx; [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: `rest` [INFO] [stdout] --> src/test.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/test.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let func_name = &func.name.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:169:56 [INFO] [stdout] | [INFO] [stdout] 169 | ... Instr::Local(LocalOp::Get, idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 225 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:282:25 [INFO] [stdout] | [INFO] [stdout] 282 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:290:29 [INFO] [stdout] | [INFO] [stdout] 290 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:447:25 [INFO] [stdout] | [INFO] [stdout] 447 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:486:25 [INFO] [stdout] | [INFO] [stdout] 486 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_param_count` [INFO] [stdout] --> src/test.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let func_param_count = func.param_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:689:13 [INFO] [stdout] | [INFO] [stdout] 689 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:696:25 [INFO] [stdout] | [INFO] [stdout] 696 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:705:29 [INFO] [stdout] | [INFO] [stdout] 705 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:795:13 [INFO] [stdout] | [INFO] [stdout] 795 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:802:25 [INFO] [stdout] | [INFO] [stdout] 802 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:814:29 [INFO] [stdout] | [INFO] [stdout] 814 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_param_count` [INFO] [stdout] --> src/test.rs:820:21 [INFO] [stdout] | [INFO] [stdout] 820 | let func_param_count = func.param_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx1` [INFO] [stdout] --> src/test.rs:861:56 [INFO] [stdout] | [INFO] [stdout] 861 | ... (Instr::Local(LocalOp::Get,idx1), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:862:55 [INFO] [stdout] | [INFO] [stdout] 862 | ... Instr::Local(LocalOp::Get,idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i64_add_flag` is assigned to, but never used [INFO] [stdout] --> src/test.rs:929:13 [INFO] [stdout] | [INFO] [stdout] 929 | let mut i64_add_flag = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i64_add_flag` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:939:21 [INFO] [stdout] | [INFO] [stdout] 939 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/test.rs:968:10 [INFO] [stdout] | [INFO] [stdout] 968 | for (idx, func) in module.functions_mut() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_len` [INFO] [stdout] --> src/test.rs:973:13 [INFO] [stdout] | [INFO] [stdout] 973 | let result_len = func.type_.results.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:976:25 [INFO] [stdout] | [INFO] [stdout] 976 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:979:25 [INFO] [stdout] | [INFO] [stdout] 979 | if let Some(rest) = cur_func_name.strip_prefix("std::"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i64_add_flag` is never read [INFO] [stdout] --> src/test.rs:1021:33 [INFO] [stdout] | [INFO] [stdout] 1021 | ... i64_add_flag = true; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx1` [INFO] [stdout] --> src/test.rs:1137:51 [INFO] [stdout] | [INFO] [stdout] 1137 | Instr::Local(LocalOp::Get,idx1), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:1138:51 [INFO] [stdout] | [INFO] [stdout] 1138 | Instr::Local(LocalOp::Get,idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx3` [INFO] [stdout] --> src/test.rs:1140:51 [INFO] [stdout] | [INFO] [stdout] 1140 | Instr::Local(LocalOp::Set,idx3)) => { // char mul [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1361:13 [INFO] [stdout] | [INFO] [stdout] 1361 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1368:25 [INFO] [stdout] | [INFO] [stdout] 1368 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:1376:29 [INFO] [stdout] | [INFO] [stdout] 1376 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1430:13 [INFO] [stdout] | [INFO] [stdout] 1430 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1437:25 [INFO] [stdout] | [INFO] [stdout] 1437 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1801:13 [INFO] [stdout] | [INFO] [stdout] 1801 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1808:25 [INFO] [stdout] | [INFO] [stdout] 1808 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blue`, `Cyan`, `Green`, `Purple`, `Red`, and `Yellow` [INFO] [stdout] --> src/bin/test.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_error` [INFO] [stdout] --> src/bin/test.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | macro_rules! log_error { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.71s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.12.15 [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" "a4e84614ac2faac83d885c3743f6ed460c2cd40f49eb8f06d9d8dafbc6398c40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4e84614ac2faac83d885c3743f6ed460c2cd40f49eb8f06d9d8dafbc6398c40", kill_on_drop: false }` [INFO] [stdout] a4e84614ac2faac83d885c3743f6ed460c2cd40f49eb8f06d9d8dafbc6398c40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75d49d1cd4d0c20e1cfaf2b33125200319f373772364d8a29b35df2b774496f1 [INFO] running `Command { std: "docker" "start" "-a" "75d49d1cd4d0c20e1cfaf2b33125200319f373772364d8a29b35df2b774496f1", kill_on_drop: false }` [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> lib/wasm/binary_derive/src/lib.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | / quote!({ [INFO] [stdout] 38 | | #( #check_tag )* [INFO] [stdout] 39 | | #decode_fields [INFO] [stdout] 40 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> lib/wasm/binary_derive/src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | quote!( #( #field_name: )* #field_ty::decode(reader, state)? ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> lib/wasm/binary_derive/src/lib.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | let body = quote!({ [INFO] [stdout] | ________________^ [INFO] [stdout] 154 | | #( bytes_written += #tag.encode(writer)?; )* [INFO] [stdout] 155 | | #( bytes_written += #field_names.encode(writer)? );* [INFO] [stdout] 156 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 ~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stdout] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serial_test_derive v3.0.0 [INFO] [stdout] warning: unused variable: `new_func_idx` [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:892:13 [INFO] [stdout] | [INFO] [stdout] 892 | let new_func_idx: Idx = self.add_function(type_, locals, body); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_func_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1044:27 [INFO] [stdout] | [INFO] [stdout] 1044 | pub fn param_or_local(&self, idx: Idx) -> ParamOrLocalRef { [INFO] [stdout] | ^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1044 | pub fn param_or_local(&self, idx: Idx) -> ParamOrLocalRef<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1051:31 [INFO] [stdout] | [INFO] [stdout] 1051 | pub fn param_or_local_mut(&mut self, idx: Idx) -> ParamOrLocalMut { [INFO] [stdout] | ^^^^^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1051 | pub fn param_or_local_mut(&mut self, idx: Idx) -> ParamOrLocalMut<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1058:28 [INFO] [stdout] | [INFO] [stdout] 1058 | pub fn param_or_locals(&self) -> impl Iterator, ParamOrLocalRef)> { [INFO] [stdout] | ^^^^^ the lifetime is elided here --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1058 | pub fn param_or_locals(&self) -> impl Iterator, ParamOrLocalRef<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1064:32 [INFO] [stdout] | [INFO] [stdout] 1064 | pub fn param_or_locals_mut(&mut self) -> impl Iterator, ParamOrLocalMut)> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here --------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1064 | pub fn param_or_locals_mut(&mut self) -> impl Iterator, ParamOrLocalMut<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1093:19 [INFO] [stdout] | [INFO] [stdout] 1093 | pub fn params(&self) -> impl Iterator, ParamRef)> { [INFO] [stdout] | ^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1093 | pub fn params(&self) -> impl Iterator, ParamRef<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lib/wasm/src/ast/highlevel.rs:1104:23 [INFO] [stdout] | [INFO] [stdout] 1104 | pub fn params_mut(&mut self) -> impl Iterator, ParamMut)> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1104 | pub fn params_mut(&mut self) -> impl Iterator, ParamMut<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blue`, `Cyan`, and `Purple` [INFO] [stdout] --> src/test.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod test; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | if (import_module == module_name && import_name == func_name) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if (import_module == module_name && import_name == func_name) { [INFO] [stdout] 106 + if import_module == module_name && import_name == func_name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:142:24 [INFO] [stdout] | [INFO] [stdout] 142 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 142 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:217:24 [INFO] [stdout] | [INFO] [stdout] 217 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 217 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:281:24 [INFO] [stdout] | [INFO] [stdout] 281 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 281 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 281 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:348:24 [INFO] [stdout] | [INFO] [stdout] 348 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 348 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 348 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/test.rs:397:30 [INFO] [stdout] | [INFO] [stdout] 397 | match(&code.body[i]){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 397 - match(&code.body[i]){ [INFO] [stdout] 397 + match &code.body[i]{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:446:24 [INFO] [stdout] | [INFO] [stdout] 446 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 446 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 446 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:485:24 [INFO] [stdout] | [INFO] [stdout] 485 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 485 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 485 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:695:24 [INFO] [stdout] | [INFO] [stdout] 695 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 695 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 695 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:801:24 [INFO] [stdout] | [INFO] [stdout] 801 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 801 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 801 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:938:20 [INFO] [stdout] | [INFO] [stdout] 938 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 938 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1367:24 [INFO] [stdout] | [INFO] [stdout] 1367 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1367 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1367 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1436:24 [INFO] [stdout] | [INFO] [stdout] 1436 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1436 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1436 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1807:24 [INFO] [stdout] | [INFO] [stdout] 1807 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1807 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1807 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | proc_exit_idx = idx; [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: `rest` [INFO] [stdout] --> src/test.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/test.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let func_name = &func.name.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:169:56 [INFO] [stdout] | [INFO] [stdout] 169 | ... Instr::Local(LocalOp::Get, idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 225 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:282:25 [INFO] [stdout] | [INFO] [stdout] 282 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:290:29 [INFO] [stdout] | [INFO] [stdout] 290 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:447:25 [INFO] [stdout] | [INFO] [stdout] 447 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:486:25 [INFO] [stdout] | [INFO] [stdout] 486 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_param_count` [INFO] [stdout] --> src/test.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let func_param_count = func.param_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:689:13 [INFO] [stdout] | [INFO] [stdout] 689 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:696:25 [INFO] [stdout] | [INFO] [stdout] 696 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:705:29 [INFO] [stdout] | [INFO] [stdout] 705 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:795:13 [INFO] [stdout] | [INFO] [stdout] 795 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:802:25 [INFO] [stdout] | [INFO] [stdout] 802 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:814:29 [INFO] [stdout] | [INFO] [stdout] 814 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_param_count` [INFO] [stdout] --> src/test.rs:820:21 [INFO] [stdout] | [INFO] [stdout] 820 | let func_param_count = func.param_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx1` [INFO] [stdout] --> src/test.rs:861:56 [INFO] [stdout] | [INFO] [stdout] 861 | ... (Instr::Local(LocalOp::Get,idx1), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:862:55 [INFO] [stdout] | [INFO] [stdout] 862 | ... Instr::Local(LocalOp::Get,idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i64_add_flag` is assigned to, but never used [INFO] [stdout] --> src/test.rs:929:13 [INFO] [stdout] | [INFO] [stdout] 929 | let mut i64_add_flag = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i64_add_flag` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:939:21 [INFO] [stdout] | [INFO] [stdout] 939 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/test.rs:968:10 [INFO] [stdout] | [INFO] [stdout] 968 | for (idx, func) in module.functions_mut() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_len` [INFO] [stdout] --> src/test.rs:973:13 [INFO] [stdout] | [INFO] [stdout] 973 | let result_len = func.type_.results.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:976:25 [INFO] [stdout] | [INFO] [stdout] 976 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:979:25 [INFO] [stdout] | [INFO] [stdout] 979 | if let Some(rest) = cur_func_name.strip_prefix("std::"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i64_add_flag` is never read [INFO] [stdout] --> src/test.rs:1021:33 [INFO] [stdout] | [INFO] [stdout] 1021 | ... i64_add_flag = true; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx1` [INFO] [stdout] --> src/test.rs:1137:51 [INFO] [stdout] | [INFO] [stdout] 1137 | Instr::Local(LocalOp::Get,idx1), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:1138:51 [INFO] [stdout] | [INFO] [stdout] 1138 | Instr::Local(LocalOp::Get,idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx3` [INFO] [stdout] --> src/test.rs:1140:51 [INFO] [stdout] | [INFO] [stdout] 1140 | Instr::Local(LocalOp::Set,idx3)) => { // char mul [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1361:13 [INFO] [stdout] | [INFO] [stdout] 1361 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1368:25 [INFO] [stdout] | [INFO] [stdout] 1368 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:1376:29 [INFO] [stdout] | [INFO] [stdout] 1376 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1430:13 [INFO] [stdout] | [INFO] [stdout] 1430 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1437:25 [INFO] [stdout] | [INFO] [stdout] 1437 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1801:13 [INFO] [stdout] | [INFO] [stdout] 1801 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1808:25 [INFO] [stdout] | [INFO] [stdout] 1808 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling serial_test v3.0.0 [INFO] [stderr] Compiling wasm_instrumenter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Blue`, `Cyan`, `Green`, `Purple`, `Red`, and `Yellow` [INFO] [stdout] --> src/bin/test.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_error` [INFO] [stdout] --> src/bin/test.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | macro_rules! log_error { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Blue`, `Cyan`, and `Purple` [INFO] [stdout] --> src/test.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | if (import_module == module_name && import_name == func_name) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if (import_module == module_name && import_name == func_name) { [INFO] [stdout] 106 + if import_module == module_name && import_name == func_name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:142:24 [INFO] [stdout] | [INFO] [stdout] 142 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 142 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:217:24 [INFO] [stdout] | [INFO] [stdout] 217 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 217 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:281:24 [INFO] [stdout] | [INFO] [stdout] 281 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 281 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 281 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:348:24 [INFO] [stdout] | [INFO] [stdout] 348 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 348 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 348 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/test.rs:397:30 [INFO] [stdout] | [INFO] [stdout] 397 | match(&code.body[i]){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 397 - match(&code.body[i]){ [INFO] [stdout] 397 + match &code.body[i]{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:446:24 [INFO] [stdout] | [INFO] [stdout] 446 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 446 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 446 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:485:24 [INFO] [stdout] | [INFO] [stdout] 485 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 485 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 485 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:695:24 [INFO] [stdout] | [INFO] [stdout] 695 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 695 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 695 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:801:24 [INFO] [stdout] | [INFO] [stdout] 801 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 801 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 801 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:938:20 [INFO] [stdout] | [INFO] [stdout] 938 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 938 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 938 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1367:24 [INFO] [stdout] | [INFO] [stdout] 1367 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1367 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1367 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1436:24 [INFO] [stdout] | [INFO] [stdout] 1436 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1436 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1436 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/test.rs:1807:24 [INFO] [stdout] | [INFO] [stdout] 1807 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1807 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stdout] 1807 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | proc_exit_idx = idx; [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: `rest` [INFO] [stdout] --> src/test.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_name` [INFO] [stdout] --> src/test.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let func_name = &func.name.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:169:56 [INFO] [stdout] | [INFO] [stdout] 169 | ... Instr::Local(LocalOp::Get, idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 225 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:282:25 [INFO] [stdout] | [INFO] [stdout] 282 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:290:29 [INFO] [stdout] | [INFO] [stdout] 290 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:447:25 [INFO] [stdout] | [INFO] [stdout] 447 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:486:25 [INFO] [stdout] | [INFO] [stdout] 486 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_param_count` [INFO] [stdout] --> src/test.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let func_param_count = func.param_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:689:13 [INFO] [stdout] | [INFO] [stdout] 689 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:696:25 [INFO] [stdout] | [INFO] [stdout] 696 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:705:29 [INFO] [stdout] | [INFO] [stdout] 705 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:795:13 [INFO] [stdout] | [INFO] [stdout] 795 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:802:25 [INFO] [stdout] | [INFO] [stdout] 802 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:814:29 [INFO] [stdout] | [INFO] [stdout] 814 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_param_count` [INFO] [stdout] --> src/test.rs:820:21 [INFO] [stdout] | [INFO] [stdout] 820 | let func_param_count = func.param_count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx1` [INFO] [stdout] --> src/test.rs:861:56 [INFO] [stdout] | [INFO] [stdout] 861 | ... (Instr::Local(LocalOp::Get,idx1), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:862:55 [INFO] [stdout] | [INFO] [stdout] 862 | ... Instr::Local(LocalOp::Get,idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i64_add_flag` is assigned to, but never used [INFO] [stdout] --> src/test.rs:929:13 [INFO] [stdout] | [INFO] [stdout] 929 | let mut i64_add_flag = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i64_add_flag` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:932:13 [INFO] [stdout] | [INFO] [stdout] 932 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:939:21 [INFO] [stdout] | [INFO] [stdout] 939 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/test.rs:968:10 [INFO] [stdout] | [INFO] [stdout] 968 | for (idx, func) in module.functions_mut() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_len` [INFO] [stdout] --> src/test.rs:973:13 [INFO] [stdout] | [INFO] [stdout] 973 | let result_len = func.type_.results.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:976:25 [INFO] [stdout] | [INFO] [stdout] 976 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:979:25 [INFO] [stdout] | [INFO] [stdout] 979 | if let Some(rest) = cur_func_name.strip_prefix("std::"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i64_add_flag` is never read [INFO] [stdout] --> src/test.rs:1021:33 [INFO] [stdout] | [INFO] [stdout] 1021 | ... i64_add_flag = true; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx1` [INFO] [stdout] --> src/test.rs:1137:51 [INFO] [stdout] | [INFO] [stdout] 1137 | Instr::Local(LocalOp::Get,idx1), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx2` [INFO] [stdout] --> src/test.rs:1138:51 [INFO] [stdout] | [INFO] [stdout] 1138 | Instr::Local(LocalOp::Get,idx2), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx3` [INFO] [stdout] --> src/test.rs:1140:51 [INFO] [stdout] | [INFO] [stdout] 1140 | Instr::Local(LocalOp::Set,idx3)) => { // char mul [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1361:13 [INFO] [stdout] | [INFO] [stdout] 1361 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1368:25 [INFO] [stdout] | [INFO] [stdout] 1368 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest` [INFO] [stdout] --> src/test.rs:1376:29 [INFO] [stdout] | [INFO] [stdout] 1376 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1430:13 [INFO] [stdout] | [INFO] [stdout] 1430 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1437:25 [INFO] [stdout] | [INFO] [stdout] 1437 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stdout] --> src/test.rs:1801:13 [INFO] [stdout] | [INFO] [stdout] 1801 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_proc_exit_idx` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `proc_exit_idx` is never read [INFO] [stdout] --> src/test.rs:1808:25 [INFO] [stdout] | [INFO] [stdout] 1808 | proc_exit_idx = idx; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.91s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.12.15 [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" "75d49d1cd4d0c20e1cfaf2b33125200319f373772364d8a29b35df2b774496f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75d49d1cd4d0c20e1cfaf2b33125200319f373772364d8a29b35df2b774496f1", kill_on_drop: false }` [INFO] [stdout] 75d49d1cd4d0c20e1cfaf2b33125200319f373772364d8a29b35df2b774496f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 892a8e7f5c59ca07b013be87a8323283befa9df23730e2c28f613070cf597c95 [INFO] running `Command { std: "docker" "start" "-a" "892a8e7f5c59ca07b013be87a8323283befa9df23730e2c28f613070cf597c95", kill_on_drop: false }` [INFO] [stderr] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> lib/wasm/binary_derive/src/lib.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | / quote!({ [INFO] [stderr] 38 | | #( #check_tag )* [INFO] [stderr] 39 | | #decode_fields [INFO] [stderr] 40 | | }) [INFO] [stderr] | |______________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stderr] | [INFO] [stderr] 379~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stderr] 380~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stderr] | [INFO] [stderr] 379~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stderr] 380~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> lib/wasm/binary_derive/src/lib.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | quote!( #( #field_name: )* #field_ty::decode(reader, state)? ) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stderr] | [INFO] [stderr] 379 ~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stderr] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stderr] | [INFO] [stderr] 379 ~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stderr] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> lib/wasm/binary_derive/src/lib.rs:153:16 [INFO] [stderr] | [INFO] [stderr] 153 | let body = quote!({ [INFO] [stderr] | ________________^ [INFO] [stderr] 154 | | #( bytes_written += #tag.encode(writer)?; )* [INFO] [stderr] 155 | | #( bytes_written += #field_names.encode(writer)? );* [INFO] [stderr] 156 | | }); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stderr] | [INFO] [stderr] 379 ~ nested_tuples_pat!((while let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stderr] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/quote-0.4.2/src/lib.rs:379:29 [INFO] [stderr] | [INFO] [stderr] 379 ~ nested_tuples_pat!((if let Some(for pounded_var_names!(nested_tuples_pat () $($inner)*) [INFO] [stderr] 380 ~ nested_tuples_pat!(() = ) $($rest)*) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `binary_derive` (lib) generated 3 warnings [INFO] [stderr] warning: unused variable: `new_func_idx` [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:892:13 [INFO] [stderr] | [INFO] [stderr] 892 | let new_func_idx: Idx = self.add_function(type_, locals, body); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_func_idx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:1044:27 [INFO] [stderr] | [INFO] [stderr] 1044 | pub fn param_or_local(&self, idx: Idx) -> ParamOrLocalRef { [INFO] [stderr] | ^^^^^ --------------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1044 | pub fn param_or_local(&self, idx: Idx) -> ParamOrLocalRef<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:1051:31 [INFO] [stderr] | [INFO] [stderr] 1051 | pub fn param_or_local_mut(&mut self, idx: Idx) -> ParamOrLocalMut { [INFO] [stderr] | ^^^^^^^^^ --------------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1051 | pub fn param_or_local_mut(&mut self, idx: Idx) -> ParamOrLocalMut<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:1058:28 [INFO] [stderr] | [INFO] [stderr] 1058 | pub fn param_or_locals(&self) -> impl Iterator, ParamOrLocalRef)> { [INFO] [stderr] | ^^^^^ the lifetime is elided here --------------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1058 | pub fn param_or_locals(&self) -> impl Iterator, ParamOrLocalRef<'_>)> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:1064:32 [INFO] [stderr] | [INFO] [stderr] 1064 | pub fn param_or_locals_mut(&mut self) -> impl Iterator, ParamOrLocalMut)> { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here --------------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1064 | pub fn param_or_locals_mut(&mut self) -> impl Iterator, ParamOrLocalMut<'_>)> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:1093:19 [INFO] [stderr] | [INFO] [stderr] 1093 | pub fn params(&self) -> impl Iterator, ParamRef)> { [INFO] [stderr] | ^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1093 | pub fn params(&self) -> impl Iterator, ParamRef<'_>)> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> lib/wasm/src/ast/highlevel.rs:1104:23 [INFO] [stderr] | [INFO] [stderr] 1104 | pub fn params_mut(&mut self) -> impl Iterator, ParamMut)> { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 1104 | pub fn params_mut(&mut self) -> impl Iterator, ParamMut<'_>)> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `wasm` (lib) generated 7 warnings [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/test.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/lib.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | pub mod test; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ffi::OsStr` [INFO] [stderr] --> src/test.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::ffi::OsStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/lib.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | pub mod test; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Blue`, `Cyan`, and `Purple` [INFO] [stderr] --> src/test.rs:11:45 [INFO] [stderr] | [INFO] [stderr] 11 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stderr] | ^^^^ ^^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/lib.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | pub mod test; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:106:24 [INFO] [stderr] | [INFO] [stderr] 106 | if (import_module == module_name && import_name == func_name) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 106 - if (import_module == module_name && import_name == func_name) { [INFO] [stderr] 106 + if import_module == module_name && import_name == func_name { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:142:24 [INFO] [stderr] | [INFO] [stderr] 142 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 142 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 142 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:217:24 [INFO] [stderr] | [INFO] [stderr] 217 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 217 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 217 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:281:24 [INFO] [stderr] | [INFO] [stderr] 281 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 281 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 281 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:348:24 [INFO] [stderr] | [INFO] [stderr] 348 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 348 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 348 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/test.rs:397:30 [INFO] [stderr] | [INFO] [stderr] 397 | match(&code.body[i]){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 397 - match(&code.body[i]){ [INFO] [stderr] 397 + match &code.body[i]{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:446:24 [INFO] [stderr] | [INFO] [stderr] 446 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 446 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 446 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:485:24 [INFO] [stderr] | [INFO] [stderr] 485 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 485 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 485 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:695:24 [INFO] [stderr] | [INFO] [stderr] 695 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 695 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 695 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:801:24 [INFO] [stderr] | [INFO] [stderr] 801 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 801 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 801 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:938:20 [INFO] [stderr] | [INFO] [stderr] 938 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 938 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 938 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:1367:24 [INFO] [stderr] | [INFO] [stderr] 1367 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1367 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 1367 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:1436:24 [INFO] [stderr] | [INFO] [stderr] 1436 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1436 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 1436 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:1807:24 [INFO] [stderr] | [INFO] [stderr] 1807 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1807 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 1807 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:136:13 [INFO] [stderr] | [INFO] [stderr] 136 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:143:25 [INFO] [stderr] | [INFO] [stderr] 143 | proc_exit_idx = idx; [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: `rest` [INFO] [stderr] --> src/test.rs:150:29 [INFO] [stderr] | [INFO] [stderr] 150 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func_name` [INFO] [stderr] --> src/test.rs:156:21 [INFO] [stderr] | [INFO] [stderr] 156 | let func_name = &func.name.clone().unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx2` [INFO] [stderr] --> src/test.rs:169:56 [INFO] [stderr] | [INFO] [stderr] 169 | ... Instr::Local(LocalOp::Get, idx2), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:211:13 [INFO] [stderr] | [INFO] [stderr] 211 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:218:25 [INFO] [stderr] | [INFO] [stderr] 218 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:225:29 [INFO] [stderr] | [INFO] [stderr] 225 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:275:13 [INFO] [stderr] | [INFO] [stderr] 275 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:282:25 [INFO] [stderr] | [INFO] [stderr] 282 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:290:29 [INFO] [stderr] | [INFO] [stderr] 290 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:342:13 [INFO] [stderr] | [INFO] [stderr] 342 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:349:25 [INFO] [stderr] | [INFO] [stderr] 349 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:357:29 [INFO] [stderr] | [INFO] [stderr] 357 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:440:13 [INFO] [stderr] | [INFO] [stderr] 440 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:447:25 [INFO] [stderr] | [INFO] [stderr] 447 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:479:13 [INFO] [stderr] | [INFO] [stderr] 479 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:486:25 [INFO] [stderr] | [INFO] [stderr] 486 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func_param_count` [INFO] [stderr] --> src/test.rs:495:17 [INFO] [stderr] | [INFO] [stderr] 495 | let func_param_count = func.param_count(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:689:13 [INFO] [stderr] | [INFO] [stderr] 689 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:696:25 [INFO] [stderr] | [INFO] [stderr] 696 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:705:29 [INFO] [stderr] | [INFO] [stderr] 705 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:795:13 [INFO] [stderr] | [INFO] [stderr] 795 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:802:25 [INFO] [stderr] | [INFO] [stderr] 802 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:814:29 [INFO] [stderr] | [INFO] [stderr] 814 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `func_param_count` [INFO] [stderr] --> src/test.rs:820:21 [INFO] [stderr] | [INFO] [stderr] 820 | let func_param_count = func.param_count(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_param_count` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx1` [INFO] [stderr] --> src/test.rs:861:56 [INFO] [stderr] | [INFO] [stderr] 861 | ... (Instr::Local(LocalOp::Get,idx1), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx2` [INFO] [stderr] --> src/test.rs:862:55 [INFO] [stderr] | [INFO] [stderr] 862 | ... Instr::Local(LocalOp::Get,idx2), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stderr] [INFO] [stderr] warning: variable `i64_add_flag` is assigned to, but never used [INFO] [stderr] --> src/test.rs:929:13 [INFO] [stderr] | [INFO] [stderr] 929 | let mut i64_add_flag = false; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_i64_add_flag` instead [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:932:13 [INFO] [stderr] | [INFO] [stderr] 932 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:939:21 [INFO] [stderr] | [INFO] [stderr] 939 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx` [INFO] [stderr] --> src/test.rs:968:10 [INFO] [stderr] | [INFO] [stderr] 968 | for (idx, func) in module.functions_mut() { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result_len` [INFO] [stderr] --> src/test.rs:973:13 [INFO] [stderr] | [INFO] [stderr] 973 | let result_len = func.type_.results.len(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:976:25 [INFO] [stderr] | [INFO] [stderr] 976 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:979:25 [INFO] [stderr] | [INFO] [stderr] 979 | if let Some(rest) = cur_func_name.strip_prefix("std::"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `i64_add_flag` is never read [INFO] [stderr] --> src/test.rs:1021:33 [INFO] [stderr] | [INFO] [stderr] 1021 | ... i64_add_flag = true; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx1` [INFO] [stderr] --> src/test.rs:1137:51 [INFO] [stderr] | [INFO] [stderr] 1137 | Instr::Local(LocalOp::Get,idx1), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx2` [INFO] [stderr] --> src/test.rs:1138:51 [INFO] [stderr] | [INFO] [stderr] 1138 | Instr::Local(LocalOp::Get,idx2), [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `idx3` [INFO] [stderr] --> src/test.rs:1140:51 [INFO] [stderr] | [INFO] [stderr] 1140 | Instr::Local(LocalOp::Set,idx3)) => { // char mul [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_idx3` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:1361:13 [INFO] [stderr] | [INFO] [stderr] 1361 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:1368:25 [INFO] [stderr] | [INFO] [stderr] 1368 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest` [INFO] [stderr] --> src/test.rs:1376:29 [INFO] [stderr] | [INFO] [stderr] 1376 | if let Some(rest) = cur_func_name.strip_prefix("__"){ [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rest` [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:1430:13 [INFO] [stderr] | [INFO] [stderr] 1430 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:1437:25 [INFO] [stderr] | [INFO] [stderr] 1437 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable `proc_exit_idx` is assigned to, but never used [INFO] [stderr] --> src/test.rs:1801:13 [INFO] [stderr] | [INFO] [stderr] 1801 | let mut proc_exit_idx: Idx = Idx::::from(0); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_proc_exit_idx` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `proc_exit_idx` is never read [INFO] [stderr] --> src/test.rs:1808:25 [INFO] [stderr] | [INFO] [stderr] 1808 | proc_exit_idx = idx; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/test.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ffi::OsStr` [INFO] [stderr] --> src/test.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::ffi::OsStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Blue`, `Cyan`, and `Purple` [INFO] [stderr] --> src/test.rs:11:45 [INFO] [stderr] | [INFO] [stderr] 11 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stderr] | ^^^^ ^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: `wasm_instrumenter` (lib) generated 63 warnings (run `cargo fix --lib -p wasm_instrumenter` to apply 17 suggestions) [INFO] [stderr] warning: `wasm_instrumenter` (lib test) generated 63 warnings (60 duplicates) (run `cargo fix --lib -p wasm_instrumenter --tests` to apply 3 suggestions) [INFO] [stderr] warning: unused imports: `Blue`, `Cyan`, `Green`, `Purple`, `Red`, and `Yellow` [INFO] [stderr] --> src/bin/test.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use ansi_term::Colour::{Red, Green, Yellow, Blue, Purple, Cyan}; [INFO] [stderr] | ^^^ ^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `log_error` [INFO] [stderr] --> src/bin/test.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | macro_rules! log_error { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `wasm_instrumenter` (bin "test" test) generated 2 warnings (run `cargo fix --bin "test" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.12.15 [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/wasm_instrumenter-d9080c04143a0ffc) [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] Running unittests src/bin/test.rs (/opt/rustwide/target/debug/deps/test-386a3733d0b8ff58) [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 wasm_instrumenter [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:106:24 [INFO] [stderr] | [INFO] [stderr] 106 | if (import_module == module_name && import_name == func_name) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 106 - if (import_module == module_name && import_name == func_name) { [INFO] [stderr] 106 + if import_module == module_name && import_name == func_name { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:142:24 [INFO] [stderr] | [INFO] [stderr] 142 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 142 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 142 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:217:24 [INFO] [stderr] | [INFO] [stderr] 217 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 217 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 217 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:281:24 [INFO] [stderr] | [INFO] [stderr] 281 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 281 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 281 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:348:24 [INFO] [stderr] | [INFO] [stderr] 348 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 348 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 348 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/test.rs:397:30 [INFO] [stderr] | [INFO] [stderr] 397 | match(&code.body[i]){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 397 - match(&code.body[i]){ [INFO] [stderr] 397 + match &code.body[i]{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:446:24 [INFO] [stderr] | [INFO] [stderr] 446 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 446 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 446 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:485:24 [INFO] [stderr] | [INFO] [stderr] 485 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 485 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 485 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:695:24 [INFO] [stderr] | [INFO] [stderr] 695 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 695 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 695 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:801:24 [INFO] [stderr] | [INFO] [stderr] 801 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 801 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 801 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:938:20 [INFO] [stderr] | [INFO] [stderr] 938 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 938 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 938 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:1367:24 [INFO] [stderr] | [INFO] [stderr] 1367 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1367 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 1367 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:1436:24 [INFO] [stderr] | [INFO] [stderr] 1436 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1436 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 1436 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/test.rs:1807:24 [INFO] [stderr] | [INFO] [stderr] 1807 | if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 1807 - if (import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string()) { [INFO] [stderr] 1807 + if import_module == "wasi_snapshot_preview1".to_string() && import_name == "proc_exit".to_string() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: 14 warnings emitted [INFO] [stdout] running 0 tests [INFO] [stderr] [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" "892a8e7f5c59ca07b013be87a8323283befa9df23730e2c28f613070cf597c95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "892a8e7f5c59ca07b013be87a8323283befa9df23730e2c28f613070cf597c95", kill_on_drop: false }` [INFO] [stdout] 892a8e7f5c59ca07b013be87a8323283befa9df23730e2c28f613070cf597c95