[INFO] cloning repository https://github.com/cpg1111/conspect [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cpg1111/conspect" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcpg1111%2Fconspect", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcpg1111%2Fconspect'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d08a443728c0d3ea555c1637df036a47be64ce0 [INFO] checking cpg1111/conspect against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcpg1111%2Fconspect" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cpg1111/conspect on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cpg1111/conspect [INFO] finished tweaking git repo https://github.com/cpg1111/conspect [INFO] tweaked toml for git repo https://github.com/cpg1111/conspect written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/cpg1111/conspect already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cdb076917f501a60cdb2804026fd238cd7d4ce5a588facc9c54c2ebcc59e2e6 [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" "0cdb076917f501a60cdb2804026fd238cd7d4ce5a588facc9c54c2ebcc59e2e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cdb076917f501a60cdb2804026fd238cd7d4ce5a588facc9c54c2ebcc59e2e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cdb076917f501a60cdb2804026fd238cd7d4ce5a588facc9c54c2ebcc59e2e6", kill_on_drop: false }` [INFO] [stdout] 0cdb076917f501a60cdb2804026fd238cd7d4ce5a588facc9c54c2ebcc59e2e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 691c3b66ccb62b440d9aeae7f163046c8831302c65fa2016bb78a4129c7ca56e [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" "691c3b66ccb62b440d9aeae7f163046c8831302c65fa2016bb78a4129c7ca56e", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking libc v0.2.16 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking regex-syntax v0.3.5 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking regex v0.1.77 [INFO] [stderr] Checking conspect v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/container/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/container/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/container/cgroup_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CGroup_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | trait CGroup_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CgroupReader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/container/cgroup_reader.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | fn which_cgroup(pid: u32) -> Box String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(String) -> String` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fs` is imported redundantly [INFO] [stdout] --> src/container/cgroup_reader.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ------- the item `fs` is already imported here [INFO] [stdout] ... [INFO] [stdout] 38 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/container/cgroup_reader.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `File` is imported redundantly [INFO] [stdout] --> src/container/cgroup_reader.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ------------- the item `File` is already imported here [INFO] [stdout] ... [INFO] [stdout] 39 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CPU_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct CPU_Reader { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CpuReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Mem_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Mem_Reader { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `MemReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BLKIO_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | struct BLKIO_Reader { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlkioReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Net_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | struct Net_Reader { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `NetReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CGroup_Stat` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | pub type CGroup_Stat = (String, String); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CgroupStat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/container/ns_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NS_Group` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type NS_Group = (Vec, Vec); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NsGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait NS_Reader { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct User_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UserNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IPC_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct IPC_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `IpcNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MNT_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct MNT_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MntNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Net_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Net_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PID_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct PID_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PidNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `UTS_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct UTS_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtsNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/manager/mod.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | for entry in try!(fs::read_dir(proc_dir)) { [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/manager/mod.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let entry = try!(entry); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager/mod.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, cb: Fn(&DirEntry)) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DirEntry)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/container/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/container/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/container/cgroup_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CGroup_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | trait CGroup_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CgroupReader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/container/cgroup_reader.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | fn which_cgroup(pid: u32) -> Box String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(String) -> String` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `fs` is imported redundantly [INFO] [stdout] --> src/container/cgroup_reader.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ------- the item `fs` is already imported here [INFO] [stdout] ... [INFO] [stdout] 38 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/container/cgroup_reader.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `File` is imported redundantly [INFO] [stdout] --> src/container/cgroup_reader.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ------------- the item `File` is already imported here [INFO] [stdout] ... [INFO] [stdout] 39 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CPU_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct CPU_Reader { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CpuReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Mem_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Mem_Reader { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `MemReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BLKIO_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | struct BLKIO_Reader { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlkioReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Net_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | struct Net_Reader { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `NetReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CGroup_Stat` should have an upper camel case name [INFO] [stdout] --> src/container/cgroup_reader.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | pub type CGroup_Stat = (String, String); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CgroupStat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/container/ns_reader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NS_Group` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type NS_Group = (Vec, Vec); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NsGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait NS_Reader { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `NsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `User_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct User_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UserNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IPC_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct IPC_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `IpcNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MNT_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct MNT_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MntNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Net_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Net_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PID_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct PID_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PidNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `UTS_NS_Reader` should have an upper camel case name [INFO] [stdout] --> src/container/ns_reader.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct UTS_NS_Reader { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtsNsReader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/manager/mod.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | for entry in try!(fs::read_dir(proc_dir)) { [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/manager/mod.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let entry = try!(entry); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/manager/mod.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, cb: Fn(&DirEntry)) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&DirEntry)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `get_containers` is private [INFO] [stdout] --> src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | mang.get_containers(); [INFO] [stdout] | ^^^^^^^^^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `update` is private [INFO] [stdout] --> src/main.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | mang.update(); [INFO] [stdout] | ^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `get_containers` is private [INFO] [stdout] --> src/main.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | mang.get_containers(); [INFO] [stdout] | ^^^^^^^^^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `update` is private [INFO] [stdout] --> src/main.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | mang.update(); [INFO] [stdout] | ^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied [INFO] [stdout] --> src/container/cgroup_reader.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut end = -1; [INFO] [stdout] | ^^ the trait `Neg` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied [INFO] [stdout] --> src/container/cgroup_reader.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | let mut begin = -1; [INFO] [stdout] | ^^ the trait `Neg` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/container/cgroup_reader.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | fn read(&self, stat: &str) -> String { [INFO] [stdout] | ---- ^^^^^^ expected struct `String`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 86 | read_cgroup(String::from("cpu,cpuacct"), self.name, stat); [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `res` [INFO] [stdout] --> src/container/cgroup_reader.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 133 | fn read_res(&self, res: &str, tx_arc: Arc>>) { [INFO] [stdout] | ---- help: add explicit lifetime `'static` to the type of `res`: `&'static str` [INFO] [stdout] 134 | let tx_thread = tx_arc.clone(); [INFO] [stdout] 135 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^^^^^^ lifetime `'static` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied [INFO] [stdout] --> src/container/cgroup_reader.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut end = -1; [INFO] [stdout] | ^^ the trait `Neg` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement [INFO] [stdout] --> src/container/cgroup_reader.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 133 | fn read_res(&self, res: &str, tx_arc: Arc>>) { [INFO] [stdout] | ----- this data with an anonymous lifetime `'_`... [INFO] [stdout] 134 | let tx_thread = tx_arc.clone(); [INFO] [stdout] 135 | thread::spawn(move || { [INFO] [stdout] | _______________________^ [INFO] [stdout] 136 | | let shares; [INFO] [stdout] 137 | | let cpu_re = Regex::new(r"^cpu(.*)").unwrap(); [INFO] [stdout] 138 | | let mem_re = Regex::new(r"^mem(.*)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 151 | | tx.send((String::from(res), shares)).unwrap(); [INFO] [stdout] 152 | | }).join(); [INFO] [stdout] | |_________^ ...is captured here... [INFO] [stdout] | [INFO] [stdout] note: ...and is required to live as long as `'static` here [INFO] [stdout] --> src/container/cgroup_reader.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: Neg` is not satisfied [INFO] [stdout] --> src/container/cgroup_reader.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | let mut begin = -1; [INFO] [stdout] | ^^ the trait `Neg` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/container/ns_reader.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_ns_f(content: String) -> u32 { [INFO] [stdout] | ---------- ^^^ expected `u32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 22 | ns.parse::().unwrap(); [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn for<'r> Fn(&'r DirEntry) + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/manager/mod.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, cb: Fn(&DirEntry)) { [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn for<'r> Fn(&'r DirEntry) + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, &cb: Fn(&DirEntry)) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/container/cgroup_reader.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | fn read(&self, stat: &str) -> String { [INFO] [stdout] | ---- ^^^^^^ expected struct `String`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 86 | read_cgroup(String::from("cpu,cpuacct"), self.name, stat); [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `res` [INFO] [stdout] --> src/container/cgroup_reader.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 133 | fn read_res(&self, res: &str, tx_arc: Arc>>) { [INFO] [stdout] | ---- help: add explicit lifetime `'static` to the type of `res`: `&'static str` [INFO] [stdout] 134 | let tx_thread = tx_arc.clone(); [INFO] [stdout] 135 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^^^^^^ lifetime `'static` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement [INFO] [stdout] --> src/container/cgroup_reader.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 133 | fn read_res(&self, res: &str, tx_arc: Arc>>) { [INFO] [stdout] | ----- this data with an anonymous lifetime `'_`... [INFO] [stdout] 134 | let tx_thread = tx_arc.clone(); [INFO] [stdout] 135 | thread::spawn(move || { [INFO] [stdout] | _______________________^ [INFO] [stdout] 136 | | let shares; [INFO] [stdout] 137 | | let cpu_re = Regex::new(r"^cpu(.*)").unwrap(); [INFO] [stdout] 138 | | let mem_re = Regex::new(r"^mem(.*)").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 151 | | tx.send((String::from(res), shares)).unwrap(); [INFO] [stdout] 152 | | }).join(); [INFO] [stdout] | |_________^ ...is captured here... [INFO] [stdout] | [INFO] [stdout] note: ...and is required to live as long as `'static` here [INFO] [stdout] --> src/container/cgroup_reader.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, cb: Fn(&DirEntry)) { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] ... [INFO] [stdout] 23 | for entry in try!(fs::read_dir(proc_dir)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/container/ns_reader.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_ns_f(content: String) -> u32 { [INFO] [stdout] | ---------- ^^^ expected `u32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 22 | ns.parse::().unwrap(); [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cpu` on type `ns_reader::Reader` [INFO] [stdout] --> src/manager/mod.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | reader.cpu.read(), [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `ipc` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | reader.ipc.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn for<'r> Fn(&'r DirEntry) + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/manager/mod.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, cb: Fn(&DirEntry)) { [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn for<'r> Fn(&'r DirEntry) + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, &cb: Fn(&DirEntry)) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `IPC_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | reader.ipc.read(), [INFO] [stdout] | ^^^^ method not found in `IPC_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | struct IPC_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `mnt` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | reader.mnt.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `MNT_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | reader.mnt.read(), [INFO] [stdout] | ^^^^ method not found in `MNT_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | struct MNT_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `net` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | reader.net.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Net_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | reader.net.read(), [INFO] [stdout] | ^^^^ method not found in `Net_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | struct Net_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `pid` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | reader.pid.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `PID_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | reader.pid.read(), [INFO] [stdout] | ^^^^ method not found in `PID_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | struct PID_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `uts` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | reader.uts.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `UTS_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | reader.uts.read(), [INFO] [stdout] | ^^^^ method not found in `UTS_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | struct UTS_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `capcity` found for struct `Vec<(Vec, Vec)>` in the current scope [INFO] [stdout] --> src/manager/mod.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | if groups.capcity() == 0 { [INFO] [stdout] | ^^^^^^^ help: there is an associated function with a similar name: `capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/manager/mod.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | groups.push(new_group, vec![process]); [INFO] [stdout] | ^^^^ --------- ------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let (namespaces, procs) = group; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ----- this expression has type `Vec` [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[(Vec, Vec)]` cannot be indexed by `Vec` [INFO] [stdout] --> src/manager/mod.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | groups[idx] = (namespaces, procs); [INFO] [stdout] | ^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[(Vec, Vec)]>` is not implemented for `Vec` [INFO] [stdout] = note: required because of the requirements on the impl of `Index>` for `Vec<(Vec, Vec)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `strip_prefix` found for reference `&DirEntry` in the current scope [INFO] [stdout] --> src/manager/mod.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | let path = entry.strip_prefix("/proc/"); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&DirEntry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Process` in the current scope [INFO] [stdout] --> src/manager/mod.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | let p_proc = Process::new(String::new(path_str)); [INFO] [stdout] | ^^^ function or associated item not found in `Process` [INFO] [stdout] | [INFO] [stdout] ::: src/container/process.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Process { [INFO] [stdout] | ------------------ function or associated item `new` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `aho_corasick::Transitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/manager/mod.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | let p_proc = Process::new(String::new(path_str)); [INFO] [stdout] | ^^^^^^^^^^^ -------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | self.walk_proc(|entry|{ [INFO] [stdout] | ________________________^ [INFO] [stdout] 63 | | let path = entry.strip_prefix("/proc/"); [INFO] [stdout] 64 | | let path_str = path.to_str(); [INFO] [stdout] 65 | | let p_proc = Process::new(String::new(path_str)); [INFO] [stdout] 66 | | let ns = ns_reader::new(p_proc.pid); [INFO] [stdout] 67 | | procs = self.match_ns(&p_proc, ns, procs); [INFO] [stdout] 68 | | }); [INFO] [stdout] | |_________^ expected trait object `dyn Fn`, found closure [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn for<'r> Fn(&'r DirEntry) + 'static)` [INFO] [stdout] found closure `[closure@src/manager/mod.rs:62:24: 68:10]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_process_groups(&self) -> Vec { [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^ expected struct `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 69 | procs; [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<(Vec, Vec)>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `update` is private [INFO] [stdout] --> src/manager/mod.rs:82:27 [INFO] [stdout] | [INFO] [stdout] 82 | container.update() [INFO] [stdout] | ^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/manager/mod.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | ext_ns_reader: ns_reader::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^-- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/container/ns_reader.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn new(pid: u32) -> Reader { [INFO] [stdout] | ^^^ -------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 32 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0599, E0609, E0616, E0621, E0624, E0759. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `conspect` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 20 | fn walk_proc(&self, cb: Fn(&DirEntry)) { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] ... [INFO] [stdout] 23 | for entry in try!(fs::read_dir(proc_dir)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cpu` on type `ns_reader::Reader` [INFO] [stdout] --> src/manager/mod.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | reader.cpu.read(), [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `ipc` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | reader.ipc.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `IPC_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | reader.ipc.read(), [INFO] [stdout] | ^^^^ method not found in `IPC_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | struct IPC_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `mnt` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | reader.mnt.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `MNT_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | reader.mnt.read(), [INFO] [stdout] | ^^^^ method not found in `MNT_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | struct MNT_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `net` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | reader.net.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Net_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | reader.net.read(), [INFO] [stdout] | ^^^^ method not found in `Net_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | struct Net_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `pid` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | reader.pid.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `PID_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | reader.pid.read(), [INFO] [stdout] | ^^^^ method not found in `PID_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | struct PID_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `uts` of struct `ns_reader::Reader` is private [INFO] [stdout] --> src/manager/mod.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | reader.uts.read(), [INFO] [stdout] | ^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `UTS_NS_Reader` in the current scope [INFO] [stdout] --> src/manager/mod.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | reader.uts.read(), [INFO] [stdout] | ^^^^ method not found in `UTS_NS_Reader` [INFO] [stdout] | [INFO] [stdout] ::: src/container/ns_reader.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | struct UTS_NS_Reader { [INFO] [stdout] | -------------------- method `read` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `CGroup_Reader` [INFO] [stdout] candidate #2: `NS_Reader` [INFO] [stdout] candidate #3: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `capcity` found for struct `Vec<(Vec, Vec)>` in the current scope [INFO] [stdout] --> src/manager/mod.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | if groups.capcity() == 0 { [INFO] [stdout] | ^^^^^^^ help: there is an associated function with a similar name: `capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/manager/mod.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | groups.push(new_group, vec![process]); [INFO] [stdout] | ^^^^ --------- ------------- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let (namespaces, procs) = group; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ----- this expression has type `Vec` [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[(Vec, Vec)]` cannot be indexed by `Vec` [INFO] [stdout] --> src/manager/mod.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | groups[idx] = (namespaces, procs); [INFO] [stdout] | ^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[(Vec, Vec)]>` is not implemented for `Vec` [INFO] [stdout] = note: required because of the requirements on the impl of `Index>` for `Vec<(Vec, Vec)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `strip_prefix` found for reference `&DirEntry` in the current scope [INFO] [stdout] --> src/manager/mod.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | let path = entry.strip_prefix("/proc/"); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&DirEntry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Process` in the current scope [INFO] [stdout] --> src/manager/mod.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | let p_proc = Process::new(String::new(path_str)); [INFO] [stdout] | ^^^ function or associated item not found in `Process` [INFO] [stdout] | [INFO] [stdout] ::: src/container/process.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Process { [INFO] [stdout] | ------------------ function or associated item `new` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `aho_corasick::Transitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/manager/mod.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | let p_proc = Process::new(String::new(path_str)); [INFO] [stdout] | ^^^^^^^^^^^ -------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | self.walk_proc(|entry|{ [INFO] [stdout] | ________________________^ [INFO] [stdout] 63 | | let path = entry.strip_prefix("/proc/"); [INFO] [stdout] 64 | | let path_str = path.to_str(); [INFO] [stdout] 65 | | let p_proc = Process::new(String::new(path_str)); [INFO] [stdout] 66 | | let ns = ns_reader::new(p_proc.pid); [INFO] [stdout] 67 | | procs = self.match_ns(&p_proc, ns, procs); [INFO] [stdout] 68 | | }); [INFO] [stdout] | |_________^ expected trait object `dyn Fn`, found closure [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn for<'r> Fn(&'r DirEntry) + 'static)` [INFO] [stdout] found closure `[closure@src/manager/mod.rs:62:24: 68:10]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/manager/mod.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_process_groups(&self) -> Vec { [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^ expected struct `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 69 | procs; [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<(Vec, Vec)>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `update` is private [INFO] [stdout] --> src/manager/mod.rs:82:27 [INFO] [stdout] | [INFO] [stdout] 82 | container.update() [INFO] [stdout] | ^^^^^^ private associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/manager/mod.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | ext_ns_reader: ns_reader::new(), [INFO] [stdout] | ^^^^^^^^^^^^^^-- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/container/ns_reader.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn new(pid: u32) -> Reader { [INFO] [stdout] | ^^^ -------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 32 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0599, E0609, E0616, E0621, E0624, E0759. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "691c3b66ccb62b440d9aeae7f163046c8831302c65fa2016bb78a4129c7ca56e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "691c3b66ccb62b440d9aeae7f163046c8831302c65fa2016bb78a4129c7ca56e", kill_on_drop: false }` [INFO] [stdout] 691c3b66ccb62b440d9aeae7f163046c8831302c65fa2016bb78a4129c7ca56e