[INFO] cloning repository https://github.com/keyqcloud/cgdb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/keyqcloud/cgdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeyqcloud%2Fcgdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeyqcloud%2Fcgdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51c36c8a177978745b569a346dac544bd89747e5 [INFO] testing keyqcloud/cgdb against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkeyqcloud%2Fcgdb" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/keyqcloud/cgdb [INFO] finished tweaking git repo https://github.com/keyqcloud/cgdb [INFO] tweaked toml for git repo https://github.com/keyqcloud/cgdb written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/keyqcloud/cgdb on toolchain 33835004928d3bf65db4d4712e1330766263b0bd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/keyqcloud/cgdb already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e044d4e236c24297a1dbec313d69389eafc5c8d32146b587541f6247e9c3b63 [INFO] running `Command { std: "docker" "start" "-a" "5e044d4e236c24297a1dbec313d69389eafc5c8d32146b587541f6247e9c3b63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e044d4e236c24297a1dbec313d69389eafc5c8d32146b587541f6247e9c3b63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e044d4e236c24297a1dbec313d69389eafc5c8d32146b587541f6247e9c3b63", kill_on_drop: false }` [INFO] [stdout] 5e044d4e236c24297a1dbec313d69389eafc5c8d32146b587541f6247e9c3b63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e101eedc83e3ec89dadfb1aced7452279297f668b310b49bdfa743006c6003c2 [INFO] running `Command { std: "docker" "start" "-a" "e101eedc83e3ec89dadfb1aced7452279297f668b310b49bdfa743006c6003c2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling hyper v0.14.29 [INFO] [stderr] Compiling cgdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokio::runtime` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/services/context_service.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/services/context_service.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | if let Some(context) = self.schema.get_context(context_id) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `label` and `properties` are never read [INFO] [stdout] --> src/database/node.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | pub id: u32, [INFO] [stdout] 4 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub properties: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_property` and `get_property` are never used [INFO] [stdout] --> src/database/node.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `label` and `properties` are never read [INFO] [stdout] --> src/database/edge.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Edge { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | pub properties: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_property` and `get_property` are never used [INFO] [stdout] --> src/database/edge.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Edge { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `properties` are never read [INFO] [stdout] --> src/models/context.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub id: u32, [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_property` and `get_property` are never used [INFO] [stdout] --> src/models/context.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Context { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> src/api/query.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/api/query.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Database { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_node(&mut self, node: Node) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_edge(&mut self, edge: Edge) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_node(&self, id: u32) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get_edge(&self, from: u32, to: u32) -> Option<&Edge> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn query_nodes_by_property(&self, key: &str, value: &str) -> Vec<&Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn query_edges_by_property(&self, key: &str, value: &str) -> Vec<&Edge> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/config/config.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/config/config.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(database_url: &str, max_connections: u32, timeout: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.83s [INFO] running `Command { std: "docker" "inspect" "e101eedc83e3ec89dadfb1aced7452279297f668b310b49bdfa743006c6003c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e101eedc83e3ec89dadfb1aced7452279297f668b310b49bdfa743006c6003c2", kill_on_drop: false }` [INFO] [stdout] e101eedc83e3ec89dadfb1aced7452279297f668b310b49bdfa743006c6003c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63e761308c239475bfa59bd774645611a5c72b3f030b120163f76a767757454a [INFO] running `Command { std: "docker" "start" "-a" "63e761308c239475bfa59bd774645611a5c72b3f030b120163f76a767757454a", kill_on_drop: false }` [INFO] [stderr] Compiling cgdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokio::runtime` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/services/context_service.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/services/context_service.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | if let Some(context) = self.schema.get_context(context_id) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `label` and `properties` are never read [INFO] [stdout] --> src/database/node.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | pub id: u32, [INFO] [stdout] 4 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub properties: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_property` and `get_property` are never used [INFO] [stdout] --> src/database/node.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `label` and `properties` are never read [INFO] [stdout] --> src/database/edge.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Edge { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | pub properties: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_property` and `get_property` are never used [INFO] [stdout] --> src/database/edge.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Edge { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `properties` are never read [INFO] [stdout] --> src/models/context.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub id: u32, [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub properties: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_property` and `get_property` are never used [INFO] [stdout] --> src/models/context.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Context { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Database` is never constructed [INFO] [stdout] --> src/api/query.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Database { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/api/query.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Database { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn add_node(&mut self, node: Node) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add_edge(&mut self, edge: Edge) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_node(&self, id: u32) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get_edge(&self, from: u32, to: u32) -> Option<&Edge> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn query_nodes_by_property(&self, key: &str, value: &str) -> Vec<&Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn query_edges_by_property(&self, key: &str, value: &str) -> Vec<&Edge> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/config/config.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/config/config.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(database_url: &str, max_connections: u32, timeout: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.58s [INFO] running `Command { std: "docker" "inspect" "63e761308c239475bfa59bd774645611a5c72b3f030b120163f76a767757454a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63e761308c239475bfa59bd774645611a5c72b3f030b120163f76a767757454a", kill_on_drop: false }` [INFO] [stdout] 63e761308c239475bfa59bd774645611a5c72b3f030b120163f76a767757454a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c12aaa1446df5cab914b042c08dffd89e66fb56a9610d83f80d261a42a57f48a [INFO] running `Command { std: "docker" "start" "-a" "c12aaa1446df5cab914b042c08dffd89e66fb56a9610d83f80d261a42a57f48a", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `tokio::runtime` [INFO] [stdout] [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 5 | use tokio::runtime; [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/services/context_service.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `context` [INFO] [stderr] --> src/services/context_service.rs:27:21 [INFO] [stderr] | [INFO] [stderr] 27 | if let Some(context) = self.schema.get_context(context_id) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `label` and `properties` are never read [INFO] [stderr] --> src/database/node.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct Node { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 3 | pub id: u32, [INFO] [stderr] 4 | pub label: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 5 | pub properties: std::collections::HashMap, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `add_property` and `get_property` are never used [INFO] [stderr] --> src/database/node.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl Node { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `label` and `properties` are never read [INFO] [stderr] --> src/database/edge.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct Edge { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 5 | pub label: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 6 | pub properties: std::collections::HashMap, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `add_property` and `get_property` are never used [INFO] [stderr] --> src/database/edge.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl Edge { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 19 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `name` and `properties` are never read [INFO] [stderr] --> src/models/context.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Context { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 5 | pub id: u32, [INFO] [stderr] 6 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 7 | pub properties: HashMap, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `add_property` and `get_property` are never used [INFO] [stderr] --> src/models/context.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl Context { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 19 | pub fn add_property(&mut self, key: &str, value: &str) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | pub fn get_property(&self, key: &str) -> Option<&String> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Database` is never constructed [INFO] [stderr] --> src/api/query.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Database { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/api/query.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl Database { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 11 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | pub fn add_node(&mut self, node: Node) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn add_edge(&mut self, edge: Edge) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn get_node(&self, id: u32) -> Option<&Node> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn get_edge(&self, from: u32, to: u32) -> Option<&Edge> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn query_nodes_by_property(&self, key: &str, value: &str) -> Vec<&Node> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub fn query_edges_by_property(&self, key: &str, value: &str) -> Vec<&Edge> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Config` is never constructed [INFO] [stderr] --> src/config/config.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct Config { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/config/config.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 8 | impl Config { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 9 | pub fn new(database_url: &str, max_connections: u32, timeout: u32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `cgdb` (bin "cgdb" test) generated 13 warnings (run `cargo fix --bin "cgdb" -p cgdb --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/cgdb-9f1b7c7e03cf884b) [INFO] running `Command { std: "docker" "inspect" "c12aaa1446df5cab914b042c08dffd89e66fb56a9610d83f80d261a42a57f48a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c12aaa1446df5cab914b042c08dffd89e66fb56a9610d83f80d261a42a57f48a", kill_on_drop: false }` [INFO] [stdout] c12aaa1446df5cab914b042c08dffd89e66fb56a9610d83f80d261a42a57f48a