[INFO] fetching crate opus-db 0.1.0... [INFO] testing opus-db-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 opus-db 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate opus-db 0.1.0 [INFO] finished tweaking crates.io crate opus-db 0.1.0 [INFO] tweaked toml for crates.io crate opus-db 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate opus-db 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 1 package to latest compatible version [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.9.1) [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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 3def89e7f749b25ae2cfe2a8390542f3a85544b98a7f81eefd978b1bf564710d [INFO] running `Command { std: "docker" "start" "-a" "3def89e7f749b25ae2cfe2a8390542f3a85544b98a7f81eefd978b1bf564710d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3def89e7f749b25ae2cfe2a8390542f3a85544b98a7f81eefd978b1bf564710d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3def89e7f749b25ae2cfe2a8390542f3a85544b98a7f81eefd978b1bf564710d", kill_on_drop: false }` [INFO] [stdout] 3def89e7f749b25ae2cfe2a8390542f3a85544b98a7f81eefd978b1bf564710d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] b92da5c5290bf5ed253ce6d0c102347cf49a613159e579b83ae2fac81722cc9c [INFO] running `Command { std: "docker" "start" "-a" "b92da5c5290bf5ed253ce6d0c102347cf49a613159e579b83ae2fac81722cc9c", kill_on_drop: false }` [INFO] [stderr] Compiling opus-db v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/lib.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `database` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait database { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Database` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AttributeHandler`, `Database`, `UserHandler`, and `env` [INFO] [stdout] --> src/lib.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | use super::{env, AttributeHandler, Database, UserHandler}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/attributes.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | fs::File::create(&base_dir.join("log")).unwrap_or(panic!("Could not open file")); [INFO] [stdout] | ^^^^^^^^^ ----------------------------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_log` [INFO] [stdout] --> src/attributes.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let file_log = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_log` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/attributes.rs:30:52 [INFO] [stdout] | [INFO] [stdout] 30 | fn new>(id: Id, parent_path: P, parent: Option) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/attributes.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissions` [INFO] [stdout] --> src/attributes.rs:51:39 [INFO] [stdout] | [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attribute_handler` and `user_handler` are never read [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Database { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 22 | base_dir: PathBuf, [INFO] [stdout] 23 | attribute_handler: AttributeHandler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | user_handler: UserHandler, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Database { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl UserHandler { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 61 | fn new>(parent_path: P) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct AttributeHandler { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 75 | base_dir: PathBuf, [INFO] [stdout] 76 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl AttributeHandler { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 80 | fn new>(parent_path: P) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_state`, `parent`, `base_dir`, `participants`, `children`, and `log_buffer` are never read [INFO] [stdout] --> src/attributes.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Attribute { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | current_state: String, // XXX: what should this type be? [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | parent: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | base_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | participants: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | children: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | log_buffer: io::BufWriter, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_participant`, and `remove_participant` are never used [INFO] [stdout] --> src/attributes.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Attribute { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn new>(id: Id, parent_path: P, parent: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn remove_participant(&mut self, participant_id: Id) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AttributeResult` is never used [INFO] [stdout] --> src/attributes.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | type AttributeResult = result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | Err(err) => panic!(err), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 32 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 32 - Err(err) => panic!(err), [INFO] [stdout] 32 + Err(err) => std::panic::panic_any(err), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "b92da5c5290bf5ed253ce6d0c102347cf49a613159e579b83ae2fac81722cc9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b92da5c5290bf5ed253ce6d0c102347cf49a613159e579b83ae2fac81722cc9c", kill_on_drop: false }` [INFO] [stdout] b92da5c5290bf5ed253ce6d0c102347cf49a613159e579b83ae2fac81722cc9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4f25010c2413e4e9ee0972831826d9091f7c42078fb9f95db175dce1e665bb96 [INFO] running `Command { std: "docker" "start" "-a" "4f25010c2413e4e9ee0972831826d9091f7c42078fb9f95db175dce1e665bb96", kill_on_drop: false }` [INFO] [stderr] Compiling opus-db v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/lib.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `database` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait database { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Database` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AttributeHandler`, `Database`, `UserHandler`, and `env` [INFO] [stdout] --> src/lib.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | use super::{env, AttributeHandler, Database, UserHandler}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/attributes.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | fs::File::create(&base_dir.join("log")).unwrap_or(panic!("Could not open file")); [INFO] [stdout] | ^^^^^^^^^ ----------------------------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_log` [INFO] [stdout] --> src/attributes.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let file_log = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_log` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/attributes.rs:30:52 [INFO] [stdout] | [INFO] [stdout] 30 | fn new>(id: Id, parent_path: P, parent: Option) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/attributes.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissions` [INFO] [stdout] --> src/attributes.rs:51:39 [INFO] [stdout] | [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attribute_handler` and `user_handler` are never read [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Database { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 22 | base_dir: PathBuf, [INFO] [stdout] 23 | attribute_handler: AttributeHandler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | user_handler: UserHandler, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Database { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl UserHandler { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 61 | fn new>(parent_path: P) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct AttributeHandler { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 75 | base_dir: PathBuf, [INFO] [stdout] 76 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl AttributeHandler { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 80 | fn new>(parent_path: P) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_state`, `parent`, `base_dir`, `participants`, `children`, and `log_buffer` are never read [INFO] [stdout] --> src/attributes.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Attribute { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | current_state: String, // XXX: what should this type be? [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | parent: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | base_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | participants: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | children: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | log_buffer: io::BufWriter, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_participant`, and `remove_participant` are never used [INFO] [stdout] --> src/attributes.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl Attribute { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn new>(id: Id, parent_path: P, parent: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn remove_participant(&mut self, participant_id: Id) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AttributeResult` is never used [INFO] [stdout] --> src/attributes.rs:63:6 [INFO] [stdout] | [INFO] [stdout] 63 | type AttributeResult = result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | Err(err) => panic!(err), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 32 | Err(err) => panic!("{}", err), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 32 - Err(err) => panic!(err), [INFO] [stdout] 32 + Err(err) => std::panic::panic_any(err), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `expected_root` in this scope [INFO] [stdout] --> src/lib.rs:106:48 [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!(attribute_handler.base_dir, expected_root); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `expected_root` in this scope [INFO] [stdout] --> src/lib.rs:118:43 [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(user_handler.base_dir, expected_root); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `expected_root` in this scope [INFO] [stdout] --> src/lib.rs:130:33 [INFO] [stdout] | [INFO] [stdout] 130 | assert_eq!(db.base_dir, expected_root); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/lib.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::result` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `database` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait database { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Database` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/attributes.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | fs::File::create(&base_dir.join("log")).unwrap_or(panic!("Could not open file")); [INFO] [stdout] | ^^^^^^^^^ ----------------------------- any code following this expression is unreachable [INFO] [stdout] | | [INFO] [stdout] | unreachable call [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_log` [INFO] [stdout] --> src/attributes.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let file_log = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_log` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/attributes.rs:30:52 [INFO] [stdout] | [INFO] [stdout] 30 | fn new>(id: Id, parent_path: P, parent: Option) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/attributes.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissions` [INFO] [stdout] --> src/attributes.rs:51:39 [INFO] [stdout] | [INFO] [stdout] 51 | fn add_participant(&self, id: Id, permissions: PermissionSet) -> AttributeResult { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `opus-db` (lib test) due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4f25010c2413e4e9ee0972831826d9091f7c42078fb9f95db175dce1e665bb96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f25010c2413e4e9ee0972831826d9091f7c42078fb9f95db175dce1e665bb96", kill_on_drop: false }` [INFO] [stdout] 4f25010c2413e4e9ee0972831826d9091f7c42078fb9f95db175dce1e665bb96