[INFO] crate systemstat 0.1.5 is already in cache [INFO] testing systemstat-0.1.5 against beta-2020-07-24 for beta-1.46-1 [INFO] extracting crate systemstat 0.1.5 into /workspace/builds/worker-13/source [INFO] validating manifest of crates.io crate systemstat 0.1.5 on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "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-13/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" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89145d61eda116dedf4a75858a2cbe9df0fabf94cde5a23ced860825e987a3f2 [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" "89145d61eda116dedf4a75858a2cbe9df0fabf94cde5a23ced860825e987a3f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89145d61eda116dedf4a75858a2cbe9df0fabf94cde5a23ced860825e987a3f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89145d61eda116dedf4a75858a2cbe9df0fabf94cde5a23ced860825e987a3f2", kill_on_drop: false }` [INFO] [stdout] 89145d61eda116dedf4a75858a2cbe9df0fabf94cde5a23ced860825e987a3f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f90eb1914158c0866de04d09f25f28896cbcd310e05252a1e1f2eb1633d7fd7b [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" "f90eb1914158c0866de04d09f25f28896cbcd310e05252a1e1f2eb1633d7fd7b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling bytesize v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling chrono v0.4.9 [INFO] [stderr] Compiling systemstat v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item: `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: 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.30s [INFO] running `Command { std: "docker" "inspect" "f90eb1914158c0866de04d09f25f28896cbcd310e05252a1e1f2eb1633d7fd7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f90eb1914158c0866de04d09f25f28896cbcd310e05252a1e1f2eb1633d7fd7b", kill_on_drop: false }` [INFO] [stdout] f90eb1914158c0866de04d09f25f28896cbcd310e05252a1e1f2eb1633d7fd7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be9fabb88e3b897388275a5c3e96ab79c19fceb3f6cd1b1ab3f4ee72d402ffbe [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" "be9fabb88e3b897388275a5c3e96ab79c19fceb3f6cd1b1ab3f4ee72d402ffbe", kill_on_drop: false }` [INFO] [stderr] Compiling systemstat v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item: `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: 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: use of deprecated item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item '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 item: `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: 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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.19s [INFO] running `Command { std: "docker" "inspect" "be9fabb88e3b897388275a5c3e96ab79c19fceb3f6cd1b1ab3f4ee72d402ffbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be9fabb88e3b897388275a5c3e96ab79c19fceb3f6cd1b1ab3f4ee72d402ffbe", kill_on_drop: false }` [INFO] [stdout] be9fabb88e3b897388275a5c3e96ab79c19fceb3f6cd1b1ab3f4ee72d402ffbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 872e82fbd2bf8cd07cce7b9c96e395fcd613b1644ca4aedfc244420657af324e [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" "872e82fbd2bf8cd07cce7b9c96e395fcd613b1644ca4aedfc244420657af324e", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/common.rs:20:27 [INFO] [stderr] | [INFO] [stderr] 20 | let measurement = try!(self.cpu_load()); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/common.rs:46:29 [INFO] [stderr] | [INFO] [stderr] 46 | Ok(Utc::now() - try!(time::Duration::from_std(ut) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | try!(read_file(path)) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:406:23 [INFO] [stderr] | [INFO] [stderr] 406 | let entries = try!(fs::read_dir(&dir)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:414:25 [INFO] [stderr] | [INFO] [stderr] 414 | full += try!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:418:24 [INFO] [stderr] | [INFO] [stderr] 418 | now += try!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:422:28 [INFO] [stderr] | [INFO] [stderr] 422 | current += try!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:445:23 [INFO] [stderr] | [INFO] [stderr] 445 | let entries = try!(fs::read_dir(&dir)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:451:26 [INFO] [stderr] | [INFO] [stderr] 451 | on_ac |= try!(value_from_file::(&(s.to_string() + "/online")).map(|v| v == 1)) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:490:44 [INFO] [stderr] | [INFO] [stderr] 490 | let stats: Vec = try!(read_file("/proc/diskstats") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:511:29 [INFO] [stderr] | [INFO] [stderr] 511 | let rx_bytes: u64 = try!(value_from_file::(&stats_file("rx_bytes"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:512:29 [INFO] [stderr] | [INFO] [stderr] 512 | let tx_bytes: u64 = try!(value_from_file::(&stats_file("tx_bytes"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:513:31 [INFO] [stderr] | [INFO] [stderr] 513 | let rx_packets: u64 = try!(value_from_file::(&stats_file("rx_packets"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:514:31 [INFO] [stderr] | [INFO] [stderr] 514 | let tx_packets: u64 = try!(value_from_file::(&stats_file("tx_packets"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:515:30 [INFO] [stderr] | [INFO] [stderr] 515 | let rx_errors: u64 = try!(value_from_file::(&stats_file("rx_errors"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:516:30 [INFO] [stderr] | [INFO] [stderr] 516 | let tx_errors: u64 = try!(value_from_file::(&stats_file("tx_errors"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:540:13 [INFO] [stderr] | [INFO] [stderr] 540 | try!(read_file("/proc/net/sockstat") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:548:13 [INFO] [stderr] | [INFO] [stderr] 548 | try!(read_file("/proc/net/sockstat6") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:50:1 [INFO] [stderr] | [INFO] [stderr] 50 | /// Parse an unsigned integer out of a string, surrounded by whitespace [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | /// Parse `cpuX`, where X is a number [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:62:1 [INFO] [stderr] | [INFO] [stderr] 62 | /// Parse a `/proc/stat` CPU line into a `CpuTime` struct [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:84:1 [INFO] [stderr] | [INFO] [stderr] 84 | /// Parse the top CPU load aggregate line of `/proc/stat` [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:87:1 [INFO] [stderr] | [INFO] [stderr] 87 | /// Parse `/proc/stat` to extract per-CPU loads [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:108:1 [INFO] [stderr] | [INFO] [stderr] 108 | /// Parse a `/proc/meminfo` line into (key, ByteSize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:120:1 [INFO] [stderr] | [INFO] [stderr] 120 | /// Optionally parse a `/proc/meminfo` line` [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:126:1 [INFO] [stderr] | [INFO] [stderr] 126 | /// Parse `/proc/meminfo` into a hashmap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:150:1 [INFO] [stderr] | [INFO] [stderr] 150 | /// Parse a single word [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:163:1 [INFO] [stderr] | [INFO] [stderr] 163 | /// Parse a `/proc/mounts` line to get a mountpoint [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:178:1 [INFO] [stderr] | [INFO] [stderr] 178 | /// Parse `/proc/mounts` to get a list of mountpoints [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:191:1 [INFO] [stderr] | [INFO] [stderr] 191 | /// Parse `/proc/net/sockstat` to get socket statistics [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:217:1 [INFO] [stderr] | [INFO] [stderr] 217 | /// Parse `/proc/net/sockstat6` to get socket statistics [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:254:1 [INFO] [stderr] | [INFO] [stderr] 254 | /// Parse a line of `/proc/diskstats` [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:289:1 [INFO] [stderr] | [INFO] [stderr] 289 | /// Parse `/proc/diskstats` to get a Vec [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/platform/unix.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | let ifa = unsafe { (*ifap) }; [INFO] [stderr] | ^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/data.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | res: Box io::Result + Send>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/data.rs:27:23 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn new(f: Box io::Result + Send>) -> DelayedMeasurement { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right_matches': superseded by `trim_end_matches` [INFO] [stderr] --> src/platform/linux.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | .trim_right_matches("\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end_matches` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/platform/common.rs:39:27 [INFO] [stderr] | [INFO] [stderr] 39 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/platform/common.rs:47:27 [INFO] [stderr] | [INFO] [stderr] 47 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")))) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/platform/unix.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let mut entry = result.entry(name.clone()).or_insert(Network { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 41 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/common.rs:20:27 [INFO] [stderr] | [INFO] [stderr] 20 | let measurement = try!(self.cpu_load()); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/common.rs:46:29 [INFO] [stderr] | [INFO] [stderr] 46 | Ok(Utc::now() - try!(time::Duration::from_std(ut) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | try!(read_file(path)) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:406:23 [INFO] [stderr] | [INFO] [stderr] 406 | let entries = try!(fs::read_dir(&dir)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:414:25 [INFO] [stderr] | [INFO] [stderr] 414 | full += try!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:418:24 [INFO] [stderr] | [INFO] [stderr] 418 | now += try!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:422:28 [INFO] [stderr] | [INFO] [stderr] 422 | current += try!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:445:23 [INFO] [stderr] | [INFO] [stderr] 445 | let entries = try!(fs::read_dir(&dir)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:451:26 [INFO] [stderr] | [INFO] [stderr] 451 | on_ac |= try!(value_from_file::(&(s.to_string() + "/online")).map(|v| v == 1)) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:490:44 [INFO] [stderr] | [INFO] [stderr] 490 | let stats: Vec = try!(read_file("/proc/diskstats") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:511:29 [INFO] [stderr] | [INFO] [stderr] 511 | let rx_bytes: u64 = try!(value_from_file::(&stats_file("rx_bytes"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:512:29 [INFO] [stderr] | [INFO] [stderr] 512 | let tx_bytes: u64 = try!(value_from_file::(&stats_file("tx_bytes"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:513:31 [INFO] [stderr] | [INFO] [stderr] 513 | let rx_packets: u64 = try!(value_from_file::(&stats_file("rx_packets"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:514:31 [INFO] [stderr] | [INFO] [stderr] 514 | let tx_packets: u64 = try!(value_from_file::(&stats_file("tx_packets"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:515:30 [INFO] [stderr] | [INFO] [stderr] 515 | let rx_errors: u64 = try!(value_from_file::(&stats_file("rx_errors"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:516:30 [INFO] [stderr] | [INFO] [stderr] 516 | let tx_errors: u64 = try!(value_from_file::(&stats_file("tx_errors"))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:540:13 [INFO] [stderr] | [INFO] [stderr] 540 | try!(read_file("/proc/net/sockstat") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/platform/linux.rs:548:13 [INFO] [stderr] | [INFO] [stderr] 548 | try!(read_file("/proc/net/sockstat6") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:50:1 [INFO] [stderr] | [INFO] [stderr] 50 | /// Parse an unsigned integer out of a string, surrounded by whitespace [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | /// Parse `cpuX`, where X is a number [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:62:1 [INFO] [stderr] | [INFO] [stderr] 62 | /// Parse a `/proc/stat` CPU line into a `CpuTime` struct [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:84:1 [INFO] [stderr] | [INFO] [stderr] 84 | /// Parse the top CPU load aggregate line of `/proc/stat` [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:87:1 [INFO] [stderr] | [INFO] [stderr] 87 | /// Parse `/proc/stat` to extract per-CPU loads [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:108:1 [INFO] [stderr] | [INFO] [stderr] 108 | /// Parse a `/proc/meminfo` line into (key, ByteSize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:120:1 [INFO] [stderr] | [INFO] [stderr] 120 | /// Optionally parse a `/proc/meminfo` line` [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:126:1 [INFO] [stderr] | [INFO] [stderr] 126 | /// Parse `/proc/meminfo` into a hashmap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:150:1 [INFO] [stderr] | [INFO] [stderr] 150 | /// Parse a single word [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:163:1 [INFO] [stderr] | [INFO] [stderr] 163 | /// Parse a `/proc/mounts` line to get a mountpoint [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:178:1 [INFO] [stderr] | [INFO] [stderr] 178 | /// Parse `/proc/mounts` to get a list of mountpoints [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:191:1 [INFO] [stderr] | [INFO] [stderr] 191 | /// Parse `/proc/net/sockstat` to get socket statistics [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:217:1 [INFO] [stderr] | [INFO] [stderr] 217 | /// Parse `/proc/net/sockstat6` to get socket statistics [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:254:1 [INFO] [stderr] | [INFO] [stderr] 254 | /// Parse a line of `/proc/diskstats` [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/platform/linux.rs:289:1 [INFO] [stderr] | [INFO] [stderr] 289 | /// Parse `/proc/diskstats` to get a Vec [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/platform/unix.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | let ifa = unsafe { (*ifap) }; [INFO] [stderr] | ^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/data.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | res: Box io::Result + Send>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/data.rs:27:23 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn new(f: Box io::Result + Send>) -> DelayedMeasurement { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> io::Result + Send` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right_matches': superseded by `trim_end_matches` [INFO] [stderr] --> src/platform/linux.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | .trim_right_matches("\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end_matches` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/platform/common.rs:39:27 [INFO] [stderr] | [INFO] [stderr] 39 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/platform/common.rs:47:27 [INFO] [stderr] | [INFO] [stderr] 47 | .map_err(|e| io::Error::new(io::ErrorKind::Other, "Could not process time")))) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/platform/unix.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let mut entry = result.entry(name.clone()).or_insert(Network { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 41 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/systemstat-2b0658393b48e52e [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test platform::tests::test_battery_life ... ok [INFO] [stdout] test platform::tests::test_mount_at ... ok [INFO] [stdout] test platform::tests::test_networks ... ok [INFO] [stdout] test platform::tests::test_on_ac_power ... ok [INFO] [stdout] test platform::tests::test_cpu_measurement_is_send ... ok [INFO] [stdout] test platform::tests::test_load_average ... ok [INFO] [stdout] test platform::tests::test_memory ... ok [INFO] [stdout] test platform::tests::test_mounts ... ok [INFO] [stdout] test platform::tests::test_cpu_load_aggregate ... ok [INFO] [stdout] test platform::tests::test_cpu_load ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- platform::tests::test_cpu_load stdout ---- [INFO] [stdout] thread 'platform::tests::test_cpu_load' panicked at 'assertion failed: sum > 0.95 && sum < 1.05', src/platform/mod.rs:50:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x560ecb8c18a5 - backtrace::backtrace::libunwind::trace::h5e2646fa3eddf2ea [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 [INFO] [stdout] 1: 0x560ecb8c18a5 - backtrace::backtrace::trace_unsynchronized::hb95dd7f77ce47877 [INFO] [stdout] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 [INFO] [stdout] 2: 0x560ecb8c18a5 - std::sys_common::backtrace::_print_fmt::h5e71b67af43fd70d [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:78 [INFO] [stdout] 3: 0x560ecb8c18a5 - ::fmt::hdb4a83d2b61107e5 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] 4: 0x560ecb8e98dc - core::fmt::write::ha20e7262fa3e8a7a [INFO] [stdout] at src/libcore/fmt/mod.rs:1076 [INFO] [stdout] 5: 0x560ecb868415 - std::io::Write::write_fmt::hd8ff364c7845d2d0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/io/mod.rs:1537 [INFO] [stdout] 6: 0x560ecb8bbe11 - std::io::impls::>::write_fmt::h1c057ef6e8762996 [INFO] [stdout] at src/libstd/io/impls.rs:176 [INFO] [stdout] 7: 0x560ecb8c4000 - std::sys_common::backtrace::_print::h9c07314cc66ba539 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:62 [INFO] [stdout] 8: 0x560ecb8c4000 - std::sys_common::backtrace::print::hd1fd65f49a2d8544 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:49 [INFO] [stdout] 9: 0x560ecb8c4000 - std::panicking::default_hook::{{closure}}::h222da46485ab36fc [INFO] [stdout] at src/libstd/panicking.rs:198 [INFO] [stdout] 10: 0x560ecb8c3cfa - std::panicking::default_hook::hc5868949d129ed00 [INFO] [stdout] at src/libstd/panicking.rs:214 [INFO] [stdout] 11: 0x560ecb8c4643 - std::panicking::rust_panic_with_hook::h26a6ab8b0993c0c8 [INFO] [stdout] at src/libstd/panicking.rs:526 [INFO] [stdout] 12: 0x560ecb8af019 - std::panicking::begin_panic::ha2839553ca3c4dfb [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:456 [INFO] [stdout] 13: 0x560ecb84d3aa - systemstat::platform::tests::test_cpu_load::h8cb6aedf049c2f7a [INFO] [stdout] at src/platform/mod.rs:50 [INFO] [stdout] 14: 0x560ecb84d11a - systemstat::platform::tests::test_cpu_load::{{closure}}::h2dfb5c2b4cc3f0b1 [INFO] [stdout] at src/platform/mod.rs:43 [INFO] [stdout] 15: 0x560ecb858e8e - core::ops::function::FnOnce::call_once::h1eeba0b5c948e8f1 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 16: 0x560ecb88f98c - as core::ops::function::FnOnce>::call_once::h42148c33ed88c979 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 17: 0x560ecb88f98c - as core::ops::function::FnOnce<()>>::call_once::h759dc0b09d774665 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 18: 0x560ecb88f98c - std::panicking::try::do_call::h676ad1fc9e9badea [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 19: 0x560ecb88f98c - std::panicking::try::hee36a8727a3050b0 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 20: 0x560ecb88f98c - std::panic::catch_unwind::hd5d426ebd89b2542 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 21: 0x560ecb88f98c - test::run_test_in_process::h8dacdba4dc4cbaa5 [INFO] [stdout] at src/libtest/lib.rs:541 [INFO] [stdout] 22: 0x560ecb88f98c - test::run_test::run_test_inner::{{closure}}::hf93754afad6be40f [INFO] [stdout] at src/libtest/lib.rs:450 [INFO] [stdout] 23: 0x560ecb867906 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2c69fab544a90730 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/sys_common/backtrace.rs:130 [INFO] [stdout] 24: 0x560ecb86c995 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hcf302fafa60d80f2 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:475 [INFO] [stdout] 25: 0x560ecb86c995 - as core::ops::function::FnOnce<()>>::call_once::h39ede710608e817e [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:318 [INFO] [stdout] 26: 0x560ecb86c995 - std::panicking::try::do_call::hec0b4d2faa46fbf7 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:348 [INFO] [stdout] 27: 0x560ecb86c995 - std::panicking::try::h0144ba3f2539803d [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panicking.rs:325 [INFO] [stdout] 28: 0x560ecb86c995 - std::panic::catch_unwind::ha03e59eb589f857b [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/panic.rs:394 [INFO] [stdout] 29: 0x560ecb86c995 - std::thread::Builder::spawn_unchecked::{{closure}}::hdeba34620a4a7a44 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libstd/thread/mod.rs:474 [INFO] [stdout] 30: 0x560ecb86c995 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h552693dbb801eadd [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/libcore/ops/function.rs:233 [INFO] [stdout] 31: 0x560ecb8cabda - as core::ops::function::FnOnce>::call_once::h61c24496ae624ac5 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 32: 0x560ecb8cabda - as core::ops::function::FnOnce>::call_once::h89548957afa14049 [INFO] [stdout] at /rustc/6f959902b3103c49ca981fbc01871589c3498489/src/liballoc/boxed.rs:1081 [INFO] [stdout] 33: 0x560ecb8cabda - std::sys::unix::thread::Thread::new::thread_start::h73903fbbff5b990e [INFO] [stdout] at src/libstd/sys/unix/thread.rs:87 [INFO] [stdout] 34: 0x7f13932d6609 - start_thread [INFO] [stdout] 35: 0x7f1393418103 - __clone [INFO] [stdout] 36: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] platform::tests::test_cpu_load [INFO] [stdout] [INFO] [stdout] test result: FAILED. 9 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] running `Command { std: "docker" "inspect" "872e82fbd2bf8cd07cce7b9c96e395fcd613b1644ca4aedfc244420657af324e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "872e82fbd2bf8cd07cce7b9c96e395fcd613b1644ca4aedfc244420657af324e", kill_on_drop: false }` [INFO] [stdout] 872e82fbd2bf8cd07cce7b9c96e395fcd613b1644ca4aedfc244420657af324e