[INFO] fetching crate rudux 0.1.0... [INFO] testing rudux-0.1.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate rudux 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate rudux 0.1.0 [INFO] finished tweaking crates.io crate rudux 0.1.0 [INFO] tweaked toml for crates.io crate rudux 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rudux 0.1.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 36 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c413d8683abc85f96451696ff2475aca946fe2caf867d9e45b6a291d93016df [INFO] running `Command { std: "docker" "start" "-a" "1c413d8683abc85f96451696ff2475aca946fe2caf867d9e45b6a291d93016df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c413d8683abc85f96451696ff2475aca946fe2caf867d9e45b6a291d93016df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c413d8683abc85f96451696ff2475aca946fe2caf867d9e45b6a291d93016df", kill_on_drop: false }` [INFO] [stdout] 1c413d8683abc85f96451696ff2475aca946fe2caf867d9e45b6a291d93016df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 30e9e757499aa847518e78ee45b4e474cc688a11d96ce7b398f591d0e22801c4 [INFO] running `Command { std: "docker" "start" "-a" "30e9e757499aa847518e78ee45b4e474cc688a11d96ce7b398f591d0e22801c4", kill_on_drop: false }` [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rudux v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/store.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | let state = state2.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/store.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn with_state(mut self, state: State) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> src/store.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct StoreProxy [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | events: Arc>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoreProxy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stdout] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:198:15 [INFO] [stdout] | [INFO] [stdout] 198 | fn events(&self) -> MutexGuard> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 198 | fn events(&self) -> MutexGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stdout] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.22s [INFO] running `Command { std: "docker" "inspect" "30e9e757499aa847518e78ee45b4e474cc688a11d96ce7b398f591d0e22801c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30e9e757499aa847518e78ee45b4e474cc688a11d96ce7b398f591d0e22801c4", kill_on_drop: false }` [INFO] [stdout] 30e9e757499aa847518e78ee45b4e474cc688a11d96ce7b398f591d0e22801c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e6d84e453cf14b542e0f19a8ab403ee914e08a78e6a9aec4ffe6055b5d7d1e2c [INFO] running `Command { std: "docker" "start" "-a" "e6d84e453cf14b542e0f19a8ab403ee914e08a78e6a9aec4ffe6055b5d7d1e2c", kill_on_drop: false }` [INFO] [stderr] Compiling rudux v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/store.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | let state = state2.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/store.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn with_state(mut self, state: State) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> src/store.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct StoreProxy [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | events: Arc>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoreProxy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stdout] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:198:15 [INFO] [stdout] | [INFO] [stdout] 198 | fn events(&self) -> MutexGuard> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 198 | fn events(&self) -> MutexGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stdout] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/store.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | let state = state2.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/store.rs:123:23 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn with_state(mut self, state: State) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/store.rs:290:53 [INFO] [stdout] | [INFO] [stdout] 290 | let store = store.add_middleware_sync(move |proxy, evt, next| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/store.rs:303:53 [INFO] [stdout] | [INFO] [stdout] 303 | let store = store.add_middleware_sync(move |proxy, evt, next| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> src/store.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct StoreProxy [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | events: Arc>>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoreProxy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Decrement` is never constructed [INFO] [stdout] --> src/store.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 258 | enum TestEvent { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 259 | Increment, [INFO] [stdout] 260 | Decrement, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stdout] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:198:15 [INFO] [stdout] | [INFO] [stdout] 198 | fn events(&self) -> MutexGuard> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 198 | fn events(&self) -> MutexGuard<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/store.rs:202:18 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stdout] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "e6d84e453cf14b542e0f19a8ab403ee914e08a78e6a9aec4ffe6055b5d7d1e2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6d84e453cf14b542e0f19a8ab403ee914e08a78e6a9aec4ffe6055b5d7d1e2c", kill_on_drop: false }` [INFO] [stdout] e6d84e453cf14b542e0f19a8ab403ee914e08a78e6a9aec4ffe6055b5d7d1e2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a747b90c4213278bef7a39a694d06d1adb771b548f4195dccbd7eca8dbb5e989 [INFO] running `Command { std: "docker" "start" "-a" "a747b90c4213278bef7a39a694d06d1adb771b548f4195dccbd7eca8dbb5e989", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/store.rs:109:21 [INFO] [stderr] | [INFO] [stderr] 109 | let state = state2.clone(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/store.rs:123:23 [INFO] [stderr] | [INFO] [stderr] 123 | pub fn with_state(mut self, state: State) -> Self { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `events` is never read [INFO] [stderr] --> src/store.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 42 | pub struct StoreProxy [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 49 | events: Arc>>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `StoreProxy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/store.rs:59:18 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stderr] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 59 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/store.rs:198:15 [INFO] [stderr] | [INFO] [stderr] 198 | fn events(&self) -> MutexGuard> { [INFO] [stderr] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 198 | fn events(&self) -> MutexGuard<'_, Vec> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/store.rs:202:18 [INFO] [stderr] | [INFO] [stderr] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard { [INFO] [stderr] | ^^^^^ --------------------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 202 | pub fn state(&self) -> std::sync::RwLockReadGuard<'_, State> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `proxy` [INFO] [stderr] --> src/store.rs:290:53 [INFO] [stderr] | [INFO] [stderr] 290 | let store = store.add_middleware_sync(move |proxy, evt, next| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `proxy` [INFO] [stderr] --> src/store.rs:303:53 [INFO] [stderr] | [INFO] [stderr] 303 | let store = store.add_middleware_sync(move |proxy, evt, next| { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stderr] [INFO] [stderr] warning: variant `Decrement` is never constructed [INFO] [stderr] --> src/store.rs:260:9 [INFO] [stderr] | [INFO] [stderr] 258 | enum TestEvent { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 259 | Increment, [INFO] [stderr] 260 | Decrement, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TestEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `rudux` (lib) generated 6 warnings (run `cargo fix --lib -p rudux` to apply 4 suggestions) [INFO] [stderr] warning: `rudux` (lib test) generated 9 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rudux-cf83a2ec68dc6e85) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test store::test::test_basic ... ok [INFO] [stdout] test store::test::test_middleware ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a747b90c4213278bef7a39a694d06d1adb771b548f4195dccbd7eca8dbb5e989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a747b90c4213278bef7a39a694d06d1adb771b548f4195dccbd7eca8dbb5e989", kill_on_drop: false }` [INFO] [stdout] a747b90c4213278bef7a39a694d06d1adb771b548f4195dccbd7eca8dbb5e989