[INFO] fetching crate view-hardware 0.1.2... [INFO] building view-hardware-0.1.2 against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] extracting crate view-hardware 0.1.2 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate view-hardware 0.1.2 [INFO] finished tweaking crates.io crate view-hardware 0.1.2 [INFO] tweaked toml for crates.io crate view-hardware 0.1.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate view-hardware 0.1.2 on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate view-hardware 0.1.2 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81fe7c9a689d13d6e77906456b49fc568206793983795a84d8f223a24de8383b [INFO] running `Command { std: "docker" "start" "-a" "81fe7c9a689d13d6e77906456b49fc568206793983795a84d8f223a24de8383b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81fe7c9a689d13d6e77906456b49fc568206793983795a84d8f223a24de8383b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81fe7c9a689d13d6e77906456b49fc568206793983795a84d8f223a24de8383b", kill_on_drop: false }` [INFO] [stdout] 81fe7c9a689d13d6e77906456b49fc568206793983795a84d8f223a24de8383b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d88bca43b4aff71ebb2214a916b23c11c54df03c43963694b6ab505422cf2c4 [INFO] running `Command { std: "docker" "start" "-a" "9d88bca43b4aff71ebb2214a916b23c11c54df03c43963694b6ab505422cf2c4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling serde-xml-rs v0.6.0 [INFO] [stderr] Compiling view-hardware v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hardware.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Win { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 202 | pub fn build() -> Win { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn powershell(cmd: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_cpu() -> OptCPU { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn convert_cpu(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn get_memory() -> OptMemory { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn convert_memory(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | fn get_disk() -> OptDisk { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn convert_disk(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn get_memory_type(memory_type_seq: u32) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn rounding(mut d: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | fn total() -> Hardware { [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 `Mac` is never constructed [INFO] [stdout] --> src/hardware.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub struct Mac { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build`, `command`, `get_cpu`, `get_memory`, `get_disk`, and `rounding` are never used [INFO] [stdout] --> src/hardware.rs:351:8 [INFO] [stdout] | [INFO] [stdout] 350 | impl Mac { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 351 | fn build() -> Hardware { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 357 | fn command(cmd: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | fn get_cpu() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn get_memory() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | fn get_disk() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | fn rounding(mut d : u64) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `c`, `m`, and `d` are never read [INFO] [stdout] --> src/hardware.rs:459:5 [INFO] [stdout] | [INFO] [stdout] 458 | pub struct Linux { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 459 | c: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 460 | m: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 461 | d: Vec, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.33s [INFO] running `Command { std: "docker" "inspect" "9d88bca43b4aff71ebb2214a916b23c11c54df03c43963694b6ab505422cf2c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d88bca43b4aff71ebb2214a916b23c11c54df03c43963694b6ab505422cf2c4", kill_on_drop: false }` [INFO] [stdout] 9d88bca43b4aff71ebb2214a916b23c11c54df03c43963694b6ab505422cf2c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29591d8a23585fe0d21660d7b8af42eecd8ae70857f5f23d2e8171bf06590a6c [INFO] running `Command { std: "docker" "start" "-a" "29591d8a23585fe0d21660d7b8af42eecd8ae70857f5f23d2e8171bf06590a6c", kill_on_drop: false }` [INFO] [stderr] Compiling view-hardware v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/hardware.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Win { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 202 | pub fn build() -> Win { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn powershell(cmd: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_cpu() -> OptCPU { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn convert_cpu(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn get_memory() -> OptMemory { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn convert_memory(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | fn get_disk() -> OptDisk { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn convert_disk(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn get_memory_type(memory_type_seq: u32) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn rounding(mut d: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | fn total() -> Hardware { [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 `Mac` is never constructed [INFO] [stdout] --> src/hardware.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub struct Mac { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build`, `command`, `get_cpu`, `get_memory`, `get_disk`, and `rounding` are never used [INFO] [stdout] --> src/hardware.rs:351:8 [INFO] [stdout] | [INFO] [stdout] 350 | impl Mac { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] 351 | fn build() -> Hardware { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 357 | fn command(cmd: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | fn get_cpu() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn get_memory() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | fn get_disk() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | fn rounding(mut d : u64) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `c`, `m`, and `d` are never read [INFO] [stdout] --> src/hardware.rs:459:5 [INFO] [stdout] | [INFO] [stdout] 458 | pub struct Linux { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 459 | c: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 460 | m: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 461 | d: Vec, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "29591d8a23585fe0d21660d7b8af42eecd8ae70857f5f23d2e8171bf06590a6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29591d8a23585fe0d21660d7b8af42eecd8ae70857f5f23d2e8171bf06590a6c", kill_on_drop: false }` [INFO] [stdout] 29591d8a23585fe0d21660d7b8af42eecd8ae70857f5f23d2e8171bf06590a6c