[INFO] fetching crate sine_cache 0.2.0... [INFO] checking sine_cache-0.2.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate sine_cache 0.2.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate sine_cache 0.2.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sine_cache 0.2.0 [INFO] finished tweaking crates.io crate sine_cache 0.2.0 [INFO] tweaked toml for crates.io crate sine_cache 0.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 56 packages to latest compatible versions [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d17c3b980ba5c752fb4a27e52fe7e589b16f83e7d28a36536143959b60a2ee79 [INFO] running `Command { std: "docker" "start" "-a" "d17c3b980ba5c752fb4a27e52fe7e589b16f83e7d28a36536143959b60a2ee79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d17c3b980ba5c752fb4a27e52fe7e589b16f83e7d28a36536143959b60a2ee79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d17c3b980ba5c752fb4a27e52fe7e589b16f83e7d28a36536143959b60a2ee79", kill_on_drop: false }` [INFO] [stdout] d17c3b980ba5c752fb4a27e52fe7e589b16f83e7d28a36536143959b60a2ee79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3848a6b65c97c1d4f9c27a180d60d5f1217a32417d064ea437f791f7cdbd2321 [INFO] running `Command { std: "docker" "start" "-a" "3848a6b65c97c1d4f9c27a180d60d5f1217a32417d064ea437f791f7cdbd2321", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking sine_cache v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/eviction_policies/lru.rs (3 fixes) [INFO] [stderr] Fixed src/eviction_policies/tests/lru.rs (2 fixes) [INFO] [stderr] Fixed src/eviction_policies/tests/lfu.rs (2 fixes) [INFO] [stderr] Fixed src/eviction_policies/lfu.rs (5 fixes) [INFO] [stderr] Fixed src/cache.rs (1 fix) [INFO] [stderr] Fixed src/tests/test_aof.rs (3 fixes) [INFO] [stderr] Fixed src/eviction_policies/tests/fifo.rs (2 fixes) [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/eviction_policies/noevicton.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | fn on_get(&mut self, key: &K) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/eviction_policies/noevicton.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | fn on_set(&mut self, key: K) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/eviction_policies/noevicton.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | fn remove(&mut self, key: K) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aof.rs:202:15 [INFO] [stdout] | [INFO] [stdout] 202 | while let Some(r) = records_guard.pop_front() { [INFO] [stdout] | ^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/aof.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache.rs:184:19 [INFO] [stdout] | [INFO] [stdout] 184 | while let Ok(Some(record)) = iter.next().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/eviction_policies/fifo.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | while let Some(key) = self.queue.pop_front() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/eviction_policies/fifo.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/mod.rs from 2021 edition to 2024 [INFO] [stdout] error[E0412]: cannot find type `LRU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LRU` [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LRU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LRU` [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LRU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LRU` [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LRU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LRU` [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LRU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LRU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LRU` [INFO] [stdout] --> src/eviction_policies/tests/lru.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | let mut lru: LRU = LRU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LRU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lru::LRU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LFU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LFU` [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LFU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LFU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LFU` [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LFU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LFU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LFU` [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LFU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LFU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LFU` [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LFU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LFU` in this scope [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LFU` [INFO] [stdout] --> src/eviction_policies/tests/lfu.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | let mut lfu: LFU = LFU::new(); [INFO] [stdout] | ^^^ use of undeclared type `LFU` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::lfu::LFU; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FIFO` in this scope [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FIFO` [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ use of undeclared type `FIFO` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FIFO` in this scope [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FIFO` [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ use of undeclared type `FIFO` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FIFO` in this scope [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FIFO` [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ use of undeclared type `FIFO` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FIFO` in this scope [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FIFO` [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ use of undeclared type `FIFO` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FIFO` in this scope [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FIFO` [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ use of undeclared type `FIFO` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FIFO` in this scope [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FIFO` [INFO] [stdout] --> src/eviction_policies/tests/fifo.rs:74:31 [INFO] [stdout] | [INFO] [stdout] 74 | let mut fifo: FIFO = FIFO::new(); [INFO] [stdout] | ^^^^ use of undeclared type `FIFO` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use crate::eviction_policies::fifo::FIFO; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AOF` [INFO] [stdout] --> src/tests/test_aof.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | let _aof = AOF::new(test_file.to_string()).await; [INFO] [stdout] | ^^^ use of undeclared type `AOF` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::aof::AOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AOF` [INFO] [stdout] --> src/tests/test_aof.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | let ao_file = AOF::new(test_file.to_string()).await; [INFO] [stdout] | ^^^ use of undeclared type `AOF` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::aof::AOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let record = AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | operation: Operation::Put, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 26 | operation: Option::Put, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | let record = AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | operation: Operation::Put, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 36 | operation: Option::Put, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:47:41 [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(r.operation, Operation::Put); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(r.operation, Option::Put); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:51:41 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(r.operation, Operation::Put); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(r.operation, Option::Put); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AOF` [INFO] [stdout] --> src/tests/test_aof.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 66 | let aof = AOF::new(test_file.to_string()).await; [INFO] [stdout] | ^^^ use of undeclared type `AOF` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::aof::AOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 72 | let operations = vec![Option::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:72:43 [INFO] [stdout] | [INFO] [stdout] 72 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 72 | let operations = vec![Operation::Put, Option::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:72:59 [INFO] [stdout] | [INFO] [stdout] 72 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 72 | let operations = vec![Operation::Put, Operation::Get, Option::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WeightedIndex` [INFO] [stdout] --> src/tests/test_aof.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | let weighted_dist = WeightedIndex::new(weights).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WeightedIndex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::weighted::alias_method::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Operation::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 85 | Option::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | written_records.push(AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AOF` [INFO] [stdout] --> src/tests/test_aof.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | let mut aof = AOF::new(test_file.to_string()).await; [INFO] [stdout] | ^^^ use of undeclared type `AOF` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::aof::AOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:128:27 [INFO] [stdout] | [INFO] [stdout] 128 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 128 | let operations = vec![Option::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:128:43 [INFO] [stdout] | [INFO] [stdout] 128 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 128 | let operations = vec![Operation::Put, Option::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:128:59 [INFO] [stdout] | [INFO] [stdout] 128 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 128 | let operations = vec![Operation::Put, Operation::Get, Option::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WeightedIndex` [INFO] [stdout] --> src/tests/test_aof.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | let weighted_dist = WeightedIndex::new(weights).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WeightedIndex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::weighted::alias_method::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:131:19 [INFO] [stdout] | [INFO] [stdout] 131 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | Operation::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 141 | Option::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:144:30 [INFO] [stdout] | [INFO] [stdout] 144 | written_records.push(AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AOF` [INFO] [stdout] --> src/tests/test_aof.rs:180:15 [INFO] [stdout] | [INFO] [stdout] 180 | let aof = AOF::new(test_file.to_string()).await; [INFO] [stdout] | ^^^ use of undeclared type `AOF` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::aof::AOF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:186:27 [INFO] [stdout] | [INFO] [stdout] 186 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 186 | let operations = vec![Option::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:186:43 [INFO] [stdout] | [INFO] [stdout] 186 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 186 | let operations = vec![Operation::Put, Option::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:186:59 [INFO] [stdout] | [INFO] [stdout] 186 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 186 | let operations = vec![Operation::Put, Operation::Get, Option::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WeightedIndex` [INFO] [stdout] --> src/tests/test_aof.rs:188:25 [INFO] [stdout] | [INFO] [stdout] 188 | let weighted_dist = WeightedIndex::new(weights).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WeightedIndex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::weighted::alias_method::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:189:19 [INFO] [stdout] | [INFO] [stdout] 189 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | Operation::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 199 | Option::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:202:30 [INFO] [stdout] | [INFO] [stdout] 202 | written_records.push(AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheEventSubscriber` [INFO] [stdout] --> src/tests/test_aof.rs:228:22 [INFO] [stdout] | [INFO] [stdout] 228 | let subscriber = CacheEventSubscriber::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CacheEventSubscriber` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::cache_events::CacheEventSubscriber; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:238:27 [INFO] [stdout] | [INFO] [stdout] 238 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 238 | let operations = vec![Option::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:238:43 [INFO] [stdout] | [INFO] [stdout] 238 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 238 | let operations = vec![Operation::Put, Option::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:238:59 [INFO] [stdout] | [INFO] [stdout] 238 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 238 | let operations = vec![Operation::Put, Operation::Get, Option::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WeightedIndex` [INFO] [stdout] --> src/tests/test_aof.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | let weighted_dist = WeightedIndex::new(weights).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WeightedIndex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::weighted::alias_method::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:241:19 [INFO] [stdout] | [INFO] [stdout] 241 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | Operation::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 251 | Option::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | let r = AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheEventSubscriber` [INFO] [stdout] --> src/tests/test_aof.rs:283:22 [INFO] [stdout] | [INFO] [stdout] 283 | let subscriber = CacheEventSubscriber::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `CacheEventSubscriber` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::cache_events::CacheEventSubscriber; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:293:27 [INFO] [stdout] | [INFO] [stdout] 293 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 293 | let operations = vec![Option::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:293:43 [INFO] [stdout] | [INFO] [stdout] 293 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 293 | let operations = vec![Operation::Put, Option::Get, Operation::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:293:59 [INFO] [stdout] | [INFO] [stdout] 293 | let operations = vec![Operation::Put, Operation::Get, Operation::Remove]; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 293 | let operations = vec![Operation::Put, Operation::Get, Option::Remove]; [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WeightedIndex` [INFO] [stdout] --> src/tests/test_aof.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | let weighted_dist = WeightedIndex::new(weights).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WeightedIndex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] 2 + use rand::distributions::weighted::alias_method::WeightedIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:296:19 [INFO] [stdout] | [INFO] [stdout] 296 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/tests/test_aof.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | Operation::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Operation` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 306 | Option::Put => Some(format!("value{}", written_records.len())), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::Operation; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AOFRecord` in this scope [INFO] [stdout] --> src/tests/test_aof.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let r = AOFRecord { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::common::AOFRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/eviction_policies/noevicton.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | fn on_get(&mut self, key: &K) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/eviction_policies/noevicton.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | fn on_set(&mut self, key: K) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/eviction_policies/noevicton.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | fn remove(&mut self, key: K) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 82 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sine_cache` (lib test) due to 83 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed tests/async_cache/without_lof/lru.rs (2 fixes) [INFO] [stderr] Fixed tests/async_cache/without_lof/lfu.rs (1 fix) [INFO] [stderr] Fixed tests/sync_cache/lru.rs (2 fixes) [INFO] [stderr] Fixed tests/async_cache/with_lof/no_eviction.rs (2 fixes) [INFO] [stderr] Fixed tests/async_cache/without_lof/fifo.rs (1 fix) [INFO] [stdout] warning: unused import: `eviction_policies::common::EvictionPolicy` [INFO] [stdout] --> tests/sync_cache/lru.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | cache::Cache, config::CacheConfig, eviction_policies::common::EvictionPolicy [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3848a6b65c97c1d4f9c27a180d60d5f1217a32417d064ea437f791f7cdbd2321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3848a6b65c97c1d4f9c27a180d60d5f1217a32417d064ea437f791f7cdbd2321", kill_on_drop: false }` [INFO] [stdout] 3848a6b65c97c1d4f9c27a180d60d5f1217a32417d064ea437f791f7cdbd2321