[INFO] fetching crate jbod 1.0.2...
[INFO] building jbod-1.0.2 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1
[INFO] extracting crate jbod 1.0.2 into /workspace/builds/worker-0-tc1/source
[INFO] started tweaking crates.io crate jbod 1.0.2
[INFO] finished tweaking crates.io crate jbod 1.0.2
[INFO] tweaked toml for crates.io crate jbod 1.0.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate jbod 1.0.2 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate jbod 1.0.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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tungstenite v0.11.1
[INFO] [stderr]   Downloaded tokio-macros v0.2.6
[INFO] [stderr]   Downloaded pin-project v0.4.29
[INFO] [stderr]   Downloaded execute-command-macro-impl v0.1.7
[INFO] [stderr]   Downloaded execute v0.2.10
[INFO] [stderr]   Downloaded httpdate v0.3.2
[INFO] [stderr]   Downloaded warp v0.2.5
[INFO] [stderr]   Downloaded prettytable-rs v0.8.0
[INFO] [stderr]   Downloaded yaml-rust v0.3.5
[INFO] [stderr]   Downloaded procfs v0.7.9
[INFO] [stderr]   Downloaded subprocess v0.2.8
[INFO] [stderr]   Downloaded term v0.5.2
[INFO] [stderr]   Downloaded prometheus v0.9.0
[INFO] [stderr]   Downloaded hyper v0.13.10
[INFO] [stderr]   Downloaded syn v1.0.90
[INFO] [stderr]   Downloaded http-body v0.3.1
[INFO] [stderr]   Downloaded pin-project-internal v0.4.29
[INFO] [stderr]   Downloaded tokio-tungstenite v0.11.0
[INFO] [stderr]   Downloaded quote v1.0.17
[INFO] [stderr]   Downloaded execute-command-macro v0.1.7
[INFO] [stderr]   Downloaded execute-command-tokens v0.1.5
[INFO] [stderr]   Downloaded input_buffer v0.3.1
[INFO] [stderr]   Downloaded urlencoding v1.3.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 147c9728936297b4c83d69e12fdaebea62218b30f1798aabdc790b576ae22fb6
[INFO] running `Command { std: "docker" "start" "-a" "147c9728936297b4c83d69e12fdaebea62218b30f1798aabdc790b576ae22fb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "147c9728936297b4c83d69e12fdaebea62218b30f1798aabdc790b576ae22fb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "147c9728936297b4c83d69e12fdaebea62218b30f1798aabdc790b576ae22fb6", kill_on_drop: false }`
[INFO] [stdout] 147c9728936297b4c83d69e12fdaebea62218b30f1798aabdc790b576ae22fb6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f00fc0b08ad0349e4d5ff2cccaa4a8242182be17f1f7b5940349b0f89286d4e3
[INFO] running `Command { std: "docker" "start" "-a" "f00fc0b08ad0349e4d5ff2cccaa4a8242182be17f1f7b5940349b0f89286d4e3", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.121
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling syn v1.0.90
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling typenum v1.15.0
[INFO] [stderr]    Compiling generic-array v0.14.5
[INFO] [stderr]    Compiling log v0.4.16
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling itoa v1.0.1
[INFO] [stderr]    Compiling bytes v0.5.6
[INFO] [stderr]    Compiling slab v0.4.5
[INFO] [stderr]    Compiling bytes v1.1.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.8
[INFO] [stderr]    Compiling futures-sink v0.3.21
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]    Compiling tinyvec_macros v0.1.0
[INFO] [stderr]    Compiling serde v1.0.136
[INFO] [stderr]    Compiling tinyvec v1.5.1
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]    Compiling matches v0.1.9
[INFO] [stderr]    Compiling quote v1.0.17
[INFO] [stderr]    Compiling http v0.2.6
[INFO] [stderr]    Compiling httparse v1.6.0
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling pin-project-lite v0.1.12
[INFO] [stderr]    Compiling cpufeatures v0.2.2
[INFO] [stderr]    Compiling unicode-bidi v0.3.7
[INFO] [stderr]    Compiling ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling unicode-normalization v0.1.19
[INFO] [stderr]    Compiling iovec v0.1.4
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling net2 v0.2.37
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling mio v0.6.23
[INFO] [stderr]    Compiling form_urlencoded v1.0.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling indexmap v1.8.1
[INFO] [stderr]    Compiling tracing-core v0.1.23
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling itoa v0.4.8
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling pin-project-internal v0.4.29
[INFO] [stderr]    Compiling tracing v0.1.32
[INFO] [stderr]    Compiling url v2.2.2
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling crypto-common v0.1.3
[INFO] [stderr]    Compiling block-buffer v0.10.2
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling mime v0.3.16
[INFO] [stderr]    Compiling ryu v1.0.9
[INFO] [stderr]    Compiling rle-decode-fast v1.0.3
[INFO] [stderr]    Compiling libflate_lz77 v1.1.0
[INFO] [stderr]    Compiling sha-1 v0.9.8
[INFO] [stderr]    Compiling digest v0.10.3
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling input_buffer v0.3.1
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling base64 v0.12.3
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling protobuf v2.27.1
[INFO] [stderr]    Compiling try-lock v0.2.3
[INFO] [stderr]    Compiling fastrand v1.7.0
[INFO] [stderr]    Compiling unicode-width v0.1.9
[INFO] [stderr]    Compiling execute-command-tokens v0.1.5
[INFO] [stderr]    Compiling remove_dir_all v0.5.3
[INFO] [stderr]    Compiling serde_json v1.0.79
[INFO] [stderr]    Compiling libflate v1.2.0
[INFO] [stderr]    Compiling tungstenite v0.11.1
[INFO] [stderr]    Compiling bstr v0.2.17
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling tempfile v3.3.0
[INFO] [stderr]    Compiling buf_redux v0.8.4
[INFO] [stderr]    Compiling sha-1 v0.10.0
[INFO] [stderr]    Compiling tokio-macros v0.2.6
[INFO] [stderr]    Compiling pin-project-internal v1.0.10
[INFO] [stderr]    Compiling execute-command-macro-impl v0.1.7
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling headers-core v0.2.0
[INFO] [stderr]    Compiling http-body v0.3.1
[INFO] [stderr]    Compiling dirs v1.0.5
[INFO] [stderr]    Compiling tokio v0.2.25
[INFO] [stderr]    Compiling socket2 v0.3.19
[INFO] [stderr]    Compiling twoway v0.1.8
[INFO] [stderr]    Compiling csv-core v0.1.10
[INFO] [stderr]    Compiling prometheus v0.9.0
[INFO] [stderr]    Compiling httpdate v0.3.2
[INFO] [stderr]    Compiling base64 v0.13.0
[INFO] [stderr]    Compiling dtoa v0.4.8
[INFO] [stderr]    Compiling tower-service v0.3.1
[INFO] [stderr]    Compiling httpdate v1.0.2
[INFO] [stderr]    Compiling futures-io v0.3.21
[INFO] [stderr]    Compiling procfs v0.7.9
[INFO] [stderr]    Compiling pin-project v1.0.10
[INFO] [stderr]    Compiling serde_urlencoded v0.6.1
[INFO] [stderr]    Compiling futures v0.3.21
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling thiserror v1.0.30
[INFO] [stderr]    Compiling csv v1.1.6
[INFO] [stderr]    Compiling multipart v0.17.1
[INFO] [stderr]    Compiling headers v0.3.7
[INFO] [stderr]    Compiling term v0.5.2
[INFO] [stderr]    Compiling execute-command-macro v0.1.7
[INFO] [stderr]    Compiling pin-project v0.4.29
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling yaml-rust v0.3.5
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling ansi_term v0.12.1
[INFO] [stderr]    Compiling encode_unicode v0.3.6
[INFO] [stderr]    Compiling urlencoding v1.3.3
[INFO] [stderr]    Compiling scoped-tls v1.0.0
[INFO] [stderr]    Compiling clap v2.34.0
[INFO] [stderr]    Compiling nix v0.22.3
[INFO] [stderr]    Compiling prettytable-rs v0.8.0
[INFO] [stderr]    Compiling execute v0.2.10
[INFO] [stderr]    Compiling colored v2.0.0
[INFO] [stderr]    Compiling subprocess v0.2.8
[INFO] [stderr]    Compiling tokio-util v0.3.1
[INFO] [stderr]    Compiling tokio-tungstenite v0.11.0
[INFO] [stderr]    Compiling h2 v0.2.7
[INFO] [stderr]    Compiling hyper v0.13.10
[INFO] [stderr]    Compiling warp v0.2.5
[INFO] [stderr]    Compiling jbod v1.0.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[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: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HistogramOpts`, `HistogramVec`, `IntCounterVec`, and `IntCounter`
[INFO] [stdout]   --> src/prometheus.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     HistogramOpts, HistogramVec, IntCounter, IntCounterVec, IntGauge, IntGaugeVec, Opts, Registry,
[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 imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[INFO] [stdout]    |                                       ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `return` value
[INFO] [stdout]   --> src/prometheus.rs:91:11
[INFO] [stdout]    |
[INFO] [stdout] 91 |     return(enclosure.len() as i64)
[INFO] [stdout]    |           ^                      ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 91 -     return(enclosure.len() as i64)
[INFO] [stdout] 91 +     return enclosure.len() as i64
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_string_numeric` is never used
[INFO] [stdout]   --> src/utils/helper.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn is_string_numeric(s: String) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:264:5
[INFO] [stdout]     |
[INFO] [stdout] 264 | /     match matches.subcommand() {
[INFO] [stdout] 265 | |         ("list", Some(m)) => enclosure_overview(m),
[INFO] [stdout] 266 | |         ("led", Some(m)) => DiskShelf::jbod_led_switch(m),
[INFO] [stdout] 267 | |         ("prometheus", Some(m)) => fork_prometheus(m),
[INFO] [stdout] 268 | |         _ => Ok(help()),
[INFO] [stdout] 269 | |     };
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 264 |     let _ = match matches.subcommand() {
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `device_path`, `device_map`, `fw_revision`, `led_locate_path`, and `led_fault_path` are never read
[INFO] [stdout]   --> src/jbod/disks.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub struct Disk {
[INFO] [stdout]    |                ---- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 51 |         pub device_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 52 |         // Disk map, example: /dev/sdcz
[INFO] [stdout] 53 |         pub device_map: String,
[INFO] [stdout]    |             ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |         pub fw_revision: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 58 |         // Path to led control file
[INFO] [stdout] 59 |         pub led_locate_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 60 |         // Path to led control file
[INFO] [stdout] 61 |         pub led_fault_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Disk` 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: function `set_disk_led_locate` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:197:8
[INFO] [stdout]     |
[INFO] [stdout] 197 |     fn set_disk_led_locate(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_disk_led_fault` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:242:8
[INFO] [stdout]     |
[INFO] [stdout] 242 |     fn set_disk_led_fault(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jbod_led_switch` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:418:12
[INFO] [stdout]     |
[INFO] [stdout] 418 |     pub fn jbod_led_switch(options: &ArgMatches) -> Result<(), ()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `slot` and `comment` are never read
[INFO] [stdout]   --> src/jbod/enclosure.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub struct EnclosureFan {
[INFO] [stdout]    |                ------------ fields in this struct
[INFO] [stdout] 55 |         /// The slot number provided by the JBOD
[INFO] [stdout] 56 |         pub slot: String,
[INFO] [stdout]    |             ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |         pub comment: String,
[INFO] [stdout]    |             ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EnclosureFan` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_fan_table` is never used
[INFO] [stdout]   --> src/jbod/enclosure.rs:99:12
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn create_fan_table() -> Table {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `JBOD_EXPORTER` is never used
[INFO] [stdout]   --> src/utils/helper.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub const JBOD_EXPORTER: &str = "/usr/bin/prometheus-jbod-exporter";
[INFO] [stdout]    |               ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_binary_needed` is never used
[INFO] [stdout]   --> src/utils/helper.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn verify_binary_needed() {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 48s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "f00fc0b08ad0349e4d5ff2cccaa4a8242182be17f1f7b5940349b0f89286d4e3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f00fc0b08ad0349e4d5ff2cccaa4a8242182be17f1f7b5940349b0f89286d4e3", kill_on_drop: false }`
[INFO] [stdout] f00fc0b08ad0349e4d5ff2cccaa4a8242182be17f1f7b5940349b0f89286d4e3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fe76366ace17cbedcac70cfe830cf57a0ba1f4b604c36c91f0af2d0cc6958d28
[INFO] running `Command { std: "docker" "start" "-a" "fe76366ace17cbedcac70cfe830cf57a0ba1f4b604c36c91f0af2d0cc6958d28", kill_on_drop: false }`
[INFO] [stderr]    Compiling jbod v1.0.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[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: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HistogramOpts`, `HistogramVec`, `IntCounterVec`, and `IntCounter`
[INFO] [stdout]   --> src/prometheus.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     HistogramOpts, HistogramVec, IntCounter, IntCounterVec, IntGauge, IntGaugeVec, Opts, Registry,
[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 imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[INFO] [stdout]    |                                       ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `return` value
[INFO] [stdout]   --> src/prometheus.rs:91:11
[INFO] [stdout]    |
[INFO] [stdout] 91 |     return(enclosure.len() as i64)
[INFO] [stdout]    |           ^                      ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 91 -     return(enclosure.len() as i64)
[INFO] [stdout] 91 +     return enclosure.len() as i64
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_string_numeric` is never used
[INFO] [stdout]   --> src/utils/helper.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn is_string_numeric(s: String) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:264:5
[INFO] [stdout]     |
[INFO] [stdout] 264 | /     match matches.subcommand() {
[INFO] [stdout] 265 | |         ("list", Some(m)) => enclosure_overview(m),
[INFO] [stdout] 266 | |         ("led", Some(m)) => DiskShelf::jbod_led_switch(m),
[INFO] [stdout] 267 | |         ("prometheus", Some(m)) => fork_prometheus(m),
[INFO] [stdout] 268 | |         _ => Ok(help()),
[INFO] [stdout] 269 | |     };
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 264 |     let _ = match matches.subcommand() {
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `device_path`, `device_map`, `fw_revision`, `led_locate_path`, and `led_fault_path` are never read
[INFO] [stdout]   --> src/jbod/disks.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub struct Disk {
[INFO] [stdout]    |                ---- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 51 |         pub device_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 52 |         // Disk map, example: /dev/sdcz
[INFO] [stdout] 53 |         pub device_map: String,
[INFO] [stdout]    |             ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |         pub fw_revision: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 58 |         // Path to led control file
[INFO] [stdout] 59 |         pub led_locate_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 60 |         // Path to led control file
[INFO] [stdout] 61 |         pub led_fault_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Disk` 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: function `set_disk_led_locate` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:197:8
[INFO] [stdout]     |
[INFO] [stdout] 197 |     fn set_disk_led_locate(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_disk_led_fault` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:242:8
[INFO] [stdout]     |
[INFO] [stdout] 242 |     fn set_disk_led_fault(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jbod_led_switch` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:418:12
[INFO] [stdout]     |
[INFO] [stdout] 418 |     pub fn jbod_led_switch(options: &ArgMatches) -> Result<(), ()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `slot` and `comment` are never read
[INFO] [stdout]   --> src/jbod/enclosure.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub struct EnclosureFan {
[INFO] [stdout]    |                ------------ fields in this struct
[INFO] [stdout] 55 |         /// The slot number provided by the JBOD
[INFO] [stdout] 56 |         pub slot: String,
[INFO] [stdout]    |             ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |         pub comment: String,
[INFO] [stdout]    |             ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EnclosureFan` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_fan_table` is never used
[INFO] [stdout]   --> src/jbod/enclosure.rs:99:12
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn create_fan_table() -> Table {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `JBOD_EXPORTER` is never used
[INFO] [stdout]   --> src/utils/helper.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub const JBOD_EXPORTER: &str = "/usr/bin/prometheus-jbod-exporter";
[INFO] [stdout]    |               ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_binary_needed` is never used
[INFO] [stdout]   --> src/utils/helper.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn verify_binary_needed() {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.22s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "fe76366ace17cbedcac70cfe830cf57a0ba1f4b604c36c91f0af2d0cc6958d28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fe76366ace17cbedcac70cfe830cf57a0ba1f4b604c36c91f0af2d0cc6958d28", kill_on_drop: false }`
[INFO] [stdout] fe76366ace17cbedcac70cfe830cf57a0ba1f4b604c36c91f0af2d0cc6958d28
