[INFO] fetching crate systemstat 0.1.5... [INFO] checking systemstat-0.1.5 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] extracting crate systemstat 0.1.5 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate systemstat 0.1.5 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate systemstat 0.1.5 [INFO] finished tweaking crates.io crate systemstat 0.1.5 [INFO] tweaked toml for crates.io crate systemstat 0.1.5 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate crates.io crate systemstat 0.1.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba074fce9a2d12aad42612f8da130fd89ed13b79bf3256c7d2744b703014f82d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ba074fce9a2d12aad42612f8da130fd89ed13b79bf3256c7d2744b703014f82d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba074fce9a2d12aad42612f8da130fd89ed13b79bf3256c7d2744b703014f82d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba074fce9a2d12aad42612f8da130fd89ed13b79bf3256c7d2744b703014f82d", kill_on_drop: false }` [INFO] [stdout] ba074fce9a2d12aad42612f8da130fd89ed13b79bf3256c7d2744b703014f82d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccbc4576b0cf5c62c59a19b93bedd7e60fb804fd13127fd4f21f20fac8b1f472 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ccbc4576b0cf5c62c59a19b93bedd7e60fb804fd13127fd4f21f20fac8b1f472", kill_on_drop: false }` [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking chrono v0.4.9 [INFO] [stderr] Checking systemstat v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/common.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | let measurement = try!(self.cpu_load()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/common.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | Ok(Utc::now() - try!(time::Duration::from_std(ut) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | try!(read_file(path)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:406:23 [INFO] [stdout] | [INFO] [stdout] 406 | let entries = try!(fs::read_dir(&dir)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:414:25 [INFO] [stdout] | [INFO] [stdout] 414 | full += try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:418:24 [INFO] [stdout] | [INFO] [stdout] 418 | now += try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:422:28 [INFO] [stdout] | [INFO] [stdout] 422 | current += try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:445:23 [INFO] [stdout] | [INFO] [stdout] 445 | let entries = try!(fs::read_dir(&dir)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:451:26 [INFO] [stdout] | [INFO] [stdout] 451 | on_ac |= try!(value_from_file::(&(s.to_string() + "/online")).map(|v| v == 1)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:490:44 [INFO] [stdout] | [INFO] [stdout] 490 | let stats: Vec = try!(read_file("/proc/diskstats") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:511:29 [INFO] [stdout] | [INFO] [stdout] 511 | let rx_bytes: u64 = try!(value_from_file::(&stats_file("rx_bytes"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:512:29 [INFO] [stdout] | [INFO] [stdout] 512 | let tx_bytes: u64 = try!(value_from_file::(&stats_file("tx_bytes"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:513:31 [INFO] [stdout] | [INFO] [stdout] 513 | let rx_packets: u64 = try!(value_from_file::(&stats_file("rx_packets"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:514:31 [INFO] [stdout] | [INFO] [stdout] 514 | let tx_packets: u64 = try!(value_from_file::(&stats_file("tx_packets"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:515:30 [INFO] [stdout] | [INFO] [stdout] 515 | let rx_errors: u64 = try!(value_from_file::(&stats_file("rx_errors"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:516:30 [INFO] [stdout] | [INFO] [stdout] 516 | let tx_errors: u64 = try!(value_from_file::(&stats_file("tx_errors"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | try!(read_file("/proc/net/sockstat") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:548:13 [INFO] [stdout] | [INFO] [stdout] 548 | try!(read_file("/proc/net/sockstat6") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | /// Parse an unsigned integer out of a string, surrounded by whitespace [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | /// Parse `cpuX`, where X is a number [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | /// Parse a `/proc/stat` CPU line into a `CpuTime` struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | /// Parse the top CPU load aggregate line of `/proc/stat` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | /// Parse `/proc/stat` to extract per-CPU loads [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | /// Parse a `/proc/meminfo` line into (key, ByteSize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | /// Optionally parse a `/proc/meminfo` line` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 | /// Parse `/proc/meminfo` into a hashmap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | /// Parse a single word [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | /// Parse a `/proc/mounts` line to get a mountpoint [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | /// Parse `/proc/mounts` to get a list of mountpoints [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | /// Parse `/proc/net/sockstat` to get socket statistics [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | /// Parse `/proc/net/sockstat6` to get socket statistics [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:254:1 [INFO] [stdout] | [INFO] [stdout] 254 | /// Parse a line of `/proc/diskstats` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:289:1 [INFO] [stdout] | [INFO] [stdout] 289 | /// Parse `/proc/diskstats` to get a Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/platform/unix.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | let ifa = unsafe { (*ifap) }; [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/data.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | res: Box io::Result + Send>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/data.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(f: Box io::Result + Send>) -> DelayedMeasurement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/common.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | let measurement = try!(self.cpu_load()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/common.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | Ok(Utc::now() - try!(time::Duration::from_std(ut) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | try!(read_file(path)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:406:23 [INFO] [stdout] | [INFO] [stdout] 406 | let entries = try!(fs::read_dir(&dir)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:414:25 [INFO] [stdout] | [INFO] [stdout] 414 | full += try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:418:24 [INFO] [stdout] | [INFO] [stdout] 418 | now += try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:422:28 [INFO] [stdout] | [INFO] [stdout] 422 | current += try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:445:23 [INFO] [stdout] | [INFO] [stdout] 445 | let entries = try!(fs::read_dir(&dir)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:451:26 [INFO] [stdout] | [INFO] [stdout] 451 | on_ac |= try!(value_from_file::(&(s.to_string() + "/online")).map(|v| v == 1)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:490:44 [INFO] [stdout] | [INFO] [stdout] 490 | let stats: Vec = try!(read_file("/proc/diskstats") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:511:29 [INFO] [stdout] | [INFO] [stdout] 511 | let rx_bytes: u64 = try!(value_from_file::(&stats_file("rx_bytes"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:512:29 [INFO] [stdout] | [INFO] [stdout] 512 | let tx_bytes: u64 = try!(value_from_file::(&stats_file("tx_bytes"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:513:31 [INFO] [stdout] | [INFO] [stdout] 513 | let rx_packets: u64 = try!(value_from_file::(&stats_file("rx_packets"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:514:31 [INFO] [stdout] | [INFO] [stdout] 514 | let tx_packets: u64 = try!(value_from_file::(&stats_file("tx_packets"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:515:30 [INFO] [stdout] | [INFO] [stdout] 515 | let rx_errors: u64 = try!(value_from_file::(&stats_file("rx_errors"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:516:30 [INFO] [stdout] | [INFO] [stdout] 516 | let tx_errors: u64 = try!(value_from_file::(&stats_file("tx_errors"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | try!(read_file("/proc/net/sockstat") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/platform/linux.rs:548:13 [INFO] [stdout] | [INFO] [stdout] 548 | try!(read_file("/proc/net/sockstat6") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | /// Parse an unsigned integer out of a string, surrounded by whitespace [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | /// Parse `cpuX`, where X is a number [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | /// Parse a `/proc/stat` CPU line into a `CpuTime` struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | /// Parse the top CPU load aggregate line of `/proc/stat` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | /// Parse `/proc/stat` to extract per-CPU loads [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | /// Parse a `/proc/meminfo` line into (key, ByteSize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | /// Optionally parse a `/proc/meminfo` line` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 | /// Parse `/proc/meminfo` into a hashmap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | /// Parse a single word [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | /// Parse a `/proc/mounts` line to get a mountpoint [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:178:1 [INFO] [stdout] | [INFO] [stdout] 178 | /// Parse `/proc/mounts` to get a list of mountpoints [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | /// Parse `/proc/net/sockstat` to get socket statistics [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 217 | /// Parse `/proc/net/sockstat6` to get socket statistics [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:254:1 [INFO] [stdout] | [INFO] [stdout] 254 | /// Parse a line of `/proc/diskstats` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/platform/linux.rs:289:1 [INFO] [stdout] | [INFO] [stdout] 289 | /// Parse `/proc/diskstats` to get a Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/platform/unix.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | let ifa = unsafe { (*ifap) }; [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/data.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | res: Box io::Result + Send>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/data.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(f: Box io::Result + Send>) -> DelayedMeasurement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/platform/linux.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | .trim_right_matches("\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/platform/linux.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | .trim_right_matches("\n") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/platform/common.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/platform/common.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/platform/common.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/platform/common.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")))) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/platform/unix.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut entry = result.entry(name.clone()).or_insert(Network { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/platform/unix.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut entry = result.entry(name.clone()).or_insert(Network { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.42s [INFO] running `Command { std: "docker" "inspect" "ccbc4576b0cf5c62c59a19b93bedd7e60fb804fd13127fd4f21f20fac8b1f472", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccbc4576b0cf5c62c59a19b93bedd7e60fb804fd13127fd4f21f20fac8b1f472", kill_on_drop: false }` [INFO] [stdout] ccbc4576b0cf5c62c59a19b93bedd7e60fb804fd13127fd4f21f20fac8b1f472