[INFO] cloning repository https://github.com/pratikmishra356/apm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pratikmishra356/apm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpratikmishra356%2Fapm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpratikmishra356%2Fapm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 82e8f798feca2d13ef85cdaf5344683e9a02281e [INFO] checking pratikmishra356/apm against try#a7b168ac4977e8e93a43448b44847adaa305d5a9 for pr-150557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpratikmishra356%2Fapm" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pratikmishra356/apm [INFO] finished tweaking git repo https://github.com/pratikmishra356/apm [INFO] tweaked toml for git repo https://github.com/pratikmishra356/apm written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pratikmishra356/apm on toolchain a7b168ac4977e8e93a43448b44847adaa305d5a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pratikmishra356/apm 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" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af2f09da72666e0bb193e2cbdf820d62a829d03b45a4f871ccbd5ea57a31bd71 [INFO] running `Command { std: "docker" "start" "-a" "af2f09da72666e0bb193e2cbdf820d62a829d03b45a4f871ccbd5ea57a31bd71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af2f09da72666e0bb193e2cbdf820d62a829d03b45a4f871ccbd5ea57a31bd71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af2f09da72666e0bb193e2cbdf820d62a829d03b45a4f871ccbd5ea57a31bd71", kill_on_drop: false }` [INFO] [stdout] af2f09da72666e0bb193e2cbdf820d62a829d03b45a4f871ccbd5ea57a31bd71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c84b205bfeeb9e1afe2ab9b89850f7f6f4d7f3060913f15daed0976156d1ee71 [INFO] running `Command { std: "docker" "start" "-a" "c84b205bfeeb9e1afe2ab9b89850f7f6f4d7f3060913f15daed0976156d1ee71", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Checking apm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `APIEvent` is never constructed [INFO] [stdout] --> src/data.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct APIEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataStore` is never constructed [INFO] [stdout] --> src/data.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct DataStore { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventData` is never constructed [INFO] [stdout] --> src/data.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct EventData{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_event` and `query_event` are never used [INFO] [stdout] --> src/data.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl EventData { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 32 | [INFO] [stdout] 33 | pub fn insert_event(&mut self, event_data: APIEvent) -> Result<(),String>{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn query_event(&mut self, from: i64, to: i64, endpoint: String) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QueryType` is never used [INFO] [stdout] --> src/request.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum QueryType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `APMQueryRequest` is never constructed [INFO] [stdout] --> src/request.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct APMQueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_str` and `query` are never used [INFO] [stdout] --> src/request.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl APMQueryRequest { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 40 | [INFO] [stdout] 41 | pub fn from_str(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn query( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timestamp_to_seconds` is never used [INFO] [stdout] --> src/utils.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn timestamp_to_seconds(time: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `APMQueryResponse` is never used [INFO] [stdout] --> src/response.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum APMQueryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `query_throughput`, `query_error`, and `query_latency` are never used [INFO] [stdout] --> src/response.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl APMQueryResponse { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub fn query_throughput( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn query_error( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn query_latency( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_id` is never read [INFO] [stdout] --> src/data.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct APIEvent { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 9 | pub endpoint: String, [INFO] [stdout] 10 | pub event_id: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `APIEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status_code` is never read [INFO] [stdout] --> src/data.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct DataStore { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub status_code: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataStore` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.31s [INFO] running `Command { std: "docker" "inspect" "c84b205bfeeb9e1afe2ab9b89850f7f6f4d7f3060913f15daed0976156d1ee71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c84b205bfeeb9e1afe2ab9b89850f7f6f4d7f3060913f15daed0976156d1ee71", kill_on_drop: false }` [INFO] [stdout] c84b205bfeeb9e1afe2ab9b89850f7f6f4d7f3060913f15daed0976156d1ee71