[INFO] fetching crate remdb 0.2.9... [INFO] checking remdb-0.2.9 against master#2b112efcccf831c0e0fbaa6470047c7067f12801 for pr-150727-1 [INFO] extracting crate remdb 0.2.9 into /workspace/builds/worker-4-tc1/source [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate remdb 0.2.9 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate remdb 0.2.9 [INFO] tweaked toml for crates.io crate remdb 0.2.9 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate remdb 0.2.9 on toolchain 2b112efcccf831c0e0fbaa6470047c7067f12801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b112efcccf831c0e0fbaa6470047c7067f12801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate remdb 0.2.9 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" "+2b112efcccf831c0e0fbaa6470047c7067f12801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `panic` setting is ignored for `test` profile [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serial_test_derive v3.3.1 [INFO] [stderr] Downloaded plotters-svg v0.3.7 [INFO] [stderr] Downloaded serial_test v3.3.1 [INFO] [stderr] Downloaded sdd v3.0.10 [INFO] [stderr] Downloaded is-terminal v0.4.17 [INFO] [stderr] Downloaded cast v0.3.0 [INFO] [stderr] Downloaded remdb-macros v0.2.9 [INFO] [stderr] Downloaded plotters-backend v0.3.7 [INFO] [stderr] Downloaded find-msvc-tools v0.1.7 [INFO] [stderr] Downloaded anes v0.1.6 [INFO] [stderr] Downloaded ciborium-ll v0.2.2 [INFO] [stderr] Downloaded ciborium v0.2.2 [INFO] [stderr] Downloaded ciborium-io v0.2.2 [INFO] [stderr] Downloaded cc v1.2.52 [INFO] [stderr] Downloaded criterion-plot v0.5.0 [INFO] [stderr] Downloaded plotters v0.3.7 [INFO] [stderr] Downloaded scc v2.4.0 [INFO] [stderr] Downloaded oorandom v11.1.5 [INFO] [stderr] Downloaded criterion v0.5.1 [INFO] [stderr] Downloaded tinytemplate v1.2.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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2b112efcccf831c0e0fbaa6470047c7067f12801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cde0b9ebe4988831ab9a2c8b2a6087ebdf443d4eb03a732b600bbb23ca1cfd0 [INFO] running `Command { std: "docker" "start" "-a" "0cde0b9ebe4988831ab9a2c8b2a6087ebdf443d4eb03a732b600bbb23ca1cfd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cde0b9ebe4988831ab9a2c8b2a6087ebdf443d4eb03a732b600bbb23ca1cfd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cde0b9ebe4988831ab9a2c8b2a6087ebdf443d4eb03a732b600bbb23ca1cfd0", kill_on_drop: false }` [INFO] [stdout] 0cde0b9ebe4988831ab9a2c8b2a6087ebdf443d4eb03a732b600bbb23ca1cfd0 [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2b112efcccf831c0e0fbaa6470047c7067f12801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de164a6c165d97c6d2dfacb00a35288582b14a26e5a9bf74537ef7721055f0fb [INFO] running `Command { std: "docker" "start" "-a" "de164a6c165d97c6d2dfacb00a35288582b14a26e5a9bf74537ef7721055f0fb", kill_on_drop: false }` [INFO] [stderr] warning: `panic` setting is ignored for `test` profile [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling zmij v1.0.14 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking sdd v3.0.10 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking scc v2.4.0 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking is-terminal v0.4.17 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Compiling zerocopy-derive v0.8.33 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling remdb-macros v0.2.9 [INFO] [stderr] Compiling serial_test_derive v3.3.1 [INFO] [stderr] Checking serial_test v3.3.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking remdb v0.2.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `alloc::string::String` [INFO] [stdout] --> src/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DataType as CrateDataType` [INFO] [stdout] --> src/table.rs:2:97 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{types::{RecordHeader, RecordStatus, TableDef, Value, Result, RemDbError, DataType}, DataType as CrateDataType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time::Duration` [INFO] [stdout] --> src/platform/posix.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use core::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time::Duration` [INFO] [stdout] --> src/platform/posix.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use core::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv6Addr` [INFO] [stdout] --> src/pubsub/udp.rs:73:69 [INFO] [stdout] | [INFO] [stdout] 73 | use std::net::{UdpSocket as StdUdpSocket, SocketAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::PubSubError` [INFO] [stdout] --> src/pubsub/publisher.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::PubSubError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FrameType` [INFO] [stdout] --> src/pubsub/publisher.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use super::protocol::{ProtocolFrame, FrameType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/pubsub/ttl_ringbuffer.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{SystemTime, Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/pubsub/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PubSubConfig` and `UdpMode` [INFO] [stdout] --> src/ha/replication.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::pubsub::{PubSubConfig, UdpMode}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PubSubConfig`, `PubSubError`, and `UdpMode` [INFO] [stdout] --> src/ha/heartbeat.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::pubsub::{PubSubConfig, UdpMode, PubSubError}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time::Duration` [INFO] [stdout] --> src/ha/heartbeat.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> src/ha/heartbeat.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HAError` [INFO] [stdout] --> src/ha/role.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ha::{Result, HAError}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PubSubError` [INFO] [stdout] --> src/ha/role.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::pubsub::{PubSubConfig, UdpMode, PubSubError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/ha/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Mutex` [INFO] [stdout] --> src/time_series/index.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{sync::RwLock, collections::HashMap, sync::Mutex}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/types.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn to_sql_type(&self, size: usize) -> &'static str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/types.rs:293:23 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn to_iso8601(timestamp: &super::db_timestamp) -> alloc::string::String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/types.rs:300:53 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn to_char(timestamp: &super::db_timestamp, format: &str) -> alloc::string::String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/table.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/table.rs:582:13 [INFO] [stdout] | [INFO] [stdout] 582 | let table_name = self.def.name; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_size` [INFO] [stdout] --> src/table.rs:583:13 [INFO] [stdout] | [INFO] [stdout] 583 | let record_size = self.record_size; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slot_id` is never read [INFO] [stdout] --> src/table.rs:472:27 [INFO] [stdout] | [INFO] [stdout] 472 | let mut slot_id = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last` [INFO] [stdout] --> src/table.rs:1997:44 [INFO] [stdout] | [INFO] [stdout] 1997 | for (window_start, (sum, min, max, last, count)) in window_aggregates { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:985:17 [INFO] [stdout] | [INFO] [stdout] 985 | let mut node_mut = &mut *node_ptr; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1035:13 [INFO] [stdout] | [INFO] [stdout] 1035 | let mut node_mut = &mut *node_ptr.as_ptr(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1223:17 [INFO] [stdout] | [INFO] [stdout] 1223 | let mut root = self.root.expect("Root node unexpectedly None"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index.rs:1544:37 [INFO] [stdout] | [INFO] [stdout] 1544 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_size` [INFO] [stdout] --> src/index.rs:1544:53 [INFO] [stdout] | [INFO] [stdout] 1544 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1584:17 [INFO] [stdout] | [INFO] [stdout] 1584 | let mut node_mut = &mut *node_ptr; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1632:13 [INFO] [stdout] | [INFO] [stdout] 1632 | let mut node_mut = &mut *node_ptr.as_ptr(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index.rs:2207:37 [INFO] [stdout] | [INFO] [stdout] 2207 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_size` [INFO] [stdout] --> src/index.rs:2207:53 [INFO] [stdout] | [INFO] [stdout] 2207 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:937:41 [INFO] [stdout] | [INFO] [stdout] 937 | ... unsafe { value.bool = bool_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:942:41 [INFO] [stdout] | [INFO] [stdout] 942 | ... unsafe { value.i8 = i8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:947:41 [INFO] [stdout] | [INFO] [stdout] 947 | ... unsafe { value.u8 = u8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:952:41 [INFO] [stdout] | [INFO] [stdout] 952 | ... unsafe { value.i16 = i16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:957:41 [INFO] [stdout] | [INFO] [stdout] 957 | ... unsafe { value.u16 = u16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:962:41 [INFO] [stdout] | [INFO] [stdout] 962 | ... unsafe { value.i32 = i32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:967:41 [INFO] [stdout] | [INFO] [stdout] 967 | ... unsafe { value.u32 = u32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:972:41 [INFO] [stdout] | [INFO] [stdout] 972 | ... unsafe { value.i64 = i64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:977:41 [INFO] [stdout] | [INFO] [stdout] 977 | ... unsafe { value.u64 = u64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:982:41 [INFO] [stdout] | [INFO] [stdout] 982 | ... unsafe { value.float32 = float32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:987:41 [INFO] [stdout] | [INFO] [stdout] 987 | ... unsafe { value.float64 = float64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:995:41 [INFO] [stdout] | [INFO] [stdout] 995 | ... unsafe { value.string = string_data; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:1000:41 [INFO] [stdout] | [INFO] [stdout] 1000 | ... unsafe { value.timestamp = timestamp_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:1011:41 [INFO] [stdout] | [INFO] [stdout] 1011 | ... unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `primary_key_flag` [INFO] [stdout] --> src/transaction.rs:920:33 [INFO] [stdout] | [INFO] [stdout] 920 | ... let primary_key_flag = (constraints & 0b0001) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_primary_key_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_null_flag` [INFO] [stdout] --> src/transaction.rs:921:33 [INFO] [stdout] | [INFO] [stdout] 921 | ... let not_null_flag = (constraints & 0b0010) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_null_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unique_flag` [INFO] [stdout] --> src/transaction.rs:922:33 [INFO] [stdout] | [INFO] [stdout] 922 | ... let unique_flag = (constraints & 0b0100) != 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_increment_flag` [INFO] [stdout] --> src/transaction.rs:923:33 [INFO] [stdout] | [INFO] [stdout] 923 | ... let auto_increment_flag = (constraints & 0b1000) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_increment_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:1068:9 [INFO] [stdout] | [INFO] [stdout] 1068 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_parser.rs:966:40 [INFO] [stdout] | [INFO] [stdout] 966 | Expression::Field { alias: mut expr_alias, name, .. } => { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_parser.rs:972:47 [INFO] [stdout] | [INFO] [stdout] 972 | Expression::FunctionCall { alias: mut expr_alias, name, args, .. } => { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_parser.rs:979:43 [INFO] [stdout] | [INFO] [stdout] 979 | Expression::Constant { alias: mut expr_alias, value, .. } => { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_pos` [INFO] [stdout] --> src/sql/query_parser.rs:898:17 [INFO] [stdout] | [INFO] [stdout] 898 | let saved_pos = self.position; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_col` [INFO] [stdout] --> src/sql/query_parser.rs:899:17 [INFO] [stdout] | [INFO] [stdout] 899 | let saved_col = self.column; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_pos` [INFO] [stdout] --> src/sql/query_parser.rs:1152:13 [INFO] [stdout] | [INFO] [stdout] 1152 | let saved_pos = self.position; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_col` [INFO] [stdout] --> src/sql/query_parser.rs:1153:13 [INFO] [stdout] | [INFO] [stdout] 1153 | let saved_col = self.column; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tz_param` [INFO] [stdout] --> src/sql/query_parser.rs:1524:17 [INFO] [stdout] | [INFO] [stdout] 1524 | let tz_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tz_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_param` [INFO] [stdout] --> src/sql/query_parser.rs:1535:17 [INFO] [stdout] | [INFO] [stdout] 1535 | let time_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format_param` [INFO] [stdout] --> src/sql/query_parser.rs:1540:17 [INFO] [stdout] | [INFO] [stdout] 1540 | let format_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_format_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_param` [INFO] [stdout] --> src/sql/query_parser.rs:1551:17 [INFO] [stdout] | [INFO] [stdout] 1551 | let time_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_param` [INFO] [stdout] --> src/sql/query_parser.rs:1562:17 [INFO] [stdout] | [INFO] [stdout] 1562 | let time_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tz_value` [INFO] [stdout] --> src/sql/query_parser.rs:1594:21 [INFO] [stdout] | [INFO] [stdout] 1594 | let tz_value = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tz_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let mut matched_rows: Vec> = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/sql/query_executor.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | for expr in &columns { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:331:47 [INFO] [stdout] | [INFO] [stdout] 325 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 331 | let is_less = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:358:50 [INFO] [stdout] | [INFO] [stdout] 352 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 358 | let is_greater = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mean` [INFO] [stdout] --> src/sql/query_executor.rs:512:29 [INFO] [stdout] | [INFO] [stdout] 512 | let mean = sum / count as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mean` [INFO] [stdout] --> src/sql/query_executor.rs:529:29 [INFO] [stdout] | [INFO] [stdout] 529 | let mean = sum / count as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_values` [INFO] [stdout] --> src/sql/query_executor.rs:571:5 [INFO] [stdout] | [INFO] [stdout] 571 | record_values: &[TypedValue], [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/sql/query_executor.rs:681:45 [INFO] [stdout] | [INFO] [stdout] 681 | let iterate_result = table.iterate(|id, record_ptr| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name_part` [INFO] [stdout] --> src/sql/query_executor.rs:824:22 [INFO] [stdout] | [INFO] [stdout] 824 | let (table_name_part, field_name_part) = if name.contains('.') { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name_part` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:1085:49 [INFO] [stdout] | [INFO] [stdout] 1008 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 1085 | condition_matches = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:1354:53 [INFO] [stdout] | [INFO] [stdout] 1281 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 1354 | condition_matches = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:1255:37 [INFO] [stdout] | [INFO] [stdout] 1255 | ... let mut buf = [0; MAX_STRING_LEN]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:1431:41 [INFO] [stdout] | [INFO] [stdout] 1431 | ... let mut buf = [0; MAX_STRING_LEN]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:964:13 [INFO] [stdout] | [INFO] [stdout] 964 | let mut fields = main_table.def.fields [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_id` [INFO] [stdout] --> src/sql/query_executor.rs:1298:41 [INFO] [stdout] | [INFO] [stdout] 1298 | main_table.iterate(|main_id, main_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `join_id` [INFO] [stdout] --> src/sql/query_executor.rs:1283:58 [INFO] [stdout] | [INFO] [stdout] 1283 | let iterate_result = join_table.iterate(|join_id, join_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_join_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name_part` [INFO] [stdout] --> src/sql/query_executor.rs:1448:42 [INFO] [stdout] | [INFO] [stdout] 1448 | ... let (table_name_part, field_name_part) = if name.contains('.') { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name_part` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `join_id` [INFO] [stdout] --> src/sql/query_executor.rs:1029:37 [INFO] [stdout] | [INFO] [stdout] 1029 | join_table.iterate(|join_id, join_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_join_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name_part` [INFO] [stdout] --> src/sql/query_executor.rs:1190:42 [INFO] [stdout] | [INFO] [stdout] 1190 | ... let (table_name_part, field_name_part) = if name.contains('.') { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name_part` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_id` [INFO] [stdout] --> src/sql/query_executor.rs:1009:50 [INFO] [stdout] | [INFO] [stdout] 1009 | let iterate_result = main_table.iterate(|main_id, main_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/sql/query_executor.rs:1921:18 [INFO] [stdout] | [INFO] [stdout] 1921 | fn execute_count(args: &[TypedValue]) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/sql/query_executor.rs:2240:9 [INFO] [stdout] | [INFO] [stdout] 2240 | for y in 1970..year { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_key` [INFO] [stdout] --> src/sql/query_executor.rs:3463:10 [INFO] [stdout] | [INFO] [stdout] 3463 | for (group_key, group_rows) in groups { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4325:62 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4325 | DataType::UInt8 => crate::types::Value { u8: unsafe { *field_ptr as u8 } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4326:64 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4326 | DataType::UInt16 => crate::types::Value { u16: unsafe { core::ptr::read_unaligned(field_ptr as *const u16) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4327:64 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4327 | DataType::UInt32 => crate::types::Value { u32: unsafe { core::ptr::read_unaligned(field_ptr as *const u32) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4328:64 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4328 | DataType::UInt64 => crate::types::Value { u64: unsafe { core::ptr::read_unaligned(field_ptr as *const u64) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4329:61 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4329 | DataType::Int8 => crate::types::Value { i8: unsafe { core::ptr::read_unaligned(field_ptr as *const i8) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4330:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4330 | DataType::Int16 => crate::types::Value { i16: unsafe { core::ptr::read_unaligned(field_ptr as *const i16) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4331:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4331 | DataType::Int32 => crate::types::Value { i32: unsafe { core::ptr::read_unaligned(field_ptr as *const i32) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4332:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4332 | DataType::Int64 => crate::types::Value { i64: unsafe { core::ptr::read_unaligned(field_ptr as *const i64) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4333:69 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4333 | DataType::Float32 => crate::types::Value { float32: unsafe { core::ptr::read_unaligned(field_ptr as *const f32) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4334:69 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4334 | DataType::Float64 => crate::types::Value { float64: unsafe { core::ptr::read_unaligned(field_ptr as *const f64) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4335:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4335 | DataType::Bool => crate::types::Value { bool: unsafe { *field_ptr != 0 } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4338:21 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4338 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq_num` [INFO] [stdout] --> src/pubsub/mod.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let seq_num = frame.seq_num(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seq_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pubsub/mod.rs:282:20 [INFO] [stdout] | [INFO] [stdout] 282 | if let Err(e) = self.subscribers.handle_data(topic_id, payload) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_index` [INFO] [stdout] --> src/ha/replication.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let log_index = u32::from_le_bytes([data[1], data[2], data[3], data[4]]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:201:27 [INFO] [stdout] | [INFO] [stdout] 201 | if let Some(db) = unsafe { crate::get_global_db() } { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:254:41 [INFO] [stdout] | [INFO] [stdout] 254 | ... unsafe { value.bool = bool_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | ... unsafe { value.i8 = i8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:264:41 [INFO] [stdout] | [INFO] [stdout] 264 | ... unsafe { value.u8 = u8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:269:41 [INFO] [stdout] | [INFO] [stdout] 269 | ... unsafe { value.i16 = i16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:274:41 [INFO] [stdout] | [INFO] [stdout] 274 | ... unsafe { value.u16 = u16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:279:41 [INFO] [stdout] | [INFO] [stdout] 279 | ... unsafe { value.i32 = i32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:284:41 [INFO] [stdout] | [INFO] [stdout] 284 | ... unsafe { value.u32 = u32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:289:41 [INFO] [stdout] | [INFO] [stdout] 289 | ... unsafe { value.i64 = i64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:294:41 [INFO] [stdout] | [INFO] [stdout] 294 | ... unsafe { value.u64 = u64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:299:41 [INFO] [stdout] | [INFO] [stdout] 299 | ... unsafe { value.float32 = float32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:304:41 [INFO] [stdout] | [INFO] [stdout] 304 | ... unsafe { value.float64 = float64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | ... unsafe { value.string = string_data; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:319:41 [INFO] [stdout] | [INFO] [stdout] 319 | ... unsafe { value.timestamp = timestamp_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:330:41 [INFO] [stdout] | [INFO] [stdout] 330 | ... unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `primary_key_flag` [INFO] [stdout] --> src/ha/replication.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | ... let primary_key_flag = (constraints & 0b0001) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_primary_key_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_null_flag` [INFO] [stdout] --> src/ha/replication.rs:238:33 [INFO] [stdout] | [INFO] [stdout] 238 | ... let not_null_flag = (constraints & 0b0010) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_null_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unique_flag` [INFO] [stdout] --> src/ha/replication.rs:239:33 [INFO] [stdout] | [INFO] [stdout] 239 | ... let unique_flag = (constraints & 0b0100) != 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_increment_flag` [INFO] [stdout] --> src/ha/replication.rs:240:33 [INFO] [stdout] | [INFO] [stdout] 240 | ... let auto_increment_flag = (constraints & 0b1000) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_increment_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ha/heartbeat.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | let mut packet = HeartbeatPacket::new(self.node_id, self.role); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/lib.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | if let Some(table) = table { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_table` [INFO] [stdout] --> src/lib.rs:299:25 [INFO] [stdout] | [INFO] [stdout] 299 | if let Some(ts_table) = ts_table { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:921:22 [INFO] [stdout] | [INFO] [stdout] 921 | for (i, field) in table_def.fields.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:1430:29 [INFO] [stdout] | [INFO] [stdout] 1430 | let has_active_tx = unsafe { crate::transaction::has_active_tx() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_field_by_offset`, `publish_to_pubsub_inline`, and `publish_to_pubsub` are never used [INFO] [stdout] --> src/table.rs:422:15 [INFO] [stdout] | [INFO] [stdout] 52 | impl MemoryTable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 422 | unsafe fn get_field_by_offset(&self, record_data: *const u8, offset: usize, data_type: DataType, size: usize) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 591 | unsafe fn publish_to_pubsub_inline(table_name: &str, record_size: usize, id: usize, record_data: *const u8, is_insert: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 758 | unsafe fn publish_to_pubsub(&self, id: usize, record_data: *const u8, is_insert: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `def` and `items` are never read [INFO] [stdout] --> src/index.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct PrimaryIndex { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 124 | /// 表定义 [INFO] [stdout] 125 | def: alloc::sync::Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | items: NonNull, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `def` is never read [INFO] [stdout] --> src/index.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 504 | pub struct SecondaryIndex { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 505 | /// 表定义 [INFO] [stdout] 506 | def: alloc::sync::Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `free_node` is never used [INFO] [stdout] --> src/index.rs:1067:15 [INFO] [stdout] | [INFO] [stdout] 971 | impl BTreeIndex { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1067 | unsafe fn free_node(&mut self, node_ptr: NonNull) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `free_node` is never used [INFO] [stdout] --> src/index.rs:1663:15 [INFO] [stdout] | [INFO] [stdout] 1570 | impl TTreeIndex { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1663 | unsafe fn free_node(&mut self, node_ptr: NonNull) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `log_file_size_limit` and `log_segment_size` are never read [INFO] [stdout] --> src/transaction.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct LogManager { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 182 | log_file_size_limit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 183 | /// 日志分段大小 [INFO] [stdout] 184 | log_segment_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_eof` is never used [INFO] [stdout] --> src/sql/query_parser.rs:1760:8 [INFO] [stdout] | [INFO] [stdout] 344 | impl SqlParser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1760 | fn is_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_field_value_from_condition` is never used [INFO] [stdout] --> src/sql/query_executor.rs:868:4 [INFO] [stdout] | [INFO] [stdout] 868 | fn get_field_value_from_condition<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_at_time_zone` is never used [INFO] [stdout] --> src/sql/query_executor.rs:4935:4 [INFO] [stdout] | [INFO] [stdout] 4935 | fn process_at_time_zone(timestamp: &crate::types::db_timestamp, timezone_spec: &str) -> Result src/sql/query_executor.rs:4959:4 [INFO] [stdout] | [INFO] [stdout] 4959 | fn process_timezone_function(timezone_spec: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_to_columns` is never used [INFO] [stdout] --> src/sql/result_set.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn string_to_columns(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `values_to_string` is never used [INFO] [stdout] --> src/sql/result_set.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn values_to_string(values: &[TypedValue]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_global_pubsub` is never used [INFO] [stdout] --> src/pubsub/mod.rs:487:15 [INFO] [stdout] | [INFO] [stdout] 487 | pub(crate) fn get_global_pubsub() -> Option<&'static mut PubSub> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer_size` is never read [INFO] [stdout] --> src/pubsub/udp.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct PosixUdpSocket { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | buffer_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `topic_id` is never read [INFO] [stdout] --> src/pubsub/subscriber.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Subscriber { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | topic_id: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initialized` is never read [INFO] [stdout] --> src/ha/manager.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct HAManager { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_REPLICATION_TOPIC` is never used [INFO] [stdout] --> src/ha/replication.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const WAL_REPLICATION_TOPIC: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `total_slaves`, `lock`, and `is_initialized` are never read [INFO] [stdout] --> src/ha/replication.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct ReplicationManager { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | total_slaves: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 84 | /// 自旋锁 [INFO] [stdout] 85 | lock: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 86 | /// 是否初始化 [INFO] [stdout] 87 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initialized` is never read [INFO] [stdout] --> src/ha/heartbeat.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct HeartbeatMonitor { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_heartbeat` and `send_heartbeat` are never used [INFO] [stdout] --> src/ha/heartbeat.rs:403:8 [INFO] [stdout] | [INFO] [stdout] 231 | impl HeartbeatMonitor { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 403 | fn handle_heartbeat(&self, data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | fn send_heartbeat(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lock` and `is_initialized` are never read [INFO] [stdout] --> src/ha/role.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct RoleManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | lock: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | /// 是否初始化 [INFO] [stdout] 19 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | crate::transaction::TX_MANAGER.begin(tx_type, isolation_level, tx_buffer, log_buffer, max_log_items) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | crate::transaction::TX_MANAGER.commit() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | crate::transaction::TX_MANAGER.rollback(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:906:40 [INFO] [stdout] | [INFO] [stdout] 906 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1146:40 [INFO] [stdout] | [INFO] [stdout] 1146 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1966:12 [INFO] [stdout] | [INFO] [stdout] 1966 | Ok(DB_INSTANCE.as_mut().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1973:9 [INFO] [stdout] | [INFO] [stdout] 1973 | DB_INSTANCE.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1987:9 [INFO] [stdout] | [INFO] [stdout] 1987 | crate::transaction::TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1989:9 [INFO] [stdout] | [INFO] [stdout] 1989 | crate::transaction::TX_MANAGER.clear_log_manager(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/table.rs:183:38 [INFO] [stdout] | [INFO] [stdout] 183 | let is_visible = crate::transaction::TX_MANAGER.is_visible( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 184 | | status.create_tx_id, [INFO] [stdout] 185 | | status.delete_tx_id, [INFO] [stdout] 186 | | current_tx_id [INFO] [stdout] 187 | | ); [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/table.rs:312:38 [INFO] [stdout] | [INFO] [stdout] 312 | let is_visible = crate::transaction::TX_MANAGER.is_visible( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 313 | | status.create_tx_id, [INFO] [stdout] 314 | | status.delete_tx_id, [INFO] [stdout] 315 | | current_tx_id [INFO] [stdout] 316 | | ); [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1650:5 [INFO] [stdout] | [INFO] [stdout] 1650 | TX_MANAGER.begin(tx_type, isolation_level, tx_buffer, log_buffer, max_log_items) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1655:5 [INFO] [stdout] | [INFO] [stdout] 1655 | TX_MANAGER.commit() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | TX_MANAGER.rollback(db) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/transaction.rs:1665:14 [INFO] [stdout] | [INFO] [stdout] 1665 | unsafe { TX_MANAGER.get_current_tx() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/transaction.rs:1670:14 [INFO] [stdout] | [INFO] [stdout] 1670 | unsafe { TX_MANAGER.has_active_tx() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1675:5 [INFO] [stdout] | [INFO] [stdout] 1675 | TX_MANAGER.set_low_power_mode(enabled); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1680:5 [INFO] [stdout] | [INFO] [stdout] 1680 | TX_MANAGER.set_log_manager(log_manager); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/pubsub/mod.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 374 | if PUB_SUB_INSTANCE.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/pubsub/mod.rs:489:9 [INFO] [stdout] | [INFO] [stdout] 489 | PUB_SUB_INSTANCE.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if HA_MANAGER.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | HA_MANAGER.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(manager) = &HA_MANAGER { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(manager) = &raw const HA_MANAGER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | if let Some(manager) = &HA_MANAGER { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 170 | if let Some(manager) = &raw const HA_MANAGER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:181:32 [INFO] [stdout] | [INFO] [stdout] 181 | if let Some(manager) = HA_MANAGER.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:192:32 [INFO] [stdout] | [INFO] [stdout] 192 | if let Some(manager) = HA_MANAGER.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:203:32 [INFO] [stdout] | [INFO] [stdout] 203 | if let Some(manager) = &HA_MANAGER { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 203 | if let Some(manager) = &raw const HA_MANAGER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/replication.rs:375:52 [INFO] [stdout] | [INFO] [stdout] 375 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/replication.rs:387:52 [INFO] [stdout] | [INFO] [stdout] 387 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> tests/test_snapshot_gen.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TABLE_FREE_SLOTS_BUFFER` is never used [INFO] [stdout] --> tests/test_snapshot_gen.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | static mut TABLE_FREE_SLOTS_BUFFER: [usize; 100] = [0usize; 100]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/test_snapshot_gen.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | &mut DEFAULT_ALLOCATOR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | &raw mut DEFAULT_ALLOCATOR [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/test_snapshot_gen.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | transaction::TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/test_snapshot_gen.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DataType` [INFO] [stdout] --> examples/test_create_timeseries_table.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use remdb::{RemDb, DataType, config::{DbConfig, DefaultMemoryAllocator, LogMode, TimeSeriesConfig, WALConfig}, ha::{HARole, Replicati... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_insert_ignore_test.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 157 | let mut db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> tests/pubsub_test.rs:10:56 [INFO] [stdout] | [INFO] [stdout] 10 | use remdb::pubsub::{PubSub, PubSubConfig, UdpMode, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remdb::types::RecordHeader` [INFO] [stdout] --> examples/generate_snapshot.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use remdb::types::RecordHeader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/sql_insert_ignore_test.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut db = unsafe { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/sql_insert_ignore_test.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/sql_insert_ignore_test.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/varchar_example.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut db = init_global_db(&CONFIG).expect("Failed to initialize database"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALLOCATOR` is never used [INFO] [stdout] --> examples/varchar_example.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | static ALLOCATOR: config::DefaultMemoryAllocator = config::DefaultMemoryAllocator; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/varchar_example.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/varchar_example.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RECORD_SIZE` is never used [INFO] [stdout] --> examples/low_power_mode.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | const RECORD_SIZE: usize = 4 + 32 + 8 + 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_DATA_SIZE` is never used [INFO] [stdout] --> examples/low_power_mode.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const TABLE_DATA_SIZE: usize = RECORD_SIZE * TEST_TABLE.max_records; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STATUS_ARRAY_SIZE` is never used [INFO] [stdout] --> examples/low_power_mode.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const STATUS_ARRAY_SIZE: usize = core::mem::size_of::() * TEST_TABLE.max_records; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREE_SLOTS_SIZE` is never used [INFO] [stdout] --> examples/low_power_mode.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const FREE_SLOTS_SIZE: usize = core::mem::size_of::() * TEST_TABLE.max_records; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_MEM_SIZE` is never used [INFO] [stdout] --> examples/low_power_mode.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const TABLE_MEM_SIZE: usize = TABLE_DATA_SIZE + STATUS_ARRAY_SIZE + FREE_SLOTS_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/low_power_mode.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/low_power_mode.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/test_create_timeseries_table.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | remdb::memory::allocator::init_global_allocator(MEMORY.as_mut_ptr(), MEMORY_SIZE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/generate_snapshot.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/generate_snapshot.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/incremental_snapshot.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/incremental_snapshot.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/incremental_snapshot.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | table.set_field(record.0.as_mut_ptr(), 2, &value_value); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 243 | let _ = table.set_field(record.0.as_mut_ptr(), 2, &value_value); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> tests/table_test.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | let id = core::ptr::read(data_ptr as *const u32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/test_auto_increment.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/table_test.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:110:27 [INFO] [stdout] | [INFO] [stdout] 110 | memory_allocator: &mut DEFAULT_ALLOCATOR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 110 | memory_allocator: &raw mut DEFAULT_ALLOCATOR, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/table_test.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/table_test.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/table_test.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/table_test.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/table_test.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/table_test.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/table_test.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/table_test.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 418 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/table_test.rs:419:13 [INFO] [stdout] | [INFO] [stdout] 419 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/table_test.rs:483:13 [INFO] [stdout] | [INFO] [stdout] 483 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/table_test.rs:484:13 [INFO] [stdout] | [INFO] [stdout] 484 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/test_auto_increment.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:153:18 [INFO] [stdout] | [INFO] [stdout] 153 | unsafe { DB_MEMORY.as_mut_ptr() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:154:18 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe { DB_MEMORY.len() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:205:18 [INFO] [stdout] | [INFO] [stdout] 205 | unsafe { DB_MEMORY.as_mut_ptr() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:206:18 [INFO] [stdout] | [INFO] [stdout] 206 | unsafe { DB_MEMORY.len() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 287 | unsafe { DB_MEMORY.as_mut_ptr() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:288:18 [INFO] [stdout] | [INFO] [stdout] 288 | unsafe { DB_MEMORY.len() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:416:18 [INFO] [stdout] | [INFO] [stdout] 416 | unsafe { DB_MEMORY.as_mut_ptr() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:417:18 [INFO] [stdout] | [INFO] [stdout] 417 | unsafe { DB_MEMORY.len() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:488:18 [INFO] [stdout] | [INFO] [stdout] 488 | unsafe { DB_MEMORY.as_mut_ptr() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:489:18 [INFO] [stdout] | [INFO] [stdout] 489 | unsafe { DB_MEMORY.len() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:539:18 [INFO] [stdout] | [INFO] [stdout] 539 | unsafe { DB_MEMORY.as_mut_ptr() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/dynamic_ddl_test.rs:540:18 [INFO] [stdout] | [INFO] [stdout] 540 | unsafe { DB_MEMORY.len() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/simple_time_type_test.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/simple_time_type_test.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remdb::pubsub::topics::*` [INFO] [stdout] --> examples/pubsub_test_system_client.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use remdb::pubsub::topics::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> examples/ddl_full_example.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Database; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/pubsub_sql_test_server.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | Some(NonNull::new(BUFFER.as_mut_ptr()).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/ddl_full_example.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / memory::allocator::init_global_allocator( [INFO] [stdout] 43 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 44 | | DB_MEMORY.len() [INFO] [stdout] 45 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/ddl_full_example.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/ddl_full_example.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/time_series.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> tests/time_series_batch_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> examples/time_series.rs:265:32 [INFO] [stdout] | [INFO] [stdout] 265 | for (i, (window_start, sum, avg, min, max, count)) in window_aggregates.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/time_series.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/time_series.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pubsub_test_system_server.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut interval = Duration::from_secs(5); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pubsub_test_system_server.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let mut interval = Duration::from_millis(1000); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pubsub_test_system_server.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut interval = Duration::from_millis(2000); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pubsub_test_system_server.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut interval = Duration::from_millis(3000); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pubsub_test_system_server.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let mut interval = Duration::from_millis(4000); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeSeriesConfig` [INFO] [stdout] --> tests/ha_test.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use remdb::config::{LogMode, TimeSeriesConfig, WALConfig}; use remdb::ha::{HARole, ReplicationMode, HAConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pubsub_test_system_server.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let mut interval = Duration::from_millis(5000); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test_table_topic` [INFO] [stdout] --> examples/pubsub_test_system_server.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let test_table_topic = format!("table.test_table"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test_table_topic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TEST_RESULTS` is never used [INFO] [stdout] --> tests/pubsub_test_system.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | static mut TEST_RESULTS: Vec<(String, bool, String)> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> examples/ddl_example.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Database; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/time_series_batch_test.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | core::ptr::write_bytes(DB_MEMORY.as_mut_ptr(), 0, DB_MEMORY.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/time_series_batch_test.rs:38:55 [INFO] [stdout] | [INFO] [stdout] 38 | core::ptr::write_bytes(DB_MEMORY.as_mut_ptr(), 0, DB_MEMORY.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/time_series_batch_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/time_series_batch_test.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DdlExecutor` [INFO] [stdout] --> examples/timeseries_ddl_usage.rs:1:82 [INFO] [stdout] | [INFO] [stdout] 1 | use remdb::{RemDb, config::{DbConfig, WALConfig}, time_series::TimeSeriesConfig, DdlExecutor}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SensorReading` is never constructed [INFO] [stdout] --> examples/timeseries_ddl_usage.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct SensorReading { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/timeseries_ddl_usage.rs:40:36 [INFO] [stdout] | [INFO] [stdout] 40 | memory_allocator: unsafe { &DEFAULT_ALLOCATOR }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 40 | memory_allocator: unsafe { &raw const DEFAULT_ALLOCATOR }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/timeseries_ddl_usage.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | RemDb::new(DB_CONFIG.as_ref().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/ha_example.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/ha_example.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HAConfig`, `HARole`, and `ReplicationMode` [INFO] [stdout] --> examples/ha_example.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use remdb::ha::{HARole, ReplicationMode, HAConfig}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::string::String` [INFO] [stdout] --> src/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DataType as CrateDataType` [INFO] [stdout] --> src/table.rs:2:97 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{types::{RecordHeader, RecordStatus, TableDef, Value, Result, RemDbError, DataType}, DataType as CrateDataType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time::Duration` [INFO] [stdout] --> src/platform/posix.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use core::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time::Duration` [INFO] [stdout] --> src/platform/posix.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use core::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_path` [INFO] [stdout] --> tests/wal_test.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let log_path = "/tmp/test_wal.log"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_path` [INFO] [stdout] --> tests/wal_test.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let log_path = "/tmp/test_wal_sync.log"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:249:5 [INFO] [stdout] | [INFO] [stdout] 249 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_path` [INFO] [stdout] --> tests/wal_test.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let log_path = "/tmp/test_wal_async.log"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:326:5 [INFO] [stdout] | [INFO] [stdout] 326 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_path` [INFO] [stdout] --> tests/wal_test.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let log_path = "/tmp/test_wal_checkpoint.log"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_path` [INFO] [stdout] --> tests/wal_test.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | let log_path = "/tmp/test_wal_prealloc.log"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv6Addr` [INFO] [stdout] --> src/pubsub/udp.rs:73:69 [INFO] [stdout] | [INFO] [stdout] 73 | use std::net::{UdpSocket as StdUdpSocket, SocketAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::PubSubError` [INFO] [stdout] --> src/pubsub/publisher.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::PubSubError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/pubsub/ttl_ringbuffer.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{SystemTime, Duration}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:458:5 [INFO] [stdout] | [INFO] [stdout] 458 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/pubsub/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PubSubConfig` and `UdpMode` [INFO] [stdout] --> src/ha/replication.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::pubsub::{PubSubConfig, UdpMode}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PubSubConfig`, `PubSubError`, and `UdpMode` [INFO] [stdout] --> src/ha/heartbeat.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::pubsub::{PubSubConfig, UdpMode, PubSubError}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::time::Duration` [INFO] [stdout] --> src/ha/heartbeat.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> src/ha/heartbeat.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/test_remdb_server.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | Some(NonNull::new(BUFFER.as_mut_ptr()).unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HAError` [INFO] [stdout] --> src/ha/role.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ha::{Result, HAError}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PubSubError` [INFO] [stdout] --> src/ha/role.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::pubsub::{PubSubConfig, UdpMode, PubSubError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/ha/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Mutex` [INFO] [stdout] --> src/time_series/index.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{sync::RwLock, collections::HashMap, sync::Mutex}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:540:5 [INFO] [stdout] | [INFO] [stdout] 540 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> examples/ha_example.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let tx = transaction::begin( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:800:5 [INFO] [stdout] | [INFO] [stdout] 800 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_path` [INFO] [stdout] --> tests/wal_test.rs:842:13 [INFO] [stdout] | [INFO] [stdout] 842 | let log_path = "/tmp/test_wal_recovery.log"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/wal_test.rs:1033:5 [INFO] [stdout] | [INFO] [stdout] 1033 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/ha_example.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | / memory::allocator::init_global_allocator( [INFO] [stdout] 49 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 50 | | DB_MEMORY.len() [INFO] [stdout] 51 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/ha_example.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/ha_example.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `Transaction` does not permit being left uninitialized [INFO] [stdout] --> examples/ha_example.rs:61:55 [INFO] [stdout] | [INFO] [stdout] 61 | let mut tx_buffer: transaction::Transaction = core::mem::MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/ha_example.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | / memory::allocator::init_global_allocator( [INFO] [stdout] 132 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 133 | | DB_MEMORY.len() [INFO] [stdout] 134 | | ); [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] 131 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/ha_example.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/ha_example.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/export_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | crate::transaction::TX_MANAGER.clear_log_manager(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/export_test.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | crate::memory::allocator::init_global_allocator(DB_MEMORY.as_mut_ptr(), DB_MEMORY.len()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/export_test.rs:51:81 [INFO] [stdout] | [INFO] [stdout] 51 | crate::memory::allocator::init_global_allocator(DB_MEMORY.as_mut_ptr(), DB_MEMORY.len()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/export_test.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | crate::transaction::TX_MANAGER.clear_log_manager(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/export_test.rs:104:57 [INFO] [stdout] | [INFO] [stdout] 104 | crate::memory::allocator::init_global_allocator(DB_MEMORY.as_mut_ptr(), DB_MEMORY.len()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/export_test.rs:104:81 [INFO] [stdout] | [INFO] [stdout] 104 | crate::memory::allocator::init_global_allocator(DB_MEMORY.as_mut_ptr(), DB_MEMORY.len()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/export_test.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | crate::transaction::TX_MANAGER.clear_log_manager(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/export_test.rs:208:57 [INFO] [stdout] | [INFO] [stdout] 208 | crate::memory::allocator::init_global_allocator(DB_MEMORY.as_mut_ptr(), DB_MEMORY.len()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/export_test.rs:208:81 [INFO] [stdout] | [INFO] [stdout] 208 | crate::memory::allocator::init_global_allocator(DB_MEMORY.as_mut_ptr(), DB_MEMORY.len()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DdlExecutor` [INFO] [stdout] --> examples/ddl_runtime_example.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use remdb::{RemDb, DdlExecutor, types::{DataType, IndexType}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/ddl_runtime_example.rs:37:31 [INFO] [stdout] | [INFO] [stdout] 37 | init_global_allocator(MEMORY_BUFFER.as_mut_ptr(), MEMORY_BUFFER.len()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/ddl_runtime_example.rs:37:59 [INFO] [stdout] | [INFO] [stdout] 37 | init_global_allocator(MEMORY_BUFFER.as_mut_ptr(), MEMORY_BUFFER.len()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/ha_example_slave.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/ha_example_slave.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory_size` [INFO] [stdout] --> examples/time_series_iot.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let memory_size = 128 * 1024 * 1024; // 128MB [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rooms` [INFO] [stdout] --> examples/time_series_iot.rs:324:13 [INFO] [stdout] | [INFO] [stdout] 324 | let rooms = ["room_101", "room_102"]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rooms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/time_series_iot.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/describe_table.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/time_series_iot.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::NonNull` [INFO] [stdout] --> tests/transaction_test.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use core::mem::MaybeUninit; use std::ptr::NonNull; extern crate alloc; use alloc::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::sync::Arc` [INFO] [stdout] --> tests/transaction_test.rs:1:76 [INFO] [stdout] | [INFO] [stdout] 1 | use core::mem::MaybeUninit; use std::ptr::NonNull; extern crate alloc; use alloc::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/ha_example_slave.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | / memory::allocator::init_global_allocator( [INFO] [stdout] 70 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 71 | | DB_MEMORY.len() [INFO] [stdout] 72 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 69 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/ha_example_slave.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/ha_example_slave.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/describe_table.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | / memory::allocator::init_global_allocator( [INFO] [stdout] 35 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 36 | | DB_MEMORY.len() [INFO] [stdout] 37 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/describe_table.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/describe_table.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:165:14 [INFO] [stdout] | [INFO] [stdout] 165 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:244:25 [INFO] [stdout] | [INFO] [stdout] 244 | let insert_id = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | let table = unsafe { db.get_table_mut(0).unwrap() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/transaction_test.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | let mut table_mut = db.get_table_mut(0).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> tests/transaction_test.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | let tx = db.begin_transaction( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_id` [INFO] [stdout] --> tests/transaction_test.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let record_id = table_mut.insert(record_data.as_ptr()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx1` [INFO] [stdout] --> tests/transaction_test.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let tx1 = db.begin_transaction( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx2` [INFO] [stdout] --> tests/transaction_test.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let tx2 = db.begin_transaction( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx3` [INFO] [stdout] --> tests/transaction_test.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | let tx3 = db.begin_transaction( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx4` [INFO] [stdout] --> tests/transaction_test.rs:457:13 [INFO] [stdout] | [INFO] [stdout] 457 | let tx4 = db.begin_transaction( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx1` [INFO] [stdout] --> tests/transaction_test.rs:800:17 [INFO] [stdout] | [INFO] [stdout] 800 | let tx1 = db.begin_transaction( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx2` [INFO] [stdout] --> tests/transaction_test.rs:844:17 [INFO] [stdout] | [INFO] [stdout] 844 | let tx2 = db.begin_transaction( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/transaction_test.rs:953:13 [INFO] [stdout] | [INFO] [stdout] 953 | let mut table_mut = db.get_table_mut(0).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> tests/transaction_test.rs:928:13 [INFO] [stdout] | [INFO] [stdout] 928 | let tx = db.begin_transaction( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/transaction_test.rs:1068:13 [INFO] [stdout] | [INFO] [stdout] 1068 | let mut table_mut = db.get_table_mut(0).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> tests/transaction_test.rs:1044:13 [INFO] [stdout] | [INFO] [stdout] 1044 | let tx = db.begin_transaction( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/transaction_test.rs:1175:13 [INFO] [stdout] | [INFO] [stdout] 1175 | let mut table_mut = db.get_table_mut(0).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> tests/transaction_test.rs:1166:13 [INFO] [stdout] | [INFO] [stdout] 1166 | let tx = db.begin_transaction( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TABLE_FREE_SLOTS_BUFFER` is never used [INFO] [stdout] --> tests/transaction_test.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | static mut TABLE_FREE_SLOTS_BUFFER: [usize; 100] = [0usize; 100]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | &mut DEFAULT_ALLOCATOR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 148 | &raw mut DEFAULT_ALLOCATOR [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:341:13 [INFO] [stdout] | [INFO] [stdout] 341 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:418:13 [INFO] [stdout] | [INFO] [stdout] 418 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:504:13 [INFO] [stdout] | [INFO] [stdout] 504 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/timeseries_table_test.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:325:30 [INFO] [stdout] | [INFO] [stdout] 325 | let mut tx1_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:368:30 [INFO] [stdout] | [INFO] [stdout] 368 | let mut tx2_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:402:30 [INFO] [stdout] | [INFO] [stdout] 402 | let mut tx3_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:444:30 [INFO] [stdout] | [INFO] [stdout] 444 | let mut tx4_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:496:9 [INFO] [stdout] | [INFO] [stdout] 496 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:502:9 [INFO] [stdout] | [INFO] [stdout] 502 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:544:33 [INFO] [stdout] | [INFO] [stdout] 544 | let mut tx_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:620:9 [INFO] [stdout] | [INFO] [stdout] 620 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:626:9 [INFO] [stdout] | [INFO] [stdout] 626 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:666:33 [INFO] [stdout] | [INFO] [stdout] 666 | let mut tx_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:742:9 [INFO] [stdout] | [INFO] [stdout] 742 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:748:9 [INFO] [stdout] | [INFO] [stdout] 748 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:787:34 [INFO] [stdout] | [INFO] [stdout] 787 | let mut tx1_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `remdb::Transaction` does not permit being left uninitialized [INFO] [stdout] --> tests/transaction_test.rs:831:34 [INFO] [stdout] | [INFO] [stdout] 831 | let mut tx2_buffer = core::mem::MaybeUninit::::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 886 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:892:9 [INFO] [stdout] | [INFO] [stdout] 892 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:984:9 [INFO] [stdout] | [INFO] [stdout] 984 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:990:9 [INFO] [stdout] | [INFO] [stdout] 990 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:1106:9 [INFO] [stdout] | [INFO] [stdout] 1106 | TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/transaction_test.rs:1112:9 [INFO] [stdout] | [INFO] [stdout] 1112 | TABLE_DATA_BUFFER.fill(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/test_index_recovery.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/test_index_recovery.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/test_index_recovery.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_ptr` [INFO] [stdout] --> tests/sql_query_test.rs:265:28 [INFO] [stdout] | [INFO] [stdout] 265 | table.iterate(|id, record_ptr| { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:420:5 [INFO] [stdout] | [INFO] [stdout] 420 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:429:14 [INFO] [stdout] | [INFO] [stdout] 429 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:565:5 [INFO] [stdout] | [INFO] [stdout] 565 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:574:14 [INFO] [stdout] | [INFO] [stdout] 574 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/test_index_recovery.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/multiple_tables.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::string::String` [INFO] [stdout] --> examples/multiple_tables.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:649:5 [INFO] [stdout] | [INFO] [stdout] 649 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:658:14 [INFO] [stdout] | [INFO] [stdout] 658 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:705:5 [INFO] [stdout] | [INFO] [stdout] 705 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:714:14 [INFO] [stdout] | [INFO] [stdout] 714 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:796:5 [INFO] [stdout] | [INFO] [stdout] 796 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:805:14 [INFO] [stdout] | [INFO] [stdout] 805 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:863:5 [INFO] [stdout] | [INFO] [stdout] 863 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:872:14 [INFO] [stdout] | [INFO] [stdout] 872 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:932:5 [INFO] [stdout] | [INFO] [stdout] 932 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:941:14 [INFO] [stdout] | [INFO] [stdout] 941 | let db = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/sql_query_test.rs:980:25 [INFO] [stdout] | [INFO] [stdout] 980 | let insert_id = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> examples/multiple_tables.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | let db = init_global_db(config).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `users` should have an upper case name [INFO] [stdout] --> examples/multiple_tables.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | static users: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 12 - static users: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] 12 + static USERS: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `orders` should have an upper case name [INFO] [stdout] --> examples/multiple_tables.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | static orders: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 91 - static orders: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] 91 + static ORDERS: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `products` should have an upper case name [INFO] [stdout] --> examples/multiple_tables.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | static products: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 181 - static products: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] 181 + static PRODUCTS: remdb::types::TableDef = remdb::types::TableDef { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/multiple_tables.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | / memory::allocator::init_global_allocator( [INFO] [stdout] 272 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 273 | | DB_MEMORY.len() [INFO] [stdout] 274 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 271 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/multiple_tables.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/multiple_tables.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/ha_example_master.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/ha_example_master.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/basic_usage.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/test_default_value.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | memory_allocator: &mut DEFAULT_ALLOCATOR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 21 | memory_allocator: &raw mut DEFAULT_ALLOCATOR, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/test_default_value.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | init_global_allocator(MEMORY_BUFFER.as_mut_ptr(), MEMORY_BUFFER.len()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/test_default_value.rs:55:59 [INFO] [stdout] | [INFO] [stdout] 55 | init_global_allocator(MEMORY_BUFFER.as_mut_ptr(), MEMORY_BUFFER.len()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/ha_example_master.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | / memory::allocator::init_global_allocator( [INFO] [stdout] 70 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 71 | | DB_MEMORY.len() [INFO] [stdout] 72 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 69 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/ha_example_master.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/ha_example_master.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `Transaction` does not permit being left uninitialized [INFO] [stdout] --> examples/ha_example_master.rs:108:55 [INFO] [stdout] | [INFO] [stdout] 108 | let mut tx_buffer: transaction::Transaction = core::mem::MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/basic_usage.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | / memory::allocator::init_global_allocator( [INFO] [stdout] 37 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 38 | | DB_MEMORY.len() [INFO] [stdout] 39 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/basic_usage.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/basic_usage.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `Transaction` does not permit being left uninitialized [INFO] [stdout] --> examples/basic_usage.rs:166:55 [INFO] [stdout] | [INFO] [stdout] 166 | let mut tx_buffer: transaction::Transaction = core::mem::MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/time_series_complete.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/time_series_complete.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let mut partition_manager = PartitionManager::new(Duration::from_secs(3600), 100); // 1小时 [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remaining_partitions` [INFO] [stdout] --> tests/time_series_module_test.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let remaining_partitions = manager.get_partitions_in_range(now - 3600, now + 10800); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remaining_partitions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DdlExecutor` [INFO] [stdout] --> examples/timeseries_ddl_core.rs:1:82 [INFO] [stdout] | [INFO] [stdout] 1 | use remdb::{RemDb, config::{DbConfig, WALConfig}, time_series::TimeSeriesConfig, DdlExecutor}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remdb::table::*` [INFO] [stdout] --> tests/large_table_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use remdb::table::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnySecondaryIndex` and `PrimaryIndex` [INFO] [stdout] --> tests/large_table_test.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use remdb::{init_global_db, PrimaryIndex, AnySecondaryIndex}; use remdb::config::DefaultMemoryAllocator; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/time_series_module_test.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/time_series_module_test.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/time_series_module_test.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/time_series_module_test.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `time`, `value`, `sensor_id`, and `location` are never read [INFO] [stdout] --> examples/timeseries_ddl_core.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct SensorReading { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 14 | time: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | value: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | sensor_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SensorReading` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/timeseries_ddl_core.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | init_global_allocator(MEMORY.as_mut_ptr(), MEMORY_SIZE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/large_table_test.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> tests/large_table_test.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | &mut DEFAULT_ALLOCATOR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 172 | &raw mut DEFAULT_ALLOCATOR [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] --> tests/large_table_test.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | drop(table); // 释放表的可变引用 [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MemoryTable` [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] 259 - drop(table); // 释放表的可变引用 [INFO] [stdout] 259 + let _ = table; // 释放表的可变引用 [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] --> tests/large_table_test.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | drop(table); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MemoryTable` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 297 - drop(table); [INFO] [stdout] 297 + let _ = table; [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] --> tests/large_table_test.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | drop(table); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MemoryTable` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 328 - drop(table); [INFO] [stdout] 328 + let _ = table; [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] --> tests/large_table_test.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | drop(table); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MemoryTable` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 383 - drop(table); [INFO] [stdout] 383 + let _ = table; [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] --> tests/large_table_test.rs:413:9 [INFO] [stdout] | [INFO] [stdout] 413 | drop(table); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut MemoryTable` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 413 - drop(table); [INFO] [stdout] 413 + let _ = table; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::string::String` [INFO] [stdout] --> examples/export_example.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> examples/export_example.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `remdb::types::Result` [INFO] [stdout] --> tests/memory_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use remdb::types::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DB_MEMORY` is never used [INFO] [stdout] --> examples/export_example.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | static mut DB_MEMORY: [u8; 65536] = [0u8; 65536]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> examples/sql_query.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::alloc::Layout` [INFO] [stdout] --> examples/sql_query.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use core::alloc::Layout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ptr::NonNull` [INFO] [stdout] --> examples/sql_query.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use core::ptr::NonNull; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/sql_query.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / memory::allocator::init_global_allocator( [INFO] [stdout] 46 | | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] 47 | | DB_MEMORY.len() [INFO] [stdout] 48 | | ); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = memory::allocator::init_global_allocator( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/sql_query.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | DB_MEMORY.as_mut_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/sql_query.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | DB_MEMORY.len() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/memory_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr3` [INFO] [stdout] --> tests/memory_test.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let ptr3 = allocator.allocate(64).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ptr3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_sizes` [INFO] [stdout] --> tests/memory_test.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let pool_sizes = [16, 32, 64, 128]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_sizes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_counts` [INFO] [stdout] --> tests/memory_test.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let pool_counts = [16, 8, 4, 2]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_counts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> tests/memory_test.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr2` [INFO] [stdout] --> tests/memory_test.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let ptr2 = allocator.allocate(100).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ptr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/types.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn to_sql_type(&self, size: usize) -> &'static str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/types.rs:293:23 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn to_iso8601(timestamp: &super::db_timestamp) -> alloc::string::String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/types.rs:300:53 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn to_char(timestamp: &super::db_timestamp, format: &str) -> alloc::string::String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/table.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/table.rs:582:13 [INFO] [stdout] | [INFO] [stdout] 582 | let table_name = self.def.name; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_size` [INFO] [stdout] --> src/table.rs:583:13 [INFO] [stdout] | [INFO] [stdout] 583 | let record_size = self.record_size; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `slot_id` is never read [INFO] [stdout] --> src/table.rs:472:27 [INFO] [stdout] | [INFO] [stdout] 472 | let mut slot_id = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last` [INFO] [stdout] --> src/table.rs:1997:44 [INFO] [stdout] | [INFO] [stdout] 1997 | for (window_start, (sum, min, max, last, count)) in window_aggregates { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:985:17 [INFO] [stdout] | [INFO] [stdout] 985 | let mut node_mut = &mut *node_ptr; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1035:13 [INFO] [stdout] | [INFO] [stdout] 1035 | let mut node_mut = &mut *node_ptr.as_ptr(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1223:17 [INFO] [stdout] | [INFO] [stdout] 1223 | let mut root = self.root.expect("Root node unexpectedly None"); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index.rs:1544:37 [INFO] [stdout] | [INFO] [stdout] 1544 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_size` [INFO] [stdout] --> src/index.rs:1544:53 [INFO] [stdout] | [INFO] [stdout] 1544 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1584:17 [INFO] [stdout] | [INFO] [stdout] 1584 | let mut node_mut = &mut *node_ptr; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/index.rs:1632:13 [INFO] [stdout] | [INFO] [stdout] 1632 | let mut node_mut = &mut *node_ptr.as_ptr(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/index.rs:2207:37 [INFO] [stdout] | [INFO] [stdout] 2207 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_size` [INFO] [stdout] --> src/index.rs:2207:53 [INFO] [stdout] | [INFO] [stdout] 2207 | pub unsafe fn delete(&mut self, key: *const u8, key_size: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:937:41 [INFO] [stdout] | [INFO] [stdout] 937 | ... unsafe { value.bool = bool_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:942:41 [INFO] [stdout] | [INFO] [stdout] 942 | ... unsafe { value.i8 = i8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:947:41 [INFO] [stdout] | [INFO] [stdout] 947 | ... unsafe { value.u8 = u8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:952:41 [INFO] [stdout] | [INFO] [stdout] 952 | ... unsafe { value.i16 = i16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:957:41 [INFO] [stdout] | [INFO] [stdout] 957 | ... unsafe { value.u16 = u16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:962:41 [INFO] [stdout] | [INFO] [stdout] 962 | ... unsafe { value.i32 = i32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:967:41 [INFO] [stdout] | [INFO] [stdout] 967 | ... unsafe { value.u32 = u32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:972:41 [INFO] [stdout] | [INFO] [stdout] 972 | ... unsafe { value.i64 = i64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:977:41 [INFO] [stdout] | [INFO] [stdout] 977 | ... unsafe { value.u64 = u64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:982:41 [INFO] [stdout] | [INFO] [stdout] 982 | ... unsafe { value.float32 = float32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:987:41 [INFO] [stdout] | [INFO] [stdout] 987 | ... unsafe { value.float64 = float64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:995:41 [INFO] [stdout] | [INFO] [stdout] 995 | ... unsafe { value.string = string_data; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:1000:41 [INFO] [stdout] | [INFO] [stdout] 1000 | ... unsafe { value.timestamp = timestamp_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:1011:41 [INFO] [stdout] | [INFO] [stdout] 1011 | ... unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `primary_key_flag` [INFO] [stdout] --> src/transaction.rs:920:33 [INFO] [stdout] | [INFO] [stdout] 920 | ... let primary_key_flag = (constraints & 0b0001) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_primary_key_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_null_flag` [INFO] [stdout] --> src/transaction.rs:921:33 [INFO] [stdout] | [INFO] [stdout] 921 | ... let not_null_flag = (constraints & 0b0010) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_null_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unique_flag` [INFO] [stdout] --> src/transaction.rs:922:33 [INFO] [stdout] | [INFO] [stdout] 922 | ... let unique_flag = (constraints & 0b0100) != 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_increment_flag` [INFO] [stdout] --> src/transaction.rs:923:33 [INFO] [stdout] | [INFO] [stdout] 923 | ... let auto_increment_flag = (constraints & 0b1000) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_increment_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/transaction.rs:1068:9 [INFO] [stdout] | [INFO] [stdout] 1068 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_parser.rs:966:40 [INFO] [stdout] | [INFO] [stdout] 966 | Expression::Field { alias: mut expr_alias, name, .. } => { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_parser.rs:972:47 [INFO] [stdout] | [INFO] [stdout] 972 | Expression::FunctionCall { alias: mut expr_alias, name, args, .. } => { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_parser.rs:979:43 [INFO] [stdout] | [INFO] [stdout] 979 | Expression::Constant { alias: mut expr_alias, value, .. } => { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_pos` [INFO] [stdout] --> src/sql/query_parser.rs:898:17 [INFO] [stdout] | [INFO] [stdout] 898 | let saved_pos = self.position; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_col` [INFO] [stdout] --> src/sql/query_parser.rs:899:17 [INFO] [stdout] | [INFO] [stdout] 899 | let saved_col = self.column; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_pos` [INFO] [stdout] --> src/sql/query_parser.rs:1152:13 [INFO] [stdout] | [INFO] [stdout] 1152 | let saved_pos = self.position; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_col` [INFO] [stdout] --> src/sql/query_parser.rs:1153:13 [INFO] [stdout] | [INFO] [stdout] 1153 | let saved_col = self.column; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tz_param` [INFO] [stdout] --> src/sql/query_parser.rs:1524:17 [INFO] [stdout] | [INFO] [stdout] 1524 | let tz_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tz_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_param` [INFO] [stdout] --> src/sql/query_parser.rs:1535:17 [INFO] [stdout] | [INFO] [stdout] 1535 | let time_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format_param` [INFO] [stdout] --> src/sql/query_parser.rs:1540:17 [INFO] [stdout] | [INFO] [stdout] 1540 | let format_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_format_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_param` [INFO] [stdout] --> src/sql/query_parser.rs:1551:17 [INFO] [stdout] | [INFO] [stdout] 1551 | let time_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_param` [INFO] [stdout] --> src/sql/query_parser.rs:1562:17 [INFO] [stdout] | [INFO] [stdout] 1562 | let time_param = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tz_value` [INFO] [stdout] --> src/sql/query_parser.rs:1594:21 [INFO] [stdout] | [INFO] [stdout] 1594 | let tz_value = self.parse_value()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tz_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let mut matched_rows: Vec> = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/sql/query_executor.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | for expr in &columns { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:331:47 [INFO] [stdout] | [INFO] [stdout] 325 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 331 | let is_less = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:358:50 [INFO] [stdout] | [INFO] [stdout] 352 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 358 | let is_greater = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mean` [INFO] [stdout] --> src/sql/query_executor.rs:512:29 [INFO] [stdout] | [INFO] [stdout] 512 | let mean = sum / count as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mean` [INFO] [stdout] --> src/sql/query_executor.rs:529:29 [INFO] [stdout] | [INFO] [stdout] 529 | let mean = sum / count as f64; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record_values` [INFO] [stdout] --> src/sql/query_executor.rs:571:5 [INFO] [stdout] | [INFO] [stdout] 571 | record_values: &[TypedValue], [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_record_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/sql/query_executor.rs:681:45 [INFO] [stdout] | [INFO] [stdout] 681 | let iterate_result = table.iterate(|id, record_ptr| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name_part` [INFO] [stdout] --> src/sql/query_executor.rs:824:22 [INFO] [stdout] | [INFO] [stdout] 824 | let (table_name_part, field_name_part) = if name.contains('.') { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name_part` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:1085:49 [INFO] [stdout] | [INFO] [stdout] 1008 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 1085 | condition_matches = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:1354:53 [INFO] [stdout] | [INFO] [stdout] 1281 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 1354 | condition_matches = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:1255:37 [INFO] [stdout] | [INFO] [stdout] 1255 | ... let mut buf = [0; MAX_STRING_LEN]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:1431:41 [INFO] [stdout] | [INFO] [stdout] 1431 | ... let mut buf = [0; MAX_STRING_LEN]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sql/query_executor.rs:964:13 [INFO] [stdout] | [INFO] [stdout] 964 | let mut fields = main_table.def.fields [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_id` [INFO] [stdout] --> src/sql/query_executor.rs:1298:41 [INFO] [stdout] | [INFO] [stdout] 1298 | main_table.iterate(|main_id, main_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `join_id` [INFO] [stdout] --> src/sql/query_executor.rs:1283:58 [INFO] [stdout] | [INFO] [stdout] 1283 | let iterate_result = join_table.iterate(|join_id, join_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_join_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name_part` [INFO] [stdout] --> src/sql/query_executor.rs:1448:42 [INFO] [stdout] | [INFO] [stdout] 1448 | ... let (table_name_part, field_name_part) = if name.contains('.') { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name_part` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `join_id` [INFO] [stdout] --> src/sql/query_executor.rs:1029:37 [INFO] [stdout] | [INFO] [stdout] 1029 | join_table.iterate(|join_id, join_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_join_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name_part` [INFO] [stdout] --> src/sql/query_executor.rs:1190:42 [INFO] [stdout] | [INFO] [stdout] 1190 | ... let (table_name_part, field_name_part) = if name.contains('.') { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name_part` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_id` [INFO] [stdout] --> src/sql/query_executor.rs:1009:50 [INFO] [stdout] | [INFO] [stdout] 1009 | let iterate_result = main_table.iterate(|main_id, main_record_ptr| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/sql/query_executor.rs:1921:18 [INFO] [stdout] | [INFO] [stdout] 1921 | fn execute_count(args: &[TypedValue]) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/sql/query_executor.rs:2240:9 [INFO] [stdout] | [INFO] [stdout] 2240 | for y in 1970..year { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_key` [INFO] [stdout] --> src/sql/query_executor.rs:3463:10 [INFO] [stdout] | [INFO] [stdout] 3463 | for (group_key, group_rows) in groups { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4325:62 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4325 | DataType::UInt8 => crate::types::Value { u8: unsafe { *field_ptr as u8 } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4326:64 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4326 | DataType::UInt16 => crate::types::Value { u16: unsafe { core::ptr::read_unaligned(field_ptr as *const u16) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4327:64 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4327 | DataType::UInt32 => crate::types::Value { u32: unsafe { core::ptr::read_unaligned(field_ptr as *const u32) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4328:64 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4328 | DataType::UInt64 => crate::types::Value { u64: unsafe { core::ptr::read_unaligned(field_ptr as *const u64) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4329:61 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4329 | DataType::Int8 => crate::types::Value { i8: unsafe { core::ptr::read_unaligned(field_ptr as *const i8) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4330:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4330 | DataType::Int16 => crate::types::Value { i16: unsafe { core::ptr::read_unaligned(field_ptr as *const i16) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4331:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4331 | DataType::Int32 => crate::types::Value { i32: unsafe { core::ptr::read_unaligned(field_ptr as *const i32) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4332:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4332 | DataType::Int64 => crate::types::Value { i64: unsafe { core::ptr::read_unaligned(field_ptr as *const i64) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4333:69 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4333 | DataType::Float32 => crate::types::Value { float32: unsafe { core::ptr::read_unaligned(field_ptr as *const f32) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4334:69 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4334 | DataType::Float64 => crate::types::Value { float64: unsafe { core::ptr::read_unaligned(field_ptr as *const f64) } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4335:63 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4335 | DataType::Bool => crate::types::Value { bool: unsafe { *field_ptr != 0 } }, [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/sql/query_executor.rs:4338:21 [INFO] [stdout] | [INFO] [stdout] 4320 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 4338 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq_num` [INFO] [stdout] --> src/pubsub/mod.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | let seq_num = frame.seq_num(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seq_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/pubsub/mod.rs:282:20 [INFO] [stdout] | [INFO] [stdout] 282 | if let Err(e) = self.subscribers.handle_data(topic_id, payload) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_index` [INFO] [stdout] --> src/ha/replication.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let log_index = u32::from_le_bytes([data[1], data[2], data[3], data[4]]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:201:27 [INFO] [stdout] | [INFO] [stdout] 201 | if let Some(db) = unsafe { crate::get_global_db() } { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:254:41 [INFO] [stdout] | [INFO] [stdout] 254 | ... unsafe { value.bool = bool_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:259:41 [INFO] [stdout] | [INFO] [stdout] 259 | ... unsafe { value.i8 = i8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:264:41 [INFO] [stdout] | [INFO] [stdout] 264 | ... unsafe { value.u8 = u8_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:269:41 [INFO] [stdout] | [INFO] [stdout] 269 | ... unsafe { value.i16 = i16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:274:41 [INFO] [stdout] | [INFO] [stdout] 274 | ... unsafe { value.u16 = u16_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:279:41 [INFO] [stdout] | [INFO] [stdout] 279 | ... unsafe { value.i32 = i32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:284:41 [INFO] [stdout] | [INFO] [stdout] 284 | ... unsafe { value.u32 = u32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:289:41 [INFO] [stdout] | [INFO] [stdout] 289 | ... unsafe { value.i64 = i64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:294:41 [INFO] [stdout] | [INFO] [stdout] 294 | ... unsafe { value.u64 = u64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:299:41 [INFO] [stdout] | [INFO] [stdout] 299 | ... unsafe { value.float32 = float32_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:304:41 [INFO] [stdout] | [INFO] [stdout] 304 | ... unsafe { value.float64 = float64_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | ... unsafe { value.string = string_data; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:319:41 [INFO] [stdout] | [INFO] [stdout] 319 | ... unsafe { value.timestamp = timestamp_value; } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ha/replication.rs:330:41 [INFO] [stdout] | [INFO] [stdout] 330 | ... unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `primary_key_flag` [INFO] [stdout] --> src/ha/replication.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | ... let primary_key_flag = (constraints & 0b0001) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_primary_key_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `not_null_flag` [INFO] [stdout] --> src/ha/replication.rs:238:33 [INFO] [stdout] | [INFO] [stdout] 238 | ... let not_null_flag = (constraints & 0b0010) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_null_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unique_flag` [INFO] [stdout] --> src/ha/replication.rs:239:33 [INFO] [stdout] | [INFO] [stdout] 239 | ... let unique_flag = (constraints & 0b0100) != 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auto_increment_flag` [INFO] [stdout] --> src/ha/replication.rs:240:33 [INFO] [stdout] | [INFO] [stdout] 240 | ... let auto_increment_flag = (constraints & 0b1000) != 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auto_increment_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heartbeat_interval` [INFO] [stdout] --> src/ha/heartbeat.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let heartbeat_interval = self.heartbeat_interval; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heartbeat_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_id` [INFO] [stdout] --> src/ha/heartbeat.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let node_id = self.node_id; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role` [INFO] [stdout] --> src/ha/heartbeat.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | let role = self.role; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_role` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ha/heartbeat.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | let mut packet = HeartbeatPacket::new(self.node_id, self.role); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/lib.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | if let Some(table) = table { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_table` [INFO] [stdout] --> src/lib.rs:299:25 [INFO] [stdout] | [INFO] [stdout] 299 | if let Some(ts_table) = ts_table { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:921:22 [INFO] [stdout] | [INFO] [stdout] 921 | for (i, field) in table_def.fields.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:1430:29 [INFO] [stdout] | [INFO] [stdout] 1430 | let has_active_tx = unsafe { crate::transaction::has_active_tx() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_field_by_offset`, `publish_to_pubsub_inline`, and `publish_to_pubsub` are never used [INFO] [stdout] --> src/table.rs:422:15 [INFO] [stdout] | [INFO] [stdout] 52 | impl MemoryTable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 422 | unsafe fn get_field_by_offset(&self, record_data: *const u8, offset: usize, data_type: DataType, size: usize) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 591 | unsafe fn publish_to_pubsub_inline(table_name: &str, record_size: usize, id: usize, record_data: *const u8, is_insert: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 758 | unsafe fn publish_to_pubsub(&self, id: usize, record_data: *const u8, is_insert: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `def` and `items` are never read [INFO] [stdout] --> src/index.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct PrimaryIndex { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 124 | /// 表定义 [INFO] [stdout] 125 | def: alloc::sync::Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | items: NonNull, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `def` is never read [INFO] [stdout] --> src/index.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 504 | pub struct SecondaryIndex { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 505 | /// 表定义 [INFO] [stdout] 506 | def: alloc::sync::Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `free_node` is never used [INFO] [stdout] --> src/index.rs:1067:15 [INFO] [stdout] | [INFO] [stdout] 971 | impl BTreeIndex { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1067 | unsafe fn free_node(&mut self, node_ptr: NonNull) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `free_node` is never used [INFO] [stdout] --> src/index.rs:1663:15 [INFO] [stdout] | [INFO] [stdout] 1570 | impl TTreeIndex { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1663 | unsafe fn free_node(&mut self, node_ptr: NonNull) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `log_file_size_limit` and `log_segment_size` are never read [INFO] [stdout] --> src/transaction.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct LogManager { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 182 | log_file_size_limit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 183 | /// 日志分段大小 [INFO] [stdout] 184 | log_segment_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_eof` is never used [INFO] [stdout] --> src/sql/query_parser.rs:1760:8 [INFO] [stdout] | [INFO] [stdout] 344 | impl SqlParser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1760 | fn is_eof(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_field_value_from_condition` is never used [INFO] [stdout] --> src/sql/query_executor.rs:868:4 [INFO] [stdout] | [INFO] [stdout] 868 | fn get_field_value_from_condition<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_at_time_zone` is never used [INFO] [stdout] --> src/sql/query_executor.rs:4935:4 [INFO] [stdout] | [INFO] [stdout] 4935 | fn process_at_time_zone(timestamp: &crate::types::db_timestamp, timezone_spec: &str) -> Result src/sql/query_executor.rs:4959:4 [INFO] [stdout] | [INFO] [stdout] 4959 | fn process_timezone_function(timezone_spec: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_to_columns` is never used [INFO] [stdout] --> src/sql/result_set.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn string_to_columns(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `values_to_string` is never used [INFO] [stdout] --> src/sql/result_set.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn values_to_string(values: &[TypedValue]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_global_pubsub` is never used [INFO] [stdout] --> src/pubsub/mod.rs:487:15 [INFO] [stdout] | [INFO] [stdout] 487 | pub(crate) fn get_global_pubsub() -> Option<&'static mut PubSub> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer_size` is never read [INFO] [stdout] --> src/pubsub/udp.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct PosixUdpSocket { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | buffer_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `topic_id` is never read [INFO] [stdout] --> src/pubsub/subscriber.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Subscriber { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | topic_id: u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initialized` is never read [INFO] [stdout] --> src/ha/manager.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct HAManager { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WAL_REPLICATION_TOPIC` is never used [INFO] [stdout] --> src/ha/replication.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const WAL_REPLICATION_TOPIC: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `total_slaves`, `lock`, and `is_initialized` are never read [INFO] [stdout] --> src/ha/replication.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct ReplicationManager { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | total_slaves: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 84 | /// 自旋锁 [INFO] [stdout] 85 | lock: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 86 | /// 是否初始化 [INFO] [stdout] 87 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initialized` is never read [INFO] [stdout] --> src/ha/heartbeat.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct HeartbeatMonitor { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 78 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_heartbeat` and `send_heartbeat` are never used [INFO] [stdout] --> src/ha/heartbeat.rs:403:8 [INFO] [stdout] | [INFO] [stdout] 231 | impl HeartbeatMonitor { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 403 | fn handle_heartbeat(&self, data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | fn send_heartbeat(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lock` and `is_initialized` are never read [INFO] [stdout] --> src/ha/role.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct RoleManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | lock: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | /// 是否初始化 [INFO] [stdout] 19 | is_initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | crate::transaction::TX_MANAGER.begin(tx_type, isolation_level, tx_buffer, log_buffer, max_log_items) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | crate::transaction::TX_MANAGER.commit() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | crate::transaction::TX_MANAGER.rollback(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:906:40 [INFO] [stdout] | [INFO] [stdout] 906 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1146:40 [INFO] [stdout] | [INFO] [stdout] 1146 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1966:12 [INFO] [stdout] | [INFO] [stdout] 1966 | Ok(DB_INSTANCE.as_mut().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1973:9 [INFO] [stdout] | [INFO] [stdout] 1973 | DB_INSTANCE.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1987:9 [INFO] [stdout] | [INFO] [stdout] 1987 | crate::transaction::TX_MANAGER.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:1989:9 [INFO] [stdout] | [INFO] [stdout] 1989 | crate::transaction::TX_MANAGER.clear_log_manager(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/table.rs:183:38 [INFO] [stdout] | [INFO] [stdout] 183 | let is_visible = crate::transaction::TX_MANAGER.is_visible( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 184 | | status.create_tx_id, [INFO] [stdout] 185 | | status.delete_tx_id, [INFO] [stdout] 186 | | current_tx_id [INFO] [stdout] 187 | | ); [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/table.rs:312:38 [INFO] [stdout] | [INFO] [stdout] 312 | let is_visible = crate::transaction::TX_MANAGER.is_visible( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 313 | | status.create_tx_id, [INFO] [stdout] 314 | | status.delete_tx_id, [INFO] [stdout] 315 | | current_tx_id [INFO] [stdout] 316 | | ); [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1650:5 [INFO] [stdout] | [INFO] [stdout] 1650 | TX_MANAGER.begin(tx_type, isolation_level, tx_buffer, log_buffer, max_log_items) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1655:5 [INFO] [stdout] | [INFO] [stdout] 1655 | TX_MANAGER.commit() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | TX_MANAGER.rollback(db) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/transaction.rs:1665:14 [INFO] [stdout] | [INFO] [stdout] 1665 | unsafe { TX_MANAGER.get_current_tx() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/transaction.rs:1670:14 [INFO] [stdout] | [INFO] [stdout] 1670 | unsafe { TX_MANAGER.has_active_tx() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1675:5 [INFO] [stdout] | [INFO] [stdout] 1675 | TX_MANAGER.set_low_power_mode(enabled); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/transaction.rs:1680:5 [INFO] [stdout] | [INFO] [stdout] 1680 | TX_MANAGER.set_log_manager(log_manager); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/pubsub/mod.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 374 | if PUB_SUB_INSTANCE.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/pubsub/mod.rs:489:9 [INFO] [stdout] | [INFO] [stdout] 489 | PUB_SUB_INSTANCE.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if HA_MANAGER.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | HA_MANAGER.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(manager) = &HA_MANAGER { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(manager) = &raw const HA_MANAGER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:170:32 [INFO] [stdout] | [INFO] [stdout] 170 | if let Some(manager) = &HA_MANAGER { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 170 | if let Some(manager) = &raw const HA_MANAGER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:181:32 [INFO] [stdout] | [INFO] [stdout] 181 | if let Some(manager) = HA_MANAGER.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:192:32 [INFO] [stdout] | [INFO] [stdout] 192 | if let Some(manager) = HA_MANAGER.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/mod.rs:203:32 [INFO] [stdout] | [INFO] [stdout] 203 | if let Some(manager) = &HA_MANAGER { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 203 | if let Some(manager) = &raw const HA_MANAGER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/replication.rs:375:52 [INFO] [stdout] | [INFO] [stdout] 375 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/ha/replication.rs:387:52 [INFO] [stdout] | [INFO] [stdout] 387 | if let Some(log_manager) = crate::transaction::TX_MANAGER.get_log_manager() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 52.44s [INFO] running `Command { std: "docker" "inspect" "de164a6c165d97c6d2dfacb00a35288582b14a26e5a9bf74537ef7721055f0fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de164a6c165d97c6d2dfacb00a35288582b14a26e5a9bf74537ef7721055f0fb", kill_on_drop: false }` [INFO] [stdout] de164a6c165d97c6d2dfacb00a35288582b14a26e5a9bf74537ef7721055f0fb