[INFO] cloning repository https://github.com/synerthink/dotlanth [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/synerthink/dotlanth" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynerthink%2Fdotlanth", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynerthink%2Fdotlanth'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac198100d4314a1d24c63734329ebdf62246e09d [INFO] checking synerthink/dotlanth against master#fc5af1813307d25a84d633f21e2e53c9376eb547 for pr-144386 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynerthink%2Fdotlanth" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/synerthink/dotlanth [INFO] finished tweaking git repo https://github.com/synerthink/dotlanth [INFO] tweaked toml for git repo https://github.com/synerthink/dotlanth written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/synerthink/dotlanth on toolchain fc5af1813307d25a84d633f21e2e53c9376eb547 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fc5af1813307d25a84d633f21e2e53c9376eb547" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/synerthink/dotlanth 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" "+fc5af1813307d25a84d633f21e2e53c9376eb547" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mockall v0.12.1 [INFO] [stderr] Downloaded wasm-encoder v0.39.0 [INFO] [stderr] Downloaded tonic-reflection v0.11.0 [INFO] [stderr] Downloaded mockall_derive v0.12.1 [INFO] [stderr] Downloaded sysinfo v0.34.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+fc5af1813307d25a84d633f21e2e53c9376eb547" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa7d79d354779e5d59dad859ac2b85b95531378667c7c95fd7024b3579eec716 [INFO] running `Command { std: "docker" "start" "-a" "fa7d79d354779e5d59dad859ac2b85b95531378667c7c95fd7024b3579eec716", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa7d79d354779e5d59dad859ac2b85b95531378667c7c95fd7024b3579eec716", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa7d79d354779e5d59dad859ac2b85b95531378667c7c95fd7024b3579eec716", kill_on_drop: false }` [INFO] [stdout] fa7d79d354779e5d59dad859ac2b85b95531378667c7c95fd7024b3579eec716 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+fc5af1813307d25a84d633f21e2e53c9376eb547" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0ac454c71f15f62dd62be55baccf89594b22aae75bfa021c7ff929069e35e60 [INFO] running `Command { std: "docker" "start" "-a" "f0ac454c71f15f62dd62be55baccf89594b22aae75bfa021c7ff929069e35e60", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling rustix v1.0.3 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking linux-raw-sys v0.9.3 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling virtue v0.0.18 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Compiling dotdb-core v0.1.0 (/opt/rustwide/workdir/crates/dotdb/core) [INFO] [stderr] Checking unty v0.0.4 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking fixedbitset v0.5.7 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking raw-cpuid v11.3.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking clap_builder v4.5.23 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking petgraph v0.7.1 [INFO] [stderr] Checking sysinfo v0.34.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking leb128 v0.2.5 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking wasmparser v0.121.2 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking wasm-encoder v0.39.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Compiling bincode_derive v2.0.1 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking oorandom v11.1.4 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling prettyplease v0.2.29 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Compiling cc v1.2.20 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking miniz_oxide v0.8.2 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking brotli v8.0.1 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Compiling test-case-core v3.3.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling metrics-macros v0.7.1 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Compiling test-case-macros v3.3.1 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking test-case v3.3.1 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking ratatui v0.24.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking metrics v0.21.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking proptest v1.6.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking pin-project v1.1.8 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking clap v4.5.23 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking async-compression v0.4.27 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking mockall v0.12.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tower-http v0.4.4 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Checking dotdb-common v0.1.0 (/opt/rustwide/workdir/crates/dotdb/common) [INFO] [stderr] Checking dotvm-common v0.1.0 (/opt/rustwide/workdir/crates/dotvm/common) [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stdout] warning: unused import: `FileType` [INFO] [stdout] --> crates/dotdb/core/src/compaction/strategy.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::fs::{FileMetadata, FileType}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / /// Interface to NUMA (Non-Uniform Memory Access) functions [INFO] [stdout] 33 | | /// Used for optimizing memory allocation on NUMA architectures [INFO] [stdout] | |_______________________________________________________________^ [INFO] [stdout] 34 | #[cfg(target_os = "linux")] [INFO] [stdout] 35 | / unsafe extern "C" { [INFO] [stdout] 36 | | /// Checks if NUMA is available on the system [INFO] [stdout] 37 | | fn numa_available() -> libc::c_int; [INFO] [stdout] 38 | | /// Gets the number of NUMA nodes on the system [INFO] [stdout] ... | [INFO] [stdout] 43 | | fn numa_free(ptr: *mut libc::c_void, size: libc::size_t); [INFO] [stdout] 44 | | } [INFO] [stdout] | |_- rustdoc does not generate documentation for extern blocks [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WalConfig` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | use crate::storage_engine::wal::{LogEntry, WalConfig, WriteAheadLog}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DbConfig` [INFO] [stdout] --> crates/dotdb/core/src/document/storage.rs:329:48 [INFO] [stdout] | [INFO] [stdout] 329 | use crate::state::db_interface::{Database, DbConfig}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / /// Interface to NUMA (Non-Uniform Memory Access) functions [INFO] [stdout] 33 | | /// Used for optimizing memory allocation on NUMA architectures [INFO] [stdout] | |_______________________________________________________________^ [INFO] [stdout] 34 | #[cfg(target_os = "linux")] [INFO] [stdout] 35 | / unsafe extern "C" { [INFO] [stdout] 36 | | /// Checks if NUMA is available on the system [INFO] [stdout] 37 | | fn numa_available() -> libc::c_int; [INFO] [stdout] 38 | | /// Gets the number of NUMA nodes on the system [INFO] [stdout] ... | [INFO] [stdout] 43 | | fn numa_free(ptr: *mut libc::c_void, size: libc::size_t); [INFO] [stdout] 44 | | } [INFO] [stdout] | |_- rustdoc does not generate documentation for extern blocks [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Barrier` [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:817:21 [INFO] [stdout] | [INFO] [stdout] 817 | use std::sync::{Arc, Barrier}; [INFO] [stdout] | ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:818:9 [INFO] [stdout] | [INFO] [stdout] 818 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/dotdb/core/src/memory/mmap.rs:743:9 [INFO] [stdout] | [INFO] [stdout] 743 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::mpt::trie::InMemoryStorage` [INFO] [stdout] --> crates/dotdb/core/src/state/diff.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | use crate::state::mpt::trie::InMemoryStorage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:930:9 [INFO] [stdout] | [INFO] [stdout] 930 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Page` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:933:58 [INFO] [stdout] | [INFO] [stdout] 933 | use crate::storage_engine::file_format::{FileFormat, Page, PageId, PageType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Flushable`, `StorageError`, `StorageResult`, `calculate_checksum`, and `generate_timestamp` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:934:38 [INFO] [stdout] | [INFO] [stdout] 934 | ..._engine::lib::{Flushable, Initializable, StorageError, StorageResult, VersionId, calculate_checksum, generate_timestamp}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PageHeader` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/isolation.rs:457:52 [INFO] [stdout] | [INFO] [stdout] 457 | use crate::storage_engine::file_format::{Page, PageHeader, PageType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PageHeader` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/mvcc.rs:540:46 [INFO] [stdout] | [INFO] [stdout] 540 | use crate::storage_engine::file_format::{PageHeader, PageType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileFormat` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:754:46 [INFO] [stdout] | [INFO] [stdout] 754 | use crate::storage_engine::file_format::{FileFormat, Page, PageHeader, PageId, PageType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Compiling dotvm-runtime v0.1.0 (/opt/rustwide/workdir/crates/dotvm/runtime) [INFO] [stderr] Checking dotlanth-cli v0.1.0 (/opt/rustwide/workdir/crates/dotlanth-cli) [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> crates/dotlanth-cli/src/tui/components/grpc_endpoints.rs:198:44 [INFO] [stdout] | [INFO] [stdout] 198 | fn render_endpoint_controls(f: &mut Frame, app: &App, area: Rect) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_to_file` is never used [INFO] [stdout] --> crates/dotlanth-cli/src/config.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl DotLanthConfig { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn save_to_file(&self, path: impl AsRef) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_deployment`, `store_metrics`, and `store_log` are never used [INFO] [stdout] --> crates/dotlanth-cli/src/database.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl DotLanthDatabase { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_deployment(&self, deployment_id: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn store_metrics(&self, metric: MetricEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn store_log(&self, log: LogEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grpc_server_sub_tab` and `grpc_endpoints_sub_tab` are never read [INFO] [stdout] --> crates/dotlanth-cli/src/tui/app.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 301 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 317 | pub grpc_server_sub_tab: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 318 | pub grpc_endpoints_sub_tab: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_enter`, `handle_escape`, `tick`, `get_refresh_rate`, and `get_tab_titles` are never used [INFO] [stdout] --> crates/dotlanth-cli/src/tui/app.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 324 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn handle_enter(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | pub fn handle_escape(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 656 | pub fn get_refresh_rate(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 660 | pub fn get_tab_titles(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> crates/dotlanth-cli/src/tui/components/grpc_endpoints.rs:198:44 [INFO] [stdout] | [INFO] [stdout] 198 | fn render_endpoint_controls(f: &mut Frame, app: &App, area: Rect) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_to_file` is never used [INFO] [stdout] --> crates/dotlanth-cli/src/config.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl DotLanthConfig { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn save_to_file(&self, path: impl AsRef) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_deployment`, `store_metrics`, and `store_log` are never used [INFO] [stdout] --> crates/dotlanth-cli/src/database.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl DotLanthDatabase { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_deployment(&self, deployment_id: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn store_metrics(&self, metric: MetricEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn store_log(&self, log: LogEntry) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grpc_server_sub_tab` and `grpc_endpoints_sub_tab` are never read [INFO] [stdout] --> crates/dotlanth-cli/src/tui/app.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 301 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 317 | pub grpc_server_sub_tab: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 318 | pub grpc_endpoints_sub_tab: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_enter`, `handle_escape`, `tick`, `get_refresh_rate`, and `get_tab_titles` are never used [INFO] [stdout] --> crates/dotlanth-cli/src/tui/app.rs:386:12 [INFO] [stdout] | [INFO] [stdout] 324 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn handle_enter(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | pub fn handle_escape(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 656 | pub fn get_refresh_rate(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 660 | pub fn get_tab_titles(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hash` [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | use std::hash::{DefaultHasher, Hash, Hasher}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> crates/dotdb/core/src/indices/persistence.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> crates/dotdb/core/src/indices/persistence.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/dotdb/core/src/memory/cache.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | hash::{Hash, Hasher}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> crates/dotdb/core/src/memory/mmap.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | io::{self, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strategy_type` [INFO] [stdout] --> crates/dotdb/core/src/compaction/manager.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | for (strategy_type, strategy) in &self.strategies { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_strategy_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `best_prefix` is assigned to, but never used [INFO] [stdout] --> crates/dotdb/core/src/indices/b_plus_tree.rs:516:17 [INFO] [stdout] | [INFO] [stdout] 516 | let mut best_prefix = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_best_prefix` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_prefix` is never read [INFO] [stdout] --> crates/dotdb/core/src/indices/b_plus_tree.rs:521:17 [INFO] [stdout] | [INFO] [stdout] 521 | best_prefix = prefix.clone(); [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: `prefix_key` [INFO] [stdout] --> crates/dotdb/core/src/indices/composite_index.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | let prefix_key = self.create_partial_composite_key(&partial_fields)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_capacity` [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let old_capacity = self.capacity; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_capacity` [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:645:17 [INFO] [stdout] | [INFO] [stdout] 645 | let old_capacity = self.capacity; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> crates/dotdb/core/src/memory/mmap.rs:529:29 [INFO] [stdout] | [INFO] [stdout] 529 | if let Some(ref file) = self.file { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/memory/mmap.rs:530:21 [INFO] [stdout] | [INFO] [stdout] 530 | let mut file_handle = File::options().write(true).open("dummy")?; // Placeholder [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_info` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let index_info = &self.available_indexes[best_index]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `columns` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | let columns: Vec<_> = predicates.iter().map(|p| p.column.clone()).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_columns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hash` [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | use std::hash::{DefaultHasher, Hash, Hasher}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> crates/dotdb/core/src/indices/persistence.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> crates/dotdb/core/src/indices/persistence.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Initializable` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:934:49 [INFO] [stdout] | [INFO] [stdout] 934 | use crate::storage_engine::lib::{Flushable, Initializable, StorageError, StorageResult, VersionId, calculate_checksum, generate_times... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> crates/dotdb/core/src/memory/cache.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | hash::{Hash, Hasher}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strategy_type` [INFO] [stdout] --> crates/dotdb/core/src/compaction/manager.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | for (strategy_type, strategy) in &self.strategies { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_strategy_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `branch_value` [INFO] [stdout] --> crates/dotdb/core/src/state/mpt/trie.rs:310:49 [INFO] [stdout] | [INFO] [stdout] 310 | NodeType::Branch { children, value: branch_value } => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leveled_strategy` [INFO] [stdout] --> crates/dotdb/core/src/compaction/strategy.rs:690:13 [INFO] [stdout] | [INFO] [stdout] 690 | let leveled_strategy = LeveledStrategy::new(config.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leveled_strategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/document/storage.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | let mut updated_doc = Document::with_id(doc_id.clone(), updated_content.clone()); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `doc_id` [INFO] [stdout] --> crates/dotdb/core/src/document/storage.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | let doc_id = document.id.clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_doc_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_version` [INFO] [stdout] --> crates/dotdb/core/src/state/versioning.rs:674:34 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn is_upgrade_compatible(from_version: &ContractStateVersion, to_version: &ContractStateVersion) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secs_since_epoch` [INFO] [stdout] --> crates/dotdb/core/src/statistics/access_patterns.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let secs_since_epoch = duration.as_secs(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secs_since_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `best_prefix` is assigned to, but never used [INFO] [stdout] --> crates/dotdb/core/src/indices/b_plus_tree.rs:516:17 [INFO] [stdout] | [INFO] [stdout] 516 | let mut best_prefix = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_best_prefix` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_prefix` is never read [INFO] [stdout] --> crates/dotdb/core/src/indices/b_plus_tree.rs:521:17 [INFO] [stdout] | [INFO] [stdout] 521 | best_prefix = prefix.clone(); [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: `current_time` [INFO] [stdout] --> crates/dotdb/core/src/statistics/access_patterns.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | let current_time = crate::storage_engine::generate_timestamp(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix_key` [INFO] [stdout] --> crates/dotdb/core/src/indices/composite_index.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | let prefix_key = self.create_partial_composite_key(&partial_fields)?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_capacity` [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let old_capacity = self.capacity; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_capacity` [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:645:17 [INFO] [stdout] | [INFO] [stdout] 645 | let old_capacity = self.capacity; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `states` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/mvcc.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | let states = { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:1034:21 [INFO] [stdout] | [INFO] [stdout] 1034 | let mut current = all_blocks[i]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr2` [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:1109:13 [INFO] [stdout] | [INFO] [stdout] 1109 | let ptr2 = allocator.allocate(128, 8).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ptr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `committed_txns` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let committed_txns = self.committed_transactions.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_committed_txns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer_txn` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:472:51 [INFO] [stdout] | [INFO] [stdout] 472 | ...te { writer_txn, .. } | ConflictType::WriteWrite { first_txn: writer_txn, .. } | ConflictType::WriteRead { reader_txn: writer_txn, .. ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 472 - ConflictType::ReadWrite { writer_txn, .. } | ConflictType::WriteWrite { first_txn: writer_txn, .. } | ConflictType::WriteRead { reader_txn: writer_txn, .. } => { [INFO] [stdout] 472 + ConflictType::ReadWrite { writer_txn: _, .. } | ConflictType::WriteWrite { first_txn: _, .. } | ConflictType::WriteRead { reader_txn: _, .. } => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tracker` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:507:13 [INFO] [stdout] | [INFO] [stdout] 507 | let tracker = self.access_tracker.read().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:506:69 [INFO] [stdout] | [INFO] [stdout] 506 | fn resolve_adaptive_strategy(&self, conflicts: &[ConflictType], context: &ValidationContext) -> ConflictResolution { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:546:68 [INFO] [stdout] | [INFO] [stdout] 546 | fn resolve_no_wait_strategy(&self, conflicts: &[ConflictType], context: &ValidationContext) -> ConflictResolution { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:580:63 [INFO] [stdout] | [INFO] [stdout] 580 | pub fn handle_abort(&self, transaction_id: TransactionId, reason: &str) -> StorageResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_version` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/page_manager.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | for &old_version in versions.iter().filter(|&&v| v != latest_version) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_image` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let before_image = page_guard.page().data.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let page = self.buffer_manager.get_page(page_id)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_page` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> crates/dotdb/core/src/memory/mmap.rs:529:29 [INFO] [stdout] | [INFO] [stdout] 529 | if let Some(ref file) = self.file { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/memory/mmap.rs:530:21 [INFO] [stdout] | [INFO] [stdout] 530 | let mut file_handle = File::options().write(true).open("dummy")?; // Placeholder [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_path` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:696:16 [INFO] [stdout] | [INFO] [stdout] 696 | pub fn new(data_path: &Path) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `index_selector::IndexInfo` is more private than the item `IndexSelector::register_index` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn register_index(&mut self, name: String, info: IndexInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `IndexSelector::register_index` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `index_selector::IndexInfo` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | struct IndexInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TableMetadata` is more private than the item `QueryPlanner::register_table` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn register_table(&mut self, table_name: String, metadata: TableMetadata) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `QueryPlanner::register_table` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TableMetadata` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:159:1 [INFO] [stdout] | [INFO] [stdout] 159 | struct TableMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `task_queue` is never read [INFO] [stdout] --> crates/dotdb/core/src/compaction/manager.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct CompactionManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 160 | task_queue: Arc>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource_monitor` is never read [INFO] [stdout] --> crates/dotdb/core/src/compaction/manager.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 517 | struct CompactionManagerHandle { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 521 | resource_monitor: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compress_key` is never used [INFO] [stdout] --> crates/dotdb/core/src/indices/b_plus_tree.rs:507:8 [INFO] [stdout] | [INFO] [stdout] 252 | / impl BPlusTree [INFO] [stdout] 253 | | where [INFO] [stdout] 254 | | K: IndexKey, [INFO] [stdout] 255 | | V: IndexValue, [INFO] [stdout] | |__________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 507 | fn compress_key(&mut self, key: &K) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_bitmap_indices` and `update_field_stats` are never used [INFO] [stdout] --> crates/dotdb/core/src/indices/composite_index.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 278 | / impl CompositeIndex [INFO] [stdout] 279 | | where [INFO] [stdout] 280 | | V: IndexValue + 'static, [INFO] [stdout] | |____________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 504 | fn update_bitmap_indices(&mut self, key: &CompositeKey, record_id: usize) -> IndexResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | fn update_field_stats(&mut self, field_name: &str, value: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_advanced_stats` is never used [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 142 | / impl HashIndex [INFO] [stdout] 143 | | where [INFO] [stdout] 144 | | K: IndexKey, [INFO] [stdout] 145 | | V: IndexValue, [INFO] [stdout] | |__________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 223 | fn update_advanced_stats(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `prev` is never read [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 66 | struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | prev: Option>, // Pointer to previous block in chain [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `numa_num_configured_nodes` is never used [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn numa_num_configured_nodes() -> libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cardinality_estimates` is never read [INFO] [stdout] --> crates/dotdb/core/src/query/optimizer/rules.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct JoinReorderingRule { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 286 | cardinality_estimates: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JoinReorderingRule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statistics` is never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct IndexSelector { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 81 | available_indexes: HashMap, [INFO] [stdout] 82 | statistics: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index_type`, `cardinality`, and `is_unique` are never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct IndexInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 87 | index_type: IndexType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 88 | columns: Vec, [INFO] [stdout] 89 | cardinality: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | is_unique: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index_selector` is never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct QueryPlanner { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 153 | cost_model: CostModel, [INFO] [stdout] 154 | index_selector: IndexSelector, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data_type`, `nullable`, `cardinality`, and `selectivity` are never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 166 | struct ColumnInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 167 | data_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 168 | nullable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 169 | cardinality: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 170 | selectivity: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 118 | trait StorageBackend: Send + Sync { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 122 | fn contains(&self, key: &[u8]) -> DbResult; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db_id` is never read [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:385:5 [INFO] [stdout] | [INFO] [stdout] 374 | pub struct Database { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 385 | db_id: DatabaseId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deserialize_with_decompression` is never used [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:434:8 [INFO] [stdout] | [INFO] [stdout] 391 | impl Database { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 434 | fn deserialize_with_decompression(&self, data: &[u8]) -> DbResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `access_tracker` and `row_count` are never read [INFO] [stdout] --> crates/dotdb/core/src/statistics/collector.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 71 | struct TableStatistics { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | access_tracker: AccessPatternTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 75 | row_count: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TableStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> crates/dotdb/core/src/statistics/collector.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct StatisticsCollector { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | created_at: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatisticsCollector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `insertion_time` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 127 | insertion_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Buffer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_insertion_time` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl Buffer { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | fn get_insertion_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_dirty_pages` and `bg_writer_running` are never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct BufferPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 217 | max_dirty_pages: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | /// Background writer thread running flag [INFO] [stdout] 219 | bg_writer_running: AtomicBool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stats` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:667:5 [INFO] [stdout] | [INFO] [stdout] 659 | pub struct BufferManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 667 | stats: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/deadlock_detector.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct TransactionMetadata { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 130 | /// When the transaction started [INFO] [stdout] 131 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionMetadata` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `abort_callback` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/deadlock_detector.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 502 | pub struct DeadlockDetectionService { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 506 | abort_callback: Box StorageResult<()> + Send + Sync>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/lib.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct IoHandle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 179 | pub(crate) inner: Arc<()>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `first_lsn` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | first_lsn: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lock_manager` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:501:5 [INFO] [stdout] | [INFO] [stdout] 487 | pub struct TransactionManager { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 501 | lock_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_MAGIC` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const WAL_MAGIC: [u8; 4] = [0x44, 0x4F, 0x54, 0x57]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_VERSION` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const WAL_VERSION: u32 = 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_HEADER_SIZE` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const WAL_HEADER_SIZE: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalHeader` is never constructed [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | struct WalHeader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `serialize`, and `deserialize` are never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:310:8 [INFO] [stdout] | [INFO] [stdout] 308 | impl WalHeader { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 309 | /// Create a new WAL header [INFO] [stdout] 310 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn serialize(&self, buffer: &mut [u8]) -> StorageResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | fn deserialize(buffer: &[u8]) -> StorageResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `auto_maintain_indices` is never read [INFO] [stdout] --> crates/dotdb/core/src/write_batch.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct WriteBatch [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | auto_maintain_indices: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `verify_operations` is never read [INFO] [stdout] --> crates/dotdb/core/src/write_batch.rs:255:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub struct IndexManager [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 255 | verify_operations: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimized_plan` [INFO] [stdout] --> crates/dotdb/core/src/query/optimizer/rule_engine.rs:170:14 [INFO] [stdout] | [INFO] [stdout] 170 | let (optimized_plan, applications) = result.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimized_plan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_info` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let index_info = &self.available_indexes[best_index]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `columns` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | let columns: Vec<_> = predicates.iter().map(|p| p.column.clone()).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_columns` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dotvm-core v0.1.0 (/opt/rustwide/workdir/crates/dotvm/core) [INFO] [stderr] Checking dotdb-cli v0.1.0 (/opt/rustwide/workdir/crates/dotdb/cli) [INFO] [stdout] warning: unused variable: `checkpoint1` [INFO] [stdout] --> crates/dotdb/core/src/recovery/checkpoint.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | let checkpoint1 = manager.create_checkpoint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checkpoint1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checkpoint2` [INFO] [stdout] --> crates/dotdb/core/src/recovery/checkpoint.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | let checkpoint2 = manager.create_checkpoint().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checkpoint2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:811:13 [INFO] [stdout] | [INFO] [stdout] 811 | let value = Value::from("test_value"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotdb_core::storage_engine::wal::WalConfig` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dotdb_core::storage_engine::wal::WalConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WriteAheadLog` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:24:95 [INFO] [stdout] | [INFO] [stdout] 24 | use dotdb_core::storage_engine::{BufferManager, FileFormat, StorageError, TransactionManager, WriteAheadLog}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TaskPriority` [INFO] [stdout] --> crates/dotvm/core/src/vm/execution_controller/work_stealing_scheduler.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | use super::{ExecutionError, Task, TaskPriority}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> crates/dotvm/core/src/bytecode.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/state/mpt/node.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | let mut children = [None; 16]; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arch128`, `Arch256`, and `Arch512` [INFO] [stdout] --> crates/dotvm/core/src/vm/compatibility.rs:113:41 [INFO] [stdout] | [INFO] [stdout] 113 | use crate::memory::{Arch32, Arch64, Arch128, Arch256, Arch512}; // Import specific architectures [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotdb_core::storage_engine::wal::WalConfig` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dotdb_core::storage_engine::wal::WalConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WriteAheadLog` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:24:95 [INFO] [stdout] | [INFO] [stdout] 24 | use dotdb_core::storage_engine::{BufferManager, FileFormat, StorageError, TransactionManager, WriteAheadLog}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `branch_value` [INFO] [stdout] --> crates/dotdb/core/src/state/mpt/trie.rs:310:49 [INFO] [stdout] | [INFO] [stdout] 310 | NodeType::Branch { children, value: branch_value } => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snapshot` [INFO] [stdout] --> crates/dotdb/core/src/state/snapshot.rs:958:21 [INFO] [stdout] | [INFO] [stdout] 958 | let mut snapshot = manager.create_snapshot(id.clone(), &trie, Some(i as u64), None).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snapshot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/state/snapshot.rs:958:17 [INFO] [stdout] | [INFO] [stdout] 958 | let mut snapshot = manager.create_snapshot(id.clone(), &trie, Some(i as u64), None).unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_version` [INFO] [stdout] --> crates/dotdb/core/src/state/versioning.rs:674:34 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn is_upgrade_compatible(from_version: &ContractStateVersion, to_version: &ContractStateVersion) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secs_since_epoch` [INFO] [stdout] --> crates/dotdb/core/src/statistics/access_patterns.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let secs_since_epoch = duration.as_secs(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secs_since_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_time` [INFO] [stdout] --> crates/dotdb/core/src/statistics/access_patterns.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | let current_time = crate::storage_engine::generate_timestamp(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:969:13 [INFO] [stdout] | [INFO] [stdout] 969 | let mut manager = BufferManager::new(file_format.clone(), &config); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_page_id` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:1001:13 [INFO] [stdout] | [INFO] [stdout] 1001 | let new_page_id = pool.allocate_page(PageType::Data, VersionId(1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_page_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_page_id` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:1024:13 [INFO] [stdout] | [INFO] [stdout] 1024 | let new_page_id = pool.allocate_page(PageType::Data, VersionId(1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_page_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_page_id` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:1047:13 [INFO] [stdout] | [INFO] [stdout] 1047 | let new_page_id = pool.allocate_page(PageType::Data, VersionId(1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_page_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_page_id` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:1070:13 [INFO] [stdout] | [INFO] [stdout] 1070 | let new_page_id = pool.allocate_page(PageType::Data, VersionId(1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_page_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dirty_count` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:1117:21 [INFO] [stdout] | [INFO] [stdout] 1117 | let (stats, dirty_count, total_count) = pool.get_stats(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dirty_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_count` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:1117:34 [INFO] [stdout] | [INFO] [stdout] 1117 | let (stats, dirty_count, total_count) = pool.get_stats(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `states` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/mvcc.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | let states = { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `committed_txns` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let committed_txns = self.committed_transactions.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_committed_txns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer_txn` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:472:51 [INFO] [stdout] | [INFO] [stdout] 472 | ...te { writer_txn, .. } | ConflictType::WriteWrite { first_txn: writer_txn, .. } | ConflictType::WriteRead { reader_txn: writer_txn, .. ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 472 - ConflictType::ReadWrite { writer_txn, .. } | ConflictType::WriteWrite { first_txn: writer_txn, .. } | ConflictType::WriteRead { reader_txn: writer_txn, .. } => { [INFO] [stdout] 472 + ConflictType::ReadWrite { writer_txn: _, .. } | ConflictType::WriteWrite { first_txn: _, .. } | ConflictType::WriteRead { reader_txn: _, .. } => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tracker` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:507:13 [INFO] [stdout] | [INFO] [stdout] 507 | let tracker = self.access_tracker.read().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:506:69 [INFO] [stdout] | [INFO] [stdout] 506 | fn resolve_adaptive_strategy(&self, conflicts: &[ConflictType], context: &ValidationContext) -> ConflictResolution { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:546:68 [INFO] [stdout] | [INFO] [stdout] 546 | fn resolve_no_wait_strategy(&self, conflicts: &[ConflictType], context: &ValidationContext) -> ConflictResolution { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/occ.rs:580:63 [INFO] [stdout] | [INFO] [stdout] 580 | pub fn handle_abort(&self, transaction_id: TransactionId, reason: &str) -> StorageResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_version` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/page_manager.rs:382:22 [INFO] [stdout] | [INFO] [stdout] 382 | for &old_version in versions.iter().filter(|&&v| v != latest_version) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before_image` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let before_image = page_guard.page().data.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_before_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let page = self.buffer_manager.get_page(page_id)?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_page` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:1267:13 [INFO] [stdout] | [INFO] [stdout] 1267 | let mut txn_manager = TransactionManager::new(buffer_manager.clone(), wal.clone()); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_path` [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:696:16 [INFO] [stdout] | [INFO] [stdout] 696 | pub fn new(data_path: &Path) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:940:13 [INFO] [stdout] | [INFO] [stdout] 940 | let mut reconstructed = LogEntry { [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_integer::Roots` [INFO] [stdout] --> crates/dotvm/core/src/instruction/bigint.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 154 | use num_integer::Roots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `index_selector::IndexInfo` is more private than the item `index_selector::IndexSelector::register_index` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn register_index(&mut self, name: String, info: IndexInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `index_selector::IndexSelector::register_index` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `index_selector::IndexInfo` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | struct IndexInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TableMetadata` is more private than the item `plan_generator::QueryPlanner::register_table` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn register_table(&mut self, table_name: String, metadata: TableMetadata) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `plan_generator::QueryPlanner::register_table` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TableMetadata` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:159:1 [INFO] [stdout] | [INFO] [stdout] 159 | struct TableMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `task_queue` is never read [INFO] [stdout] --> crates/dotdb/core/src/compaction/manager.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct CompactionManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 160 | task_queue: Arc>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `resource_monitor` is never read [INFO] [stdout] --> crates/dotdb/core/src/compaction/manager.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 517 | struct CompactionManagerHandle { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 521 | resource_monitor: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compress_key` is never used [INFO] [stdout] --> crates/dotdb/core/src/indices/b_plus_tree.rs:507:8 [INFO] [stdout] | [INFO] [stdout] 252 | / impl BPlusTree [INFO] [stdout] 253 | | where [INFO] [stdout] 254 | | K: IndexKey, [INFO] [stdout] 255 | | V: IndexValue, [INFO] [stdout] | |__________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 507 | fn compress_key(&mut self, key: &K) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_bitmap_indices` and `update_field_stats` are never used [INFO] [stdout] --> crates/dotdb/core/src/indices/composite_index.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 278 | / impl CompositeIndex [INFO] [stdout] 279 | | where [INFO] [stdout] 280 | | V: IndexValue + 'static, [INFO] [stdout] | |____________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 504 | fn update_bitmap_indices(&mut self, key: &CompositeKey, record_id: usize) -> IndexResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | fn update_field_stats(&mut self, field_name: &str, value: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_advanced_stats` is never used [INFO] [stdout] --> crates/dotdb/core/src/indices/hash_index.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 142 | / impl HashIndex [INFO] [stdout] 143 | | where [INFO] [stdout] 144 | | K: IndexKey, [INFO] [stdout] 145 | | V: IndexValue, [INFO] [stdout] | |__________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 223 | fn update_advanced_stats(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `prev` is never read [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 66 | struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | prev: Option>, // Pointer to previous block in chain [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cardinality_estimates` is never read [INFO] [stdout] --> crates/dotdb/core/src/query/optimizer/rules.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct JoinReorderingRule { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 286 | cardinality_estimates: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JoinReorderingRule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statistics` is never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct IndexSelector { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 81 | available_indexes: HashMap, [INFO] [stdout] 82 | statistics: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index_type`, `cardinality`, and `is_unique` are never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/index_selector.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct IndexInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 87 | index_type: IndexType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 88 | columns: Vec, [INFO] [stdout] 89 | cardinality: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | is_unique: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index_selector` is never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct QueryPlanner { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 153 | cost_model: CostModel, [INFO] [stdout] 154 | index_selector: IndexSelector, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data_type`, `nullable`, `cardinality`, and `selectivity` are never read [INFO] [stdout] --> crates/dotdb/core/src/query/planner/plan_generator.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 166 | struct ColumnInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 167 | data_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 168 | nullable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 169 | cardinality: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 170 | selectivity: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColumnInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 118 | trait StorageBackend: Send + Sync { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 122 | fn contains(&self, key: &[u8]) -> DbResult; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db_id` is never read [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:385:5 [INFO] [stdout] | [INFO] [stdout] 374 | pub struct Database { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 385 | db_id: DatabaseId, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deserialize_with_decompression` is never used [INFO] [stdout] --> crates/dotdb/core/src/state/db_interface.rs:434:8 [INFO] [stdout] | [INFO] [stdout] 391 | impl Database { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 434 | fn deserialize_with_decompression(&self, data: &[u8]) -> DbResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TestSnapshotManager` is never used [INFO] [stdout] --> crates/dotdb/core/src/state/pruning.rs:679:10 [INFO] [stdout] | [INFO] [stdout] 679 | type TestSnapshotManager = SnapshotManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `access_tracker` and `row_count` are never read [INFO] [stdout] --> crates/dotdb/core/src/statistics/collector.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 71 | struct TableStatistics { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | access_tracker: AccessPatternTracker, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 75 | row_count: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TableStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> crates/dotdb/core/src/statistics/collector.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct StatisticsCollector { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | created_at: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatisticsCollector` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `insertion_time` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 127 | insertion_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Buffer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_insertion_time` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl Buffer { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | fn get_insertion_time(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_dirty_pages` and `bg_writer_running` are never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct BufferPool { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 217 | max_dirty_pages: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | /// Background writer thread running flag [INFO] [stdout] 219 | bg_writer_running: AtomicBool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stats` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/buffer_manager.rs:667:5 [INFO] [stdout] | [INFO] [stdout] 659 | pub struct BufferManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 667 | stats: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/deadlock_detector.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct TransactionMetadata { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 130 | /// When the transaction started [INFO] [stdout] 131 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionMetadata` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `abort_callback` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/deadlock_detector.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 502 | pub struct DeadlockDetectionService { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 506 | abort_callback: Box StorageResult<()> + Send + Sync>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/lib.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct IoHandle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 179 | pub(crate) inner: Arc<()>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `first_lsn` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Transaction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | first_lsn: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lock_manager` is never read [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/transaction.rs:501:5 [INFO] [stdout] | [INFO] [stdout] 487 | pub struct TransactionManager { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 501 | lock_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_MAGIC` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const WAL_MAGIC: [u8; 4] = [0x44, 0x4F, 0x54, 0x57]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_VERSION` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const WAL_VERSION: u32 = 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_HEADER_SIZE` is never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const WAL_HEADER_SIZE: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalHeader` is never constructed [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | struct WalHeader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `serialize`, and `deserialize` are never used [INFO] [stdout] --> crates/dotdb/core/src/storage_engine/wal.rs:310:8 [INFO] [stdout] | [INFO] [stdout] 308 | impl WalHeader { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 309 | /// Create a new WAL header [INFO] [stdout] 310 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn serialize(&self, buffer: &mut [u8]) -> StorageResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | fn deserialize(buffer: &[u8]) -> StorageResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `auto_maintain_indices` is never read [INFO] [stdout] --> crates/dotdb/core/src/write_batch.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct WriteBatch [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | auto_maintain_indices: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `verify_operations` is never read [INFO] [stdout] --> crates/dotdb/core/src/write_batch.rs:255:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub struct IndexManager [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 255 | verify_operations: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:895:18 [INFO] [stdout] | [INFO] [stdout] 895 | assert!(!ptr.as_ptr().is_null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:1115:18 [INFO] [stdout] | [INFO] [stdout] 1115 | assert!(!ptr3.as_ptr().is_null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> crates/dotdb/core/src/memory/allocator.rs:1151:30 [INFO] [stdout] | [INFO] [stdout] 1151 | assert!(!ptr.as_ptr().is_null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> crates/dotdb/core/src/memory/pool.rs:741:18 [INFO] [stdout] | [INFO] [stdout] 741 | assert!(!ptr.as_ptr().is_null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_integer::Roots` [INFO] [stdout] --> crates/dotvm/core/src/instruction/bigint.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 154 | use num_integer::Roots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer_manager` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let buffer_manager = Arc::new(BufferManager::new(file_format, &storage_config)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `segments` [INFO] [stdout] --> crates/dotvm/core/src/dots/dependencies.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let segments = vec![ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_segments` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | let mut tx_context = TransactionContext { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_spec` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:716:37 [INFO] [stdout] | [INFO] [stdout] 716 | pub fn execute_db_stream(&self, stream_spec: StreamSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_state` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:932:42 [INFO] [stdout] | [INFO] [stdout] 932 | ..._operation(&self, transaction_state: &HashMap<(TableId, Key), Option>, key: &Key, value: &Value) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:932:102 [INFO] [stdout] | [INFO] [stdout] 932 | ...(TableId, Key), Option>, key: &Key, value: &Value) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle2` [INFO] [stdout] --> crates/dotvm/core/src/memory/allocator.rs:466:17 [INFO] [stdout] | [INFO] [stdout] 466 | let handle2 = allocator.allocate(1024).expect("Second allocation failed"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle2` [INFO] [stdout] --> crates/dotvm/core/src/memory/allocator.rs:652:17 [INFO] [stdout] | [INFO] [stdout] 652 | let handle2 = allocator.allocate(2048).expect("Second allocation failed"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/dotvm/core/src/memory/pool.rs:220:17 [INFO] [stdout] | [INFO] [stdout] 220 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `collection_manager`, `transaction_manager`, `query_optimizer`, `query_planner`, `db_interface`, and `stream_manager` are never read [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:248:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct DatabaseOpcodeExecutor { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 248 | collection_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 249 | /// transaction manager from DotDB [INFO] [stdout] 250 | transaction_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 251 | /// query optimizer from DotDB [INFO] [stdout] 252 | query_optimizer: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 253 | /// query planner from DotDB [INFO] [stdout] 254 | query_planner: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 255 | /// Database interface for low-level operations [INFO] [stdout] 256 | db_interface: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 257 | /// Stream manager for large result sets [INFO] [stdout] 258 | stream_manager: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `operations`, and `start_time` are never read [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 271 | struct TransactionContext { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 272 | id: TransactionId, [INFO] [stdout] | ^^ [INFO] [stdout] 273 | operations: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 274 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Subtract` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:83:15 [INFO] [stdout] | [INFO] [stdout] 83 | pub const Subtract: Self = Self::Sub; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SUBTRACT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Multiply` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | pub const Multiply: Self = Self::Mul; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `MULTIPLY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Divide` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | pub const Divide: Self = Self::Div; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `DIVIDE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Power` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | pub const Power: Self = Self::Pow; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `POWER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Compare` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | pub const Compare: Self = Self::Cmp; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `COMPARE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dotvm-compiler v0.1.0 (/opt/rustwide/workdir/crates/dotvm/compiler) [INFO] [stdout] warning: unused variable: `buffer_manager` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let buffer_manager = Arc::new(BufferManager::new(file_format, &storage_config)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/dotvm/core/examples/database_opcodes_examples.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 530 | let mut tx_context = TransactionContext { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_spec` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:716:37 [INFO] [stdout] | [INFO] [stdout] 716 | pub fn execute_db_stream(&self, stream_spec: StreamSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> crates/dotvm/core/benches/database_performance_benchmarks.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_state` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:932:42 [INFO] [stdout] | [INFO] [stdout] 932 | ..._operation(&self, transaction_state: &HashMap<(TableId, Key), Option>, key: &Key, value: &Value) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:932:102 [INFO] [stdout] | [INFO] [stdout] 932 | ...(TableId, Key), Option>, key: &Key, value: &Value) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `executor` [INFO] [stdout] --> crates/dotvm/core/examples/database_opcodes_examples.rs:716:31 [INFO] [stdout] | [INFO] [stdout] 716 | fn test_concurrent_operations(executor: &DatabaseOpcodeExecutor) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_executor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/dotvm/core/benches/database_performance_benchmarks.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | black_box(result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = black_box(result); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/dotvm/core/benches/database_performance_benchmarks.rs:269:21 [INFO] [stdout] | [INFO] [stdout] 269 | handle.join().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 269 | let _ = handle.join().unwrap(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/dotvm/core/benches/database_performance_benchmarks.rs:375:17 [INFO] [stdout] | [INFO] [stdout] 375 | black_box(result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 375 | let _ = black_box(result); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/core/src/vm/state_storage/snapshot.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 261 | let mut manager = DefaultSnapshotManager::new(10); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `collection_manager`, `transaction_manager`, `query_optimizer`, `query_planner`, `db_interface`, and `stream_manager` are never read [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:248:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct DatabaseOpcodeExecutor { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 248 | collection_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 249 | /// transaction manager from DotDB [INFO] [stdout] 250 | transaction_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 251 | /// query optimizer from DotDB [INFO] [stdout] 252 | query_optimizer: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 253 | /// query planner from DotDB [INFO] [stdout] 254 | query_planner: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 255 | /// Database interface for low-level operations [INFO] [stdout] 256 | db_interface: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 257 | /// Stream manager for large result sets [INFO] [stdout] 258 | stream_manager: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `operations`, and `start_time` are never read [INFO] [stdout] --> crates/dotvm/core/src/vm/database_executor.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 271 | struct TransactionContext { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 272 | id: TransactionId, [INFO] [stdout] | ^^ [INFO] [stdout] 273 | operations: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 274 | start_time: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FactoryTestPushInstruction` is never constructed [INFO] [stdout] --> crates/dotvm/core/src/vm/vm_factory.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | struct FactoryTestPushInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Subtract` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:83:15 [INFO] [stdout] | [INFO] [stdout] 83 | pub const Subtract: Self = Self::Sub; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `SUBTRACT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Multiply` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | pub const Multiply: Self = Self::Mul; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `MULTIPLY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Divide` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 85 | pub const Divide: Self = Self::Div; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `DIVIDE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Power` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 86 | pub const Power: Self = Self::Pow; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `POWER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Compare` should have an upper case name [INFO] [stdout] --> crates/dotvm/core/src/opcode/bigint_opcodes.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | pub const Compare: Self = Self::Cmp; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `COMPARE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::codegen::core::context::GenerationContext` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/sections/code.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::codegen::core::context::GenerationContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SectionGenerator` and `SectionType` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/sections/code.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::codegen::sections::traits::{SectionGenerator, SectionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WasmValueType` [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/simd.rs:23:55 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::wasm::ast::{WasmFunction, WasmInstruction, WasmValueType}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/analysis/side_effects.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | if (effects1.contains(&SideEffect::GlobalWrite) && effects2.contains(&SideEffect::GlobalWrite)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 279 - if (effects1.contains(&SideEffect::GlobalWrite) && effects2.contains(&SideEffect::GlobalWrite)) { [INFO] [stdout] 279 + if effects1.contains(&SideEffect::GlobalWrite) && effects2.contains(&SideEffect::GlobalWrite) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptimizationCache` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:19:53 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::optimizer::framework::cache::{NoopCache, OptimizationCache}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptimizationResult` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::optimizer::framework::pass::{OptimizationPass, OptimizationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConstantFolder` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:23:50 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::optimizer::passes::constant_folding::{ConstantFolder, FoldingStats}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptimizationWarning` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/peephole/mod.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::optimizer::framework::metrics::{OptimizationMetrics, OptimizationWarning}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspiledInstruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/peephole/mod.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::transpiler::types::{TranspiledFunction, TranspiledInstruction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::optimizer::passes as opt_passes` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::optimizer::passes as opt_passes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/engine_new.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TranspilationError` and `TranspilationResult` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/analysis/architecture.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | use super::super::error::{TranspilationError, TranspilationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/analysis/control_flow.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | use super::super::error::{TranspilationError, TranspilationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/translator.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::codegen::core::context::GenerationContext` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/sections/code.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::codegen::core::context::GenerationContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SectionGenerator` and `SectionType` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/sections/code.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::codegen::sections::traits::{SectionGenerator, SectionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transpiler::types::TranspiledInstruction` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/sections/function_table.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | use crate::transpiler::types::TranspiledInstruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WasmInstruction` [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/detector.rs:352:28 [INFO] [stdout] | [INFO] [stdout] 352 | use crate::wasm::ast::{WasmInstruction, WasmValueType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::wasm::ast::WasmModule` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use crate::wasm::ast::WasmModule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/exports_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/globals_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/instruction_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/analysis/side_effects.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | if (effects1.contains(&SideEffect::GlobalWrite) && effects2.contains(&SideEffect::GlobalWrite)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 279 - if (effects1.contains(&SideEffect::GlobalWrite) && effects2.contains(&SideEffect::GlobalWrite)) { [INFO] [stdout] 279 + if effects1.contains(&SideEffect::GlobalWrite) && effects2.contains(&SideEffect::GlobalWrite) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptimizationCache` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:19:53 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::optimizer::framework::cache::{NoopCache, OptimizationCache}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/memory_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/module_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptimizationResult` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::optimizer::framework::pass::{OptimizationPass, OptimizationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConstantFolder` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:23:50 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::optimizer::passes::constant_folding::{ConstantFolder, FoldingStats}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OptimizationWarning` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/peephole/mod.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::optimizer::framework::metrics::{OptimizationMetrics, OptimizationWarning}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspiledInstruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/peephole/mod.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::transpiler::types::{TranspiledFunction, TranspiledInstruction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::optimizer::passes as opt_passes` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::optimizer::passes as opt_passes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/engine_new.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TranspilationError` and `TranspilationResult` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/analysis/architecture.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | use super::super::error::{TranspilationError, TranspilationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/analysis/control_flow.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | use super::super::error::{TranspilationError, TranspilationResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/translator.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::wasm::ast::WasmModule` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use crate::wasm::ast::WasmModule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/exports_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/globals_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/instruction_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/memory_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TranspilationError` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/module_processor.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | error::{TranspilationError, TranspilationResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WasmFeatures` [INFO] [stdout] --> crates/dotvm/compiler/src/wasm/parser/core.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | use wasmparser::{Parser, Payload, WasmFeatures}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WasmFeatures` [INFO] [stdout] --> crates/dotvm/compiler/src/wasm/parser/core.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | use wasmparser::{Parser, Payload, WasmFeatures}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> crates/dotvm/core/src/vm/vm_factory.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | drop(exec_iface); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut multi_arch_executor::MultiArchExecutor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 145 - drop(exec_iface); [INFO] [stdout] 145 + let _ = exec_iface; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> crates/dotvm/core/src/vm/vm_factory.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | drop(exec_iface); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut multi_arch_executor::MultiArchExecutor` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 164 - drop(exec_iface); [INFO] [stdout] 164 + let _ = exec_iface; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> crates/dotvm/core/src/vm/vm_factory.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | drop(exec_iface); [INFO] [stdout] | ^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut multi_arch_executor::MultiArchExecutor` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 183 - drop(exec_iface); [INFO] [stdout] 183 + let _ = exec_iface; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stdout] warning: unused import: `generator::BytecodeGenerator` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/generator.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::codegen::core::{context::GenerationContext, generator::BytecodeGenerator as BytecodeGeneratorTrait}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generator::BytecodeGenerator` [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/generator.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::codegen::core::{context::GenerationContext, generator::BytecodeGenerator as BytecodeGeneratorTrait}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/simd.rs:292:92 [INFO] [stdout] | [INFO] [stdout] 292 | ...ult_type: &SimdVectorType, function: &WasmFunction) -> Result<(Vec, SimdVectorType), SimdExtensionError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/analysis/def_use.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn analyze(&mut self, function: &TranspiledFunction) -> &DefUseChains { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_instruction_count` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let original_instruction_count = function.instructions.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_instruction_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let context = ConstantContext::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:118:89 [INFO] [stdout] | [INFO] [stdout] 118 | ...Instruction], index: usize, context: &ConstantContext) -> Option<(Vec, usize)> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:139:85 [INFO] [stdout] | [INFO] [stdout] 139 | ...Instruction], index: usize, context: &ConstantContext) -> Option<(Vec, usize)> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:181:32 [INFO] [stdout] | [INFO] [stdout] 181 | fn extract_constant(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op_instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:187:37 [INFO] [stdout] | [INFO] [stdout] 187 | fn fold_binary_operation(&self, op_instruction: &TranspiledInstruction, a: ConstantValue, b: ConstantValue) -> Option crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:187:77 [INFO] [stdout] | [INFO] [stdout] 187 | ...truction: &TranspiledInstruction, a: ConstantValue, b: ConstantValue) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:187:95 [INFO] [stdout] | [INFO] [stdout] 187 | ...ledInstruction, a: ConstantValue, b: ConstantValue) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op_instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:194:36 [INFO] [stdout] | [INFO] [stdout] 194 | fn fold_unary_operation(&self, op_instruction: &TranspiledInstruction, value: ConstantValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_op_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:194:76 [INFO] [stdout] | [INFO] [stdout] 194 | fn fold_unary_operation(&self, op_instruction: &TranspiledInstruction, value: ConstantValue) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:201:37 [INFO] [stdout] | [INFO] [stdout] 201 | fn extract_store_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:207:36 [INFO] [stdout] | [INFO] [stdout] 207 | fn extract_load_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:225:37 [INFO] [stdout] | [INFO] [stdout] 225 | fn extract_variable_load(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:258:43 [INFO] [stdout] | [INFO] [stdout] 258 | fn extract_variable_assignment(&self, instruction: &TranspiledInstruction) -> Option<(usize, ConstantValue)> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:264:42 [INFO] [stdout] | [INFO] [stdout] 264 | fn extract_modified_variables(&self, instruction: &TranspiledInstruction) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:138:37 [INFO] [stdout] | [INFO] [stdout] 138 | fn extract_function_call(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:168:32 [INFO] [stdout] | [INFO] [stdout] 168 | fn get_jump_targets(&self, instruction: &TranspiledInstruction, current_index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_index` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:168:69 [INFO] [stdout] | [INFO] [stdout] 168 | fn get_jump_targets(&self, instruction: &TranspiledInstruction, current_index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:220:40 [INFO] [stdout] | [INFO] [stdout] 220 | fn extract_local_references(&self, instruction: &TranspiledInstruction) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/simd.rs:292:92 [INFO] [stdout] | [INFO] [stdout] 292 | ...ult_type: &SimdVectorType, function: &WasmFunction) -> Result<(Vec, SimdVectorType), SimdExtensionError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pass` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/profiling/profiler.rs:156:39 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn profile_pass

(&mut self, pass: &mut P, input: &TranspiledFunction) -> Duration [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/profiling/profiler.rs:156:53 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn profile_pass

(&mut self, pass: &mut P, input: &TranspiledFunction) -> Duration [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/mod.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut pipeline = OptimizationPipeline::new(config, ExecutionStrategy::Sequential); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/analysis/def_use.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn analyze(&mut self, function: &TranspiledFunction) -> &DefUseChains { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_instruction_count` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let original_instruction_count = function.instructions.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_instruction_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let context = ConstantContext::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:118:89 [INFO] [stdout] | [INFO] [stdout] 118 | ...Instruction], index: usize, context: &ConstantContext) -> Option<(Vec, usize)> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:139:85 [INFO] [stdout] | [INFO] [stdout] 139 | ...Instruction], index: usize, context: &ConstantContext) -> Option<(Vec, usize)> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:181:32 [INFO] [stdout] | [INFO] [stdout] 181 | fn extract_constant(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op_instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:187:37 [INFO] [stdout] | [INFO] [stdout] 187 | fn fold_binary_operation(&self, op_instruction: &TranspiledInstruction, a: ConstantValue, b: ConstantValue) -> Option crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:187:77 [INFO] [stdout] | [INFO] [stdout] 187 | ...truction: &TranspiledInstruction, a: ConstantValue, b: ConstantValue) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:187:95 [INFO] [stdout] | [INFO] [stdout] 187 | ...ledInstruction, a: ConstantValue, b: ConstantValue) -> Option { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op_instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:194:36 [INFO] [stdout] | [INFO] [stdout] 194 | fn fold_unary_operation(&self, op_instruction: &TranspiledInstruction, value: ConstantValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_op_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:194:76 [INFO] [stdout] | [INFO] [stdout] 194 | fn fold_unary_operation(&self, op_instruction: &TranspiledInstruction, value: ConstantValue) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:201:37 [INFO] [stdout] | [INFO] [stdout] 201 | fn extract_store_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:207:36 [INFO] [stdout] | [INFO] [stdout] 207 | fn extract_load_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:225:37 [INFO] [stdout] | [INFO] [stdout] 225 | fn extract_variable_load(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:258:43 [INFO] [stdout] | [INFO] [stdout] 258 | fn extract_variable_assignment(&self, instruction: &TranspiledInstruction) -> Option<(usize, ConstantValue)> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:264:42 [INFO] [stdout] | [INFO] [stdout] 264 | fn extract_modified_variables(&self, instruction: &TranspiledInstruction) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:138:37 [INFO] [stdout] | [INFO] [stdout] 138 | fn extract_function_call(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:168:32 [INFO] [stdout] | [INFO] [stdout] 168 | fn get_jump_targets(&self, instruction: &TranspiledInstruction, current_index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_index` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:168:69 [INFO] [stdout] | [INFO] [stdout] 168 | fn get_jump_targets(&self, instruction: &TranspiledInstruction, current_index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instruction` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/dead_code/eliminator.rs:220:40 [INFO] [stdout] | [INFO] [stdout] 220 | fn extract_local_references(&self, instruction: &TranspiledInstruction) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instruction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> crates/dotvm/compiler/src/parser/mod.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn quick_parse_tokens(source: &str) -> ParseResult> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pass` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/profiling/profiler.rs:156:39 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn profile_pass

(&mut self, pass: &mut P, input: &TranspiledFunction) -> Duration [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/profiling/profiler.rs:156:53 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn profile_pass

(&mut self, pass: &mut P, input: &TranspiledFunction) -> Duration [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/mod.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut pipeline = OptimizationPipeline::new(config, ExecutionStrategy::Sequential); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> crates/dotvm/compiler/src/parser/mod.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn quick_parse_tokens(source: &str) -> ParseResult> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let mut required_features = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/postprocessor.rs:109:46 [INFO] [stdout] | [INFO] [stdout] 109 | fn apply_aggressive_optimizations(&self, function: &mut crate::transpiler::types::TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/preprocessor.rs:247:38 [INFO] [stdout] | [INFO] [stdout] 247 | fn remove_unused_elements(&self, mut module: WasmModule) -> TranspilationResult { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/preprocessor.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | fn can_skip(&self, config: &TranspilationConfig) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/mod.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | fn can_skip(&self, config: &TranspilationConfig) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wasm_function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:98:50 [INFO] [stdout] | [INFO] [stdout] 98 | fn generate_function_name(&self, index: u32, wasm_function: &WasmFunction) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wasm_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:140:64 [INFO] [stdout] | [INFO] [stdout] 140 | fn validate_function(&self, function: &TranspiledFunction, config: &TranspilationConfig) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:211:46 [INFO] [stdout] | [INFO] [stdout] 211 | fn apply_aggressive_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:237:31 [INFO] [stdout] | [INFO] [stdout] 237 | fn optimize_locals(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/instruction_processor.rs:41:83 [INFO] [stdout] | [INFO] [stdout] 41 | ...uctions: &[WasmInstruction], config: &TranspilationConfig) -> TranspilationResult> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let mut required_features = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/postprocessor.rs:109:46 [INFO] [stdout] | [INFO] [stdout] 109 | fn apply_aggressive_optimizations(&self, function: &mut crate::transpiler::types::TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/preprocessor.rs:247:38 [INFO] [stdout] | [INFO] [stdout] 247 | fn remove_unused_elements(&self, mut module: WasmModule) -> TranspilationResult { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/preprocessor.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | fn can_skip(&self, config: &TranspilationConfig) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/mod.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | fn can_skip(&self, config: &TranspilationConfig) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wasm_function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:98:50 [INFO] [stdout] | [INFO] [stdout] 98 | fn generate_function_name(&self, index: u32, wasm_function: &WasmFunction) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wasm_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:140:64 [INFO] [stdout] | [INFO] [stdout] 140 | fn validate_function(&self, function: &TranspiledFunction, config: &TranspilationConfig) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:211:46 [INFO] [stdout] | [INFO] [stdout] 211 | fn apply_aggressive_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:237:31 [INFO] [stdout] | [INFO] [stdout] 237 | fn optimize_locals(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/instruction_processor.rs:41:83 [INFO] [stdout] | [INFO] [stdout] 41 | ...uctions: &[WasmInstruction], config: &TranspilationConfig) -> TranspilationResult> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tonic-reflection v0.11.0 [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/dotvm/compiler/src/wasm/parser/core.rs:286:83 [INFO] [stdout] | [INFO] [stdout] 286 | fn parse_element_section(&mut self, reader: wasmparser::ElementSectionReader, module: &mut WasmModule) -> WasmResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/dotvm/compiler/src/wasm/parser/core.rs:286:83 [INFO] [stdout] | [INFO] [stdout] 286 | fn parse_element_section(&mut self, reader: wasmparser::ElementSectionReader, module: &mut WasmModule) -> WasmResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/generator.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct BytecodeGenerator { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 58 | config: BytecodeGenerationConfig, [INFO] [stdout] 59 | context: GenerationContext, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_operation_context` is never used [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/math_ops.rs:266:8 [INFO] [stdout] | [INFO] [stdout] 192 | impl MathExtension { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 266 | fn create_operation_context(&self, operation: &MathOperation, function: &WasmFunction) -> Result crates/dotvm/compiler/src/extensions/simd.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 199 | impl SimdExtension { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 274 | fn create_operation_context(&self, operation: &SimdOperation, vector_type: &SimdVectorType, function: &WasmFunction) -> Result Result<(Vec Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_architecture` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/vector.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 261 | pub struct VectorExtension { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 262 | /// Target architecture (must be 512-bit) [INFO] [stdout] 263 | target_architecture: VmArchitecture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_operation_context`, `infer_data_types`, `infer_vector_type_from_params`, and `infer_matrix_type_from_params` are never used [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/vector.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 270 | impl VectorExtension { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 361 | fn create_operation_context(&self, operation: &VectorOperation, function: &WasmFunction) -> Result Result<(Vec, VectorDataType, Vec<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | fn infer_vector_type_from_params(&self, params: &[WasmValueType]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 422 | fn infer_matrix_type_from_params(&self, params: &[WasmValueType]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scheduler` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct OptimizationPipeline { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 67 | passes: Vec crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl ConstantFolder { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | fn fold_pass(&mut self, instructions: &[TranspiledInstruction], context: &mut ConstantContext) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn try_fold_arithmetic(&self, instructions: &[TranspiledInstruction], index: usize, context: &ConstantContext) -> Option<(Vec Option<(Vec Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn update_context(&self, instruction: &TranspiledInstruction, context: &mut ConstantContext) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn extract_constant(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn fold_binary_operation(&self, op_instruction: &TranspiledInstruction, a: ConstantValue, b: ConstantValue) -> Option Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn extract_store_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn extract_load_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn create_dup_instruction(&self) -> TranspiledInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | fn extract_variable_load(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn extract_variable_assignment(&self, instruction: &TranspiledInstruction) -> Option<(usize, ConstantValue)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn extract_modified_variables(&self, instruction: &TranspiledInstruction) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_arch` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/peephole/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PeepholeOptimizer { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 27 | target_arch: VmArchitecture, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/profiling/suggestions.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | struct SuggestionRule { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 59 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `supports_threads` and `supports_memory64` are never used [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/config.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 523 | trait VmArchitectureExt { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 524 | fn supports_simd(&self) -> bool; [INFO] [stdout] 525 | fn supports_threads(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 526 | fn supports_memory64(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_depth` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/analysis/control_flow.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct ControlFlowInfo { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | max_depth: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ControlFlowInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute_stage` is never used [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/mod.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 149 | impl TranspilationPipeline { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | fn execute_stage(&mut self, stage: &mut S, input: S::Input, stage_name: &str) -> TranspilationResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `opcode_mapper` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 175 | pub struct Analyzer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 176 | /// Opcode mapper for architecture analysis [INFO] [stdout] 177 | opcode_mapper: OpcodeMapper, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deep_analysis` and `generate_hints` are never read [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:699:5 [INFO] [stdout] | [INFO] [stdout] 695 | struct AnalysisConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 699 | deep_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 700 | /// Whether to generate optimization hints [INFO] [stdout] 701 | generate_hints: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalysisConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl FunctionProcessor { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | fn validate_function(&self, function: &TranspiledFunction, config: &TranspilationConfig) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn optimize_function(&mut self, function: &mut TranspiledFunction, config: &TranspilationConfig) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn apply_basic_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn apply_standard_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn apply_aggressive_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn remove_redundant_moves(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn optimize_locals(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_architecture` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/wasm/mapping.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct OpcodeMapper { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 30 | /// Target architecture [INFO] [stdout] 31 | target_architecture: VmArchitecture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/codegen/generator.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct BytecodeGenerator { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 58 | config: BytecodeGenerationConfig, [INFO] [stdout] 59 | context: GenerationContext, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_operation_context` is never used [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/math_ops.rs:266:8 [INFO] [stdout] | [INFO] [stdout] 192 | impl MathExtension { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 266 | fn create_operation_context(&self, operation: &MathOperation, function: &WasmFunction) -> Result crates/dotvm/compiler/src/extensions/simd.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 199 | impl SimdExtension { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 274 | fn create_operation_context(&self, operation: &SimdOperation, vector_type: &SimdVectorType, function: &WasmFunction) -> Result Result<(Vec Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_architecture` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/vector.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 261 | pub struct VectorExtension { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 262 | /// Target architecture (must be 512-bit) [INFO] [stdout] 263 | target_architecture: VmArchitecture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_operation_context`, `infer_data_types`, `infer_vector_type_from_params`, and `infer_matrix_type_from_params` are never used [INFO] [stdout] --> crates/dotvm/compiler/src/extensions/vector.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 270 | impl VectorExtension { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 361 | fn create_operation_context(&self, operation: &VectorOperation, function: &WasmFunction) -> Result Result<(Vec, VectorDataType, Vec<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | fn infer_vector_type_from_params(&self, params: &[WasmValueType]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 422 | fn infer_matrix_type_from_params(&self, params: &[WasmValueType]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scheduler` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/framework/pipeline.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct OptimizationPipeline { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 67 | passes: Vec crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl ConstantFolder { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | fn fold_pass(&mut self, instructions: &[TranspiledInstruction], context: &mut ConstantContext) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn try_fold_arithmetic(&self, instructions: &[TranspiledInstruction], index: usize, context: &ConstantContext) -> Option<(Vec Option<(Vec Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn update_context(&self, instruction: &TranspiledInstruction, context: &mut ConstantContext) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn extract_constant(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn fold_binary_operation(&self, op_instruction: &TranspiledInstruction, a: ConstantValue, b: ConstantValue) -> Option Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn extract_store_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn extract_load_address(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn create_dup_instruction(&self) -> TranspiledInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | fn extract_variable_load(&self, instruction: &TranspiledInstruction) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | fn create_constant_instruction(&self, value: ConstantValue) -> TranspiledInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn extract_variable_assignment(&self, instruction: &TranspiledInstruction) -> Option<(usize, ConstantValue)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn extract_modified_variables(&self, instruction: &TranspiledInstruction) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `constants` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:290:5 [INFO] [stdout] | [INFO] [stdout] 288 | struct ConstantContext { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 289 | /// Map from variable ID to constant value [INFO] [stdout] 290 | constants: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConstantContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_constant`, `set_constant`, and `invalidate` are never used [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:298:8 [INFO] [stdout] | [INFO] [stdout] 293 | impl ConstantContext { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 298 | fn get_constant(&self, var_id: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn set_constant(&mut self, var_id: usize, value: ConstantValue) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | fn invalidate(&mut self, var_id: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Integer`, `Float`, and `Boolean` are never constructed [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/constant_folding/mod.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 313 | enum ConstantValue { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 314 | Integer(i64), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 315 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 316 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConstantValue` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_arch` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/passes/peephole/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PeepholeOptimizer { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 27 | target_arch: VmArchitecture, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/optimizer/profiling/suggestions.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | struct SuggestionRule { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 59 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `supports_threads` and `supports_memory64` are never used [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/config.rs:525:8 [INFO] [stdout] | [INFO] [stdout] 523 | trait VmArchitectureExt { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 524 | fn supports_simd(&self) -> bool; [INFO] [stdout] 525 | fn supports_threads(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 526 | fn supports_memory64(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_depth` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/analysis/control_flow.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct ControlFlowInfo { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | max_depth: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ControlFlowInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute_stage` is never used [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/mod.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 149 | impl TranspilationPipeline { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | fn execute_stage(&mut self, stage: &mut S, input: S::Input, stage_name: &str) -> TranspilationResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `opcode_mapper` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 175 | pub struct Analyzer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 176 | /// Opcode mapper for architecture analysis [INFO] [stdout] 177 | opcode_mapper: OpcodeMapper, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deep_analysis` and `generate_hints` are never read [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/pipeline/analyzer.rs:699:5 [INFO] [stdout] | [INFO] [stdout] 695 | struct AnalysisConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 699 | deep_analysis: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 700 | /// Whether to generate optimization hints [INFO] [stdout] 701 | generate_hints: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalysisConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> crates/dotvm/compiler/src/transpiler/processors/function_processor.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl FunctionProcessor { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | fn validate_function(&self, function: &TranspiledFunction, config: &TranspilationConfig) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn optimize_function(&mut self, function: &mut TranspiledFunction, config: &TranspilationConfig) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn apply_basic_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn apply_standard_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn apply_aggressive_optimizations(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn remove_redundant_moves(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn optimize_locals(&self, function: &mut TranspiledFunction) -> TranspilationResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_architecture` is never read [INFO] [stdout] --> crates/dotvm/compiler/src/wasm/mapping.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct OpcodeMapper { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 30 | /// Target architecture [INFO] [stdout] 31 | target_architecture: VmArchitecture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dotvm-tools v0.1.0 (/opt/rustwide/workdir/crates/dotvm/tools) [INFO] [stdout] warning: unused variable: `stats` [INFO] [stdout] --> crates/dotvm/compiler/tests/integration_tests.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let stats = optimizer.stats(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stats` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/tests/integration_tests.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut transpiler = NewTranspilationEngine::with_architecture(arch); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/dotvm/compiler/tests/integration_tests.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut transpiler = NewTranspilationEngine::with_architecture(arch); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/dotvm/tools/src/cli/run.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> crates/dotvm/tools/src/cli/transpile.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Priority` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/cancellation.rs:19:59 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::async_runtime::scheduler::{AsyncTaskScheduler, Priority}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_timer::Delay` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/executor.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use futures_timer::Delay; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_timer::Delay` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/polling.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use futures_timer::Delay; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TaskState` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:17:83 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::async_runtime::lib::{RuntimeError, RuntimeResult, TaskId, TaskMetrics, TaskState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `event_downcast` [INFO] [stdout] --> crates/dotvm/runtime/src/events/filter.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::events::lib::{Event, event_downcast}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Priority` and `event_downcast` [INFO] [stdout] --> crates/dotvm/runtime/src/events/queue.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::events::lib::{Event, Priority, event_downcast}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream::FuturesUnordered` [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/instant_finality.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 24 | use futures::{StreamExt, stream::FuturesUnordered}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/instant_finality.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/dotvm/runtime/src/rollback/recovery.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WasmExport`, `WasmFunction`, and `WasmImport` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/module.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | use dotvm_compiler::wasm::{WasmExport, WasmFunction, WasmImport, WasmModule as CompilerModule}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/module.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WasmError` and `WasmResult` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/transpiler.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | use dotvm_compiler::wasm::{WasmError, WasmInstruction, WasmModule, WasmParser, WasmResult}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_wasm` is never used [INFO] [stdout] --> crates/dotvm/tools/src/cli/transpile.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 99 | impl TranspilationPipeline { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 248 | fn parse_wasm(&self, wasm_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | Some(sig) => format!("Signature: {}", base64::encode(sig)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:135:62 [INFO] [stdout] | [INFO] [stdout] 135 | "signature": self.signature.as_ref().map(base64::encode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:43:60 [INFO] [stdout] | [INFO] [stdout] 43 | Some(sig) => serializer.serialize_str(&base64::encode(sig)), // Base64 for web-safe encoding [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | Some(sig) => base64::decode(&sig).map(Some).map_err(serde::de::Error::custom), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_wasm` is never used [INFO] [stdout] --> crates/dotvm/tools/src/cli/transpile.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 99 | impl TranspilationPipeline { [INFO] [stdout] | -------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 248 | fn parse_wasm(&self, wasm_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AtomicUsize` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/cancellation.rs:322:41 [INFO] [stdout] | [INFO] [stdout] 322 | use std::sync::atomic::{AtomicBool, AtomicUsize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorKind` [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/instant_finality.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | use std::io::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RollbackManager` [INFO] [stdout] --> crates/dotvm/runtime/src/rollback/recovery.rs:243:34 [INFO] [stdout] | [INFO] [stdout] 243 | use crate::rollback::state::{RollbackManager, RollbackTrigger, StateRollback}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WasmExport`, `WasmFunction`, and `WasmImport` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/module.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | use dotvm_compiler::wasm::{WasmExport, WasmFunction, WasmImport, WasmModule as CompilerModule}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/module.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WasmError` and `WasmResult` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/transpiler.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | use dotvm_compiler::wasm::{WasmError, WasmInstruction, WasmModule, WasmParser, WasmResult}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | Some(sig) => format!("Signature: {}", base64::encode(sig)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:135:62 [INFO] [stdout] | [INFO] [stdout] 135 | "signature": self.signature.as_ref().map(base64::encode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:43:60 [INFO] [stdout] | [INFO] [stdout] 43 | Some(sig) => serializer.serialize_str(&base64::encode(sig)), // Base64 for web-safe encoding [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/finality_confirmation.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | Some(sig) => base64::decode(&sig).map(Some).map_err(serde::de::Error::custom), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/instant_finality.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | use futures::{StreamExt, stream::FuturesUnordered}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let task = map.remove(&task_id).ok_or_else(|| RuntimeError::Internal(format!("Task {task_id} not found")))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `locals` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/execution.rs:792:86 [INFO] [stdout] | [INFO] [stdout] 792 | ...nction_name: Option, locals: Vec, return_address: usize) -> WasmResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_locals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_address` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/execution.rs:792:106 [INFO] [stdout] | [INFO] [stdout] 792 | ... locals: Vec, return_address: usize) -> WasmResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_return_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `export_meta` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/instance.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 181 | for (name, export_meta) in &module.exports { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_export_meta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/instance.rs:373:14 [INFO] [stdout] | [INFO] [stdout] 373 | for (i, (arg, expected_type)) in args.iter().zip(&func.param_types).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_index` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/transpiler.rs:304:37 [INFO] [stdout] | [INFO] [stdout] 304 | WasmInstruction::Call { function_index } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `function_index: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let task = map.remove(&task_id).ok_or_else(|| RuntimeError::Internal(format!("Task {task_id} not found")))?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task_id1` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:485:13 [INFO] [stdout] | [INFO] [stdout] 485 | let task_id1 = scheduler.schedule(test_future(), Priority::Low).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_task_id1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task_id2` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | let task_id2 = scheduler.schedule(test_future(), Priority::Normal).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_task_id2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task_id3` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | let task_id3 = scheduler.schedule(test_future(), Priority::High).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_task_id3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task_id4` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/scheduler.rs:488:13 [INFO] [stdout] | [INFO] [stdout] 488 | let task_id4 = scheduler.schedule(test_future(), Priority::Critical).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_task_id4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CancellationMetrics` is more private than the item `TaskHandle::new` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/cancellation.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(token: CancellationToken, scheduler: Arc, executor: Arc, metrics: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `TaskHandle::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `CancellationMetrics` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/cancellation.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 110 | struct CancellationMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_bytecode_mut` and `get_file_entry_mut` are never used [INFO] [stdout] --> crates/dotvm/runtime/src/transpiler_integration.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 212 | impl BytecodeCache { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 226 | fn get_bytecode_mut(&mut self, key: &u64) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn get_file_entry_mut(&mut self, path: &Path) -> Option<&CachedFileEntry> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cached_at` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/transpiler_integration.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 277 | struct CachedFileEntry { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 280 | cached_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedFileEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stack_height` and `result_types` are never read [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct BlockFrame { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | stack_height: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 45 | /// Expected result types [INFO] [stdout] 46 | result_types: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockFrame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Else` is never constructed [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 51 | enum BlockType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | Else, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_function_locals_from_metadata` and `call_host_function` are never used [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:813:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl WasmInterpreter { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 813 | fn parse_function_locals_from_metadata(&self, function_index: u32, context: &WasmExecutionContext) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 833 | fn call_host_function(&mut self, host_func: &Box WasmResult> + Send + Sync>, args: &[Value], context: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transpiler` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/runtime.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct DotVMWasmRuntime { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 264 | transpiler: RwLock, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DotVMWasmRuntime` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/logging_audit.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_logs(&self) -> Result>, String> { [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] 52 | fn get_logs(&self) -> Result>, String> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checkpoint1` [INFO] [stdout] --> crates/dotvm/runtime/src/rollback/checkpoint.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let checkpoint1 = checkpoint_manager.create_checkpoint(state1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checkpoint1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `locals` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/execution.rs:792:86 [INFO] [stdout] | [INFO] [stdout] 792 | ...nction_name: Option, locals: Vec, return_address: usize) -> WasmResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_locals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_address` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/execution.rs:792:106 [INFO] [stdout] | [INFO] [stdout] 792 | ... locals: Vec, return_address: usize) -> WasmResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_return_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `export_meta` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/instance.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 181 | for (name, export_meta) in &module.exports { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_export_meta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/instance.rs:373:14 [INFO] [stdout] | [INFO] [stdout] 373 | for (i, (arg, expected_type)) in args.iter().zip(&func.param_types).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_index` [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/transpiler.rs:304:37 [INFO] [stdout] | [INFO] [stdout] 304 | WasmInstruction::Call { function_index } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `function_index: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CancellationMetrics` is more private than the item `TaskHandle::new` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/cancellation.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(token: CancellationToken, scheduler: Arc, executor: Arc, metrics: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `TaskHandle::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `CancellationMetrics` is only usable at visibility `pub(self)` [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/cancellation.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 110 | struct CancellationMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `long_task` is never used [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/executor.rs:485:14 [INFO] [stdout] | [INFO] [stdout] 485 | async fn long_task() -> RuntimeResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancellable_task` is never used [INFO] [stdout] --> crates/dotvm/runtime/src/async_runtime/polling.rs:503:8 [INFO] [stdout] | [INFO] [stdout] 503 | fn cancellable_task(flag: Arc) -> impl std::future::Future> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/events/filter.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 153 | struct OtherEvent { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 154 | value: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OtherEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/events/prioritization.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 114 | struct TestEvent1 { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 115 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestEvent1` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/events/prioritization.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 121 | struct TestEvent2 { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 122 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestEvent2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/events/prioritization.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 128 | struct PriorityOverrideEvent { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 129 | value: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriorityOverrideEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `persist_log` is never used [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/logging_audit.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 45 | impl AuditLogger { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | async fn persist_log(entry: &AuditLogEntry) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_bytecode_mut` and `get_file_entry_mut` are never used [INFO] [stdout] --> crates/dotvm/runtime/src/transpiler_integration.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 212 | impl BytecodeCache { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 226 | fn get_bytecode_mut(&mut self, key: &u64) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn get_file_entry_mut(&mut self, path: &Path) -> Option<&CachedFileEntry> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cached_at` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/transpiler_integration.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 277 | struct CachedFileEntry { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 280 | cached_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CachedFileEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stack_height` and `result_types` are never read [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct BlockFrame { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | stack_height: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 45 | /// Expected result types [INFO] [stdout] 46 | result_types: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockFrame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Else` is never constructed [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 51 | enum BlockType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | Else, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_function_locals_from_metadata` and `call_host_function` are never used [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/interpreter.rs:813:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl WasmInterpreter { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 813 | fn parse_function_locals_from_metadata(&self, function_index: u32, context: &WasmExecutionContext) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 833 | fn call_host_function(&mut self, host_func: &Box WasmResult> + Send + Sync>, args: &[Value], context: ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transpiler` is never read [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/runtime.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct DotVMWasmRuntime { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 264 | transpiler: RwLock, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DotVMWasmRuntime` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_minimal_wasm` is never used [INFO] [stdout] --> crates/dotvm/runtime/src/wasm/runtime.rs:1112:8 [INFO] [stdout] | [INFO] [stdout] 1112 | fn create_minimal_wasm() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> crates/dotvm/runtime/src/finalizer/logging_audit.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_logs(&self) -> Result>, String> { [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] 52 | fn get_logs(&self) -> Result>, String> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> crates/dotvm/runtime/src/main.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let req = request.into_inner(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> crates/dotvm/runtime/src/main.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let req = request.into_inner(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `enable_reflection` and `enable_health_check` are never read [INFO] [stdout] --> crates/dotvm/runtime/src/config.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct RuntimeConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 24 | pub bind_address: SocketAddr, [INFO] [stdout] 25 | pub enable_reflection: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub enable_health_check: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeployParaDotRequest` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:538:12 [INFO] [stdout] | [INFO] [stdout] 538 | pub struct DeployParaDotRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotMetadata` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:552:12 [INFO] [stdout] | [INFO] [stdout] 552 | pub struct ParaDotMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceRequirements` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:564:12 [INFO] [stdout] | [INFO] [stdout] 564 | pub struct ResourceRequirements { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeployParaDotResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:576:12 [INFO] [stdout] | [INFO] [stdout] 576 | pub struct DeployParaDotResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListParaDotsRequest` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:586:12 [INFO] [stdout] | [INFO] [stdout] 586 | pub struct ListParaDotsRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotFilter` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:594:12 [INFO] [stdout] | [INFO] [stdout] 594 | pub struct ParaDotFilter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListParaDotsResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | pub struct ListParaDotsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotInfo` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:614:12 [INFO] [stdout] | [INFO] [stdout] 614 | pub struct ParaDotInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotStats` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:628:12 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct ParaDotStats { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecuteParaDotRequest` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:640:12 [INFO] [stdout] | [INFO] [stdout] 640 | pub struct ExecuteParaDotRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecuteParaDotResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:652:12 [INFO] [stdout] | [INFO] [stdout] 652 | pub struct ExecuteParaDotResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> crates/dotvm/runtime/src/main.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let req = request.into_inner(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> crates/dotvm/runtime/src/main.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let req = request.into_inner(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `enable_reflection` and `enable_health_check` are never read [INFO] [stdout] --> crates/dotvm/runtime/src/config.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct RuntimeConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 24 | pub bind_address: SocketAddr, [INFO] [stdout] 25 | pub enable_reflection: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub enable_health_check: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeployParaDotRequest` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:538:12 [INFO] [stdout] | [INFO] [stdout] 538 | pub struct DeployParaDotRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotMetadata` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:552:12 [INFO] [stdout] | [INFO] [stdout] 552 | pub struct ParaDotMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceRequirements` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:564:12 [INFO] [stdout] | [INFO] [stdout] 564 | pub struct ResourceRequirements { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeployParaDotResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:576:12 [INFO] [stdout] | [INFO] [stdout] 576 | pub struct DeployParaDotResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListParaDotsRequest` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:586:12 [INFO] [stdout] | [INFO] [stdout] 586 | pub struct ListParaDotsRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotFilter` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:594:12 [INFO] [stdout] | [INFO] [stdout] 594 | pub struct ParaDotFilter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListParaDotsResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | pub struct ListParaDotsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotInfo` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:614:12 [INFO] [stdout] | [INFO] [stdout] 614 | pub struct ParaDotInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParaDotStats` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:628:12 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct ParaDotStats { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecuteParaDotRequest` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:640:12 [INFO] [stdout] | [INFO] [stdout] 640 | pub struct ExecuteParaDotRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecuteParaDotResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/dotvm-runtime-7b029984294865e2/out/vm_service.rs:652:12 [INFO] [stdout] | [INFO] [stdout] 652 | pub struct ExecuteParaDotResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 57s [INFO] running `Command { std: "docker" "inspect" "f0ac454c71f15f62dd62be55baccf89594b22aae75bfa021c7ff929069e35e60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0ac454c71f15f62dd62be55baccf89594b22aae75bfa021c7ff929069e35e60", kill_on_drop: false }` [INFO] [stdout] f0ac454c71f15f62dd62be55baccf89594b22aae75bfa021c7ff929069e35e60