[INFO] cloning repository https://github.com/mokua/crust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mokua/crust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmokua%2Fcrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmokua%2Fcrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a4d06650c2d4a53ea14f8679fbb700e98cce9454 [INFO] checking mokua/crust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmokua%2Fcrust" "/workspace/builds/worker-21/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-21/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mokua/crust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-21/source/.cargo/config [INFO] started tweaking git repo https://github.com/mokua/crust [INFO] finished tweaking git repo https://github.com/mokua/crust [INFO] tweaked toml for git repo https://github.com/mokua/crust written to /workspace/builds/worker-21/source/Cargo.toml [INFO] crate git repo https://github.com/mokua/crust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded seccomp-sys v0.1.3 [INFO] [stderr] Downloaded caps v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e59e0435d5db59758141189fa5c3a5619ffd209d4c2a00d09812d0f46c5a6f6e [INFO] running `Command { std: "docker" "start" "-a" "e59e0435d5db59758141189fa5c3a5619ffd209d4c2a00d09812d0f46c5a6f6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e59e0435d5db59758141189fa5c3a5619ffd209d4c2a00d09812d0f46c5a6f6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e59e0435d5db59758141189fa5c3a5619ffd209d4c2a00d09812d0f46c5a6f6e", kill_on_drop: false }` [INFO] [stdout] e59e0435d5db59758141189fa5c3a5619ffd209d4c2a00d09812d0f46c5a6f6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0e04a180c7b7e4e9979cd1a885bf842db26d82a3e3b2795b97afe27c61b67a2 [INFO] running `Command { std: "docker" "start" "-a" "c0e04a180c7b7e4e9979cd1a885bf842db26d82a3e3b2795b97afe27c61b67a2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling serde_derive v1.0.120 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling serde v1.0.120 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling seccomp-sys v0.1.3 [INFO] [stderr] Checking yansi v0.5.0 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking errno v0.2.7 [INFO] [stderr] Checking nix v0.19.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking flexi_logger v0.17.1 [INFO] [stderr] Checking caps v0.5.0 [INFO] [stderr] Checking crust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/caps.rs (3 fixes) [INFO] [stderr] Fixed src/resources.rs (24 fixes) [INFO] [stderr] Fixed src/mount.rs (8 fixes) [INFO] [stderr] Fixed src/spec.rs (3 fixes) [INFO] [stderr] Fixed src/main.rs (18 fixes) [INFO] [stderr] Fixed src/dev.rs (1 fix) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ///1. check if the root & mounts are set [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | / if spec.root.is_none() || spec.mounts.is_none() { [INFO] [stdout] 21 | | info!("no work todo, both root & mount is None "); [INFO] [stdout] 22 | | return; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / ///2. Ensure that 'new_root' and its parent mount don't have [INFO] [stdout] 25 | | /// shared propagation (which would cause pivot_root() to [INFO] [stdout] 26 | | /// return an error), and prevent propagation of mount [INFO] [stdout] 27 | | /// events to the initial mount namespace [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] 28 | //if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) == -1) [INFO] [stdout] 29 | let root = b"/".as_ref(); [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / /// 3. Ensure that 'rootfs' is a mount point [INFO] [stdout] 44 | | /// if (mount(new_root, new_root, NULL, MS_BIND, NULL) == -1) [INFO] [stdout] | |_________________________________________________________________^ [INFO] [stdout] 45 | let x = spec.root.as_ref().unwrap(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | ///4. Create directory to which old root will be pivoted; it must be under the new root [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 61 | let rp = std::str::from_utf8(rootfs_path).unwrap(); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | ///5. And pivot the root filesystem [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | let result = nix::unistd::pivot_root(rootfs_path, put_old_path); [INFO] [stdout] | ---------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | ///6.Switch the current working directory to "/" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | //if (chdir("/") == -1) [INFO] [stdout] 84 | let result = chdir("/"); [INFO] [stdout] | ------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | ///7.Unmount old root and remove mount point [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | //umount2(put_old, MNT_DETACH) [INFO] [stdout] 92 | let put_old_dir = put_old_name.as_bytes(); [INFO] [stdout] | ------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 286 | ///* Execute a shell command */ [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/main.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | / ///-EDOM Architecture specific failure. [INFO] [stdout] 400 | | // [INFO] [stdout] 401 | | ///-EEXIST [INFO] [stdout] | |______________________^ [INFO] [stdout] ... [INFO] [stdout] 412 | / if result != 0 && result != -libc::EEXIST { [INFO] [stdout] 413 | | info!("seccomp adding architecture failed!, result {} ", result); [INFO] [stdout] 414 | | seccomp_release(ctx); [INFO] [stdout] 415 | | return; [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NixPath` [INFO] [stdout] --> src/mount.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use nix::{NixPath}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_running_in_user_namespace` [INFO] [stdout] --> src/dev.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn check_running_in_user_namespace() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/resources.rs:526:12 [INFO] [stdout] | [INFO] [stdout] 526 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argc` [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | argc: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uid` [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | uid: Uid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fd` [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | fd: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argv` [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | argv: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mount_dir` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | mount_dir: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | execve(&CString::new("/bin/bash").unwrap().as_c_str(), args, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | writeln!(&mut buffer, "deny"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 337 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `put_old_name` should have an upper case name [INFO] [stdout] --> src/mount.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const put_old_name: &str = "oldrootfs"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PUT_OLD_NAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `cpuSet` should have a snake case name [INFO] [stdout] --> src/resources.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | cpuSet: Option, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cpu_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `blockIO` should have a snake case name [INFO] [stdout] --> src/resources.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | blockIO: Option, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `block_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | hugepageLimits: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | hugepageLimits: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | / fs::write( [INFO] [stdout] 331 | | format!("{}/pids.max", self.child_directory), [INFO] [stdout] 332 | | s.pids_max.to_string(), [INFO] [stdout] 333 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | writeln!(&mut buffer, "{}", rdma_entry.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 424 | / match e.default_weight { [INFO] [stdout] 425 | | None => writeln!(&mut buffer, "{}", "default 100"), [INFO] [stdout] 426 | | Some(def) => writeln!(&mut buffer, "default {}", def), [INFO] [stdout] 427 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:429:13 [INFO] [stdout] | [INFO] [stdout] 429 | / writeln!( [INFO] [stdout] 430 | | &mut buffer, [INFO] [stdout] 431 | | "{}:{}\t{}", [INFO] [stdout] 432 | | weight.device.major, weight.device.minor, weight.weight [INFO] [stdout] 433 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | fs::write(format!("{}/io.weight", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | / write!( [INFO] [stdout] 442 | | &mut buffer, [INFO] [stdout] 443 | | "{}:{}\t", [INFO] [stdout] 444 | | io_limit.device.major, io_limit.device.minor, [INFO] [stdout] 445 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | write!(&mut buffer, "rbps={}\t", rbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:455:21 [INFO] [stdout] | [INFO] [stdout] 455 | write!(&mut buffer, "wbps={}\t", wbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:462:21 [INFO] [stdout] | [INFO] [stdout] 462 | write!(&mut buffer, "riops={}\t", riops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:469:21 [INFO] [stdout] | [INFO] [stdout] 469 | write!(&mut buffer, "wiops={}\t", wiops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | writeln!(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | fs::write(format!("{}/io.max", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | / match hugetlb.max { [INFO] [stdout] 488 | | None => fs::write( [INFO] [stdout] 489 | | format!( [INFO] [stdout] 490 | | "{}/hugetlb.{}.max", [INFO] [stdout] ... | [INFO] [stdout] 501 | | ), [INFO] [stdout] 502 | | }; [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/resources.rs (2 fixes) [INFO] [stderr] Fixed src/spec.rs (3 fixes) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ///1. check if the root & mounts are set [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | / if spec.root.is_none() || spec.mounts.is_none() { [INFO] [stdout] 21 | | info!("no work todo, both root & mount is None "); [INFO] [stdout] 22 | | return; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / ///2. Ensure that 'new_root' and its parent mount don't have [INFO] [stdout] 25 | | /// shared propagation (which would cause pivot_root() to [INFO] [stdout] 26 | | /// return an error), and prevent propagation of mount [INFO] [stdout] 27 | | /// events to the initial mount namespace [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] 28 | //if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) == -1) [INFO] [stdout] 29 | let root = b"/".as_ref(); [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / /// 3. Ensure that 'rootfs' is a mount point [INFO] [stdout] 44 | | /// if (mount(new_root, new_root, NULL, MS_BIND, NULL) == -1) [INFO] [stdout] | |_________________________________________________________________^ [INFO] [stdout] 45 | let x = spec.root.as_ref().unwrap(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | ///4. Create directory to which old root will be pivoted; it must be under the new root [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 61 | let rp = std::str::from_utf8(rootfs_path).unwrap(); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | ///5. And pivot the root filesystem [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | let result = nix::unistd::pivot_root(rootfs_path, put_old_path); [INFO] [stdout] | ---------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | ///6.Switch the current working directory to "/" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | //if (chdir("/") == -1) [INFO] [stdout] 84 | let result = chdir("/"); [INFO] [stdout] | ------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | ///7.Unmount old root and remove mount point [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | //umount2(put_old, MNT_DETACH) [INFO] [stdout] 92 | let put_old_dir = put_old_name.as_bytes(); [INFO] [stdout] | ------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 286 | ///* Execute a shell command */ [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/main.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | / ///-EDOM Architecture specific failure. [INFO] [stdout] 400 | | // [INFO] [stdout] 401 | | ///-EEXIST [INFO] [stdout] | |______________________^ [INFO] [stdout] ... [INFO] [stdout] 412 | / if result != 0 && result != -libc::EEXIST { [INFO] [stdout] 413 | | info!("seccomp adding architecture failed!, result {} ", result); [INFO] [stdout] 414 | | seccomp_release(ctx); [INFO] [stdout] 415 | | return; [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NixPath` [INFO] [stdout] --> src/mount.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use nix::{NixPath}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_running_in_user_namespace` [INFO] [stdout] --> src/dev.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn check_running_in_user_namespace() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argc` [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | argc: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uid` [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | uid: Uid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fd` [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | fd: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argv` [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | argv: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mount_dir` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | mount_dir: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | execve(&CString::new("/bin/bash").unwrap().as_c_str(), args, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | writeln!(&mut buffer, "deny"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 337 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `put_old_name` should have an upper case name [INFO] [stdout] --> src/mount.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const put_old_name: &str = "oldrootfs"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PUT_OLD_NAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `cpuSet` should have a snake case name [INFO] [stdout] --> src/resources.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | cpuSet: Option, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cpu_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `blockIO` should have a snake case name [INFO] [stdout] --> src/resources.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | blockIO: Option, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `block_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | hugepageLimits: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | hugepageLimits: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | / fs::write( [INFO] [stdout] 331 | | format!("{}/pids.max", self.child_directory), [INFO] [stdout] 332 | | s.pids_max.to_string(), [INFO] [stdout] 333 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | writeln!(&mut buffer, "{}", rdma_entry.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 424 | / match e.default_weight { [INFO] [stdout] 425 | | None => writeln!(&mut buffer, "{}", "default 100"), [INFO] [stdout] 426 | | Some(def) => writeln!(&mut buffer, "default {}", def), [INFO] [stdout] 427 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:429:13 [INFO] [stdout] | [INFO] [stdout] 429 | / writeln!( [INFO] [stdout] 430 | | &mut buffer, [INFO] [stdout] 431 | | "{}:{}\t{}", [INFO] [stdout] 432 | | weight.device.major, weight.device.minor, weight.weight [INFO] [stdout] 433 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | fs::write(format!("{}/io.weight", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | / write!( [INFO] [stdout] 442 | | &mut buffer, [INFO] [stdout] 443 | | "{}:{}\t", [INFO] [stdout] 444 | | io_limit.device.major, io_limit.device.minor, [INFO] [stdout] 445 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | write!(&mut buffer, "rbps={}\t", rbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:455:21 [INFO] [stdout] | [INFO] [stdout] 455 | write!(&mut buffer, "wbps={}\t", wbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:462:21 [INFO] [stdout] | [INFO] [stdout] 462 | write!(&mut buffer, "riops={}\t", riops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:469:21 [INFO] [stdout] | [INFO] [stdout] 469 | write!(&mut buffer, "wiops={}\t", wiops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | writeln!(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | fs::write(format!("{}/io.max", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | / match hugetlb.max { [INFO] [stdout] 488 | | None => fs::write( [INFO] [stdout] 489 | | format!( [INFO] [stdout] 490 | | "{}/hugetlb.{}.max", [INFO] [stdout] ... | [INFO] [stdout] 501 | | ), [INFO] [stdout] 502 | | }; [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:814:17 [INFO] [stdout] | [INFO] [stdout] 814 | let mut hugepageLimits = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.70s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking crust v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ///1. check if the root & mounts are set [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | / if spec.root.is_none() || spec.mounts.is_none() { [INFO] [stdout] 21 | | info!("no work todo, both root & mount is None "); [INFO] [stdout] 22 | | return; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / ///2. Ensure that 'new_root' and its parent mount don't have [INFO] [stdout] 25 | | /// shared propagation (which would cause pivot_root() to [INFO] [stdout] 26 | | /// return an error), and prevent propagation of mount [INFO] [stdout] 27 | | /// events to the initial mount namespace [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] 28 | //if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) == -1) [INFO] [stdout] 29 | let root = b"/".as_ref(); [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / /// 3. Ensure that 'rootfs' is a mount point [INFO] [stdout] 44 | | /// if (mount(new_root, new_root, NULL, MS_BIND, NULL) == -1) [INFO] [stdout] | |_________________________________________________________________^ [INFO] [stdout] 45 | let x = spec.root.as_ref().unwrap(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | ///4. Create directory to which old root will be pivoted; it must be under the new root [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 61 | let rp = std::str::from_utf8(rootfs_path).unwrap(); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | ///5. And pivot the root filesystem [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | let result = nix::unistd::pivot_root(rootfs_path, put_old_path); [INFO] [stdout] | ---------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | ///6.Switch the current working directory to "/" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | //if (chdir("/") == -1) [INFO] [stdout] 84 | let result = chdir("/"); [INFO] [stdout] | ------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | ///7.Unmount old root and remove mount point [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | //umount2(put_old, MNT_DETACH) [INFO] [stdout] 92 | let put_old_dir = put_old_name.as_bytes(); [INFO] [stdout] | ------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 286 | ///* Execute a shell command */ [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/main.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | / ///-EDOM Architecture specific failure. [INFO] [stdout] 400 | | // [INFO] [stdout] 401 | | ///-EEXIST [INFO] [stdout] | |______________________^ [INFO] [stdout] ... [INFO] [stdout] 412 | / if result != 0 && result != -libc::EEXIST { [INFO] [stdout] 413 | | info!("seccomp adding architecture failed!, result {} ", result); [INFO] [stdout] 414 | | seccomp_release(ctx); [INFO] [stdout] 415 | | return; [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | ///1. check if the root & mounts are set [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | / if spec.root.is_none() || spec.mounts.is_none() { [INFO] [stdout] 21 | | info!("no work todo, both root & mount is None "); [INFO] [stdout] 22 | | return; [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / ///2. Ensure that 'new_root' and its parent mount don't have [INFO] [stdout] 25 | | /// shared propagation (which would cause pivot_root() to [INFO] [stdout] 26 | | /// return an error), and prevent propagation of mount [INFO] [stdout] 27 | | /// events to the initial mount namespace [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] 28 | //if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) == -1) [INFO] [stdout] 29 | let root = b"/".as_ref(); [INFO] [stdout] | ------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / /// 3. Ensure that 'rootfs' is a mount point [INFO] [stdout] 44 | | /// if (mount(new_root, new_root, NULL, MS_BIND, NULL) == -1) [INFO] [stdout] | |_________________________________________________________________^ [INFO] [stdout] 45 | let x = spec.root.as_ref().unwrap(); [INFO] [stdout] | ------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | ///4. Create directory to which old root will be pivoted; it must be under the new root [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 61 | let rp = std::str::from_utf8(rootfs_path).unwrap(); [INFO] [stdout] | --------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | ///5. And pivot the root filesystem [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | let result = nix::unistd::pivot_root(rootfs_path, put_old_path); [INFO] [stdout] | ---------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | ///6.Switch the current working directory to "/" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | //if (chdir("/") == -1) [INFO] [stdout] 84 | let result = chdir("/"); [INFO] [stdout] | ------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mount.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | ///7.Unmount old root and remove mount point [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | //umount2(put_old, MNT_DETACH) [INFO] [stdout] 92 | let put_old_dir = put_old_name.as_bytes(); [INFO] [stdout] | ------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/main.rs:286:5 [INFO] [stdout] | [INFO] [stdout] 286 | ///* Execute a shell command */ [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/main.rs:399:13 [INFO] [stdout] | [INFO] [stdout] 399 | / ///-EDOM Architecture specific failure. [INFO] [stdout] 400 | | // [INFO] [stdout] 401 | | ///-EEXIST [INFO] [stdout] | |______________________^ [INFO] [stdout] ... [INFO] [stdout] 412 | / if result != 0 && result != -libc::EEXIST { [INFO] [stdout] 413 | | info!("seccomp adding architecture failed!, result {} ", result); [INFO] [stdout] 414 | | seccomp_release(ctx); [INFO] [stdout] 415 | | return; [INFO] [stdout] 416 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NixPath` [INFO] [stdout] --> src/mount.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use nix::{NixPath}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NixPath` [INFO] [stdout] --> src/mount.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use nix::{NixPath}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_running_in_user_namespace` [INFO] [stdout] --> src/dev.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn check_running_in_user_namespace() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/resources.rs:526:12 [INFO] [stdout] | [INFO] [stdout] 526 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argc` [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | argc: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uid` [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | uid: Uid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fd` [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | fd: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argv` [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | argv: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mount_dir` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | mount_dir: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | execve(&CString::new("/bin/bash").unwrap().as_c_str(), args, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | writeln!(&mut buffer, "deny"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 337 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `put_old_name` should have an upper case name [INFO] [stdout] --> src/mount.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const put_old_name: &str = "oldrootfs"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PUT_OLD_NAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `cpuSet` should have a snake case name [INFO] [stdout] --> src/resources.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | cpuSet: Option, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cpu_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `blockIO` should have a snake case name [INFO] [stdout] --> src/resources.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | blockIO: Option, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `block_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | hugepageLimits: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | hugepageLimits: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | / fs::write( [INFO] [stdout] 331 | | format!("{}/pids.max", self.child_directory), [INFO] [stdout] 332 | | s.pids_max.to_string(), [INFO] [stdout] 333 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | writeln!(&mut buffer, "{}", rdma_entry.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 424 | / match e.default_weight { [INFO] [stdout] 425 | | None => writeln!(&mut buffer, "{}", "default 100"), [INFO] [stdout] 426 | | Some(def) => writeln!(&mut buffer, "default {}", def), [INFO] [stdout] 427 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:429:13 [INFO] [stdout] | [INFO] [stdout] 429 | / writeln!( [INFO] [stdout] 430 | | &mut buffer, [INFO] [stdout] 431 | | "{}:{}\t{}", [INFO] [stdout] 432 | | weight.device.major, weight.device.minor, weight.weight [INFO] [stdout] 433 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | fs::write(format!("{}/io.weight", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | / write!( [INFO] [stdout] 442 | | &mut buffer, [INFO] [stdout] 443 | | "{}:{}\t", [INFO] [stdout] 444 | | io_limit.device.major, io_limit.device.minor, [INFO] [stdout] 445 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | write!(&mut buffer, "rbps={}\t", rbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:455:21 [INFO] [stdout] | [INFO] [stdout] 455 | write!(&mut buffer, "wbps={}\t", wbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:462:21 [INFO] [stdout] | [INFO] [stdout] 462 | write!(&mut buffer, "riops={}\t", riops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:469:21 [INFO] [stdout] | [INFO] [stdout] 469 | write!(&mut buffer, "wiops={}\t", wiops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | writeln!(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | fs::write(format!("{}/io.max", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | / match hugetlb.max { [INFO] [stdout] 488 | | None => fs::write( [INFO] [stdout] 489 | | format!( [INFO] [stdout] 490 | | "{}/hugetlb.{}.max", [INFO] [stdout] ... | [INFO] [stdout] 501 | | ), [INFO] [stdout] 502 | | }; [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_running_in_user_namespace` [INFO] [stdout] --> src/dev.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn check_running_in_user_namespace() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argc` [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | argc: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uid` [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | uid: Uid, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fd` [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | fd: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `argv` [INFO] [stdout] --> src/main.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | argv: Vec<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mount_dir` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | mount_dir: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | execve(&CString::new("/bin/bash").unwrap().as_c_str(), args, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | writeln!(&mut buffer, "deny"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:337:5 [INFO] [stdout] | [INFO] [stdout] 337 | writeln!(&mut buffer, "0\t{}\t1", child_pid.as_raw()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `put_old_name` should have an upper case name [INFO] [stdout] --> src/mount.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const put_old_name: &str = "oldrootfs"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PUT_OLD_NAME` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `cpuSet` should have a snake case name [INFO] [stdout] --> src/resources.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | cpuSet: Option, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cpu_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `blockIO` should have a snake case name [INFO] [stdout] --> src/resources.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | blockIO: Option, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `block_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | hugepageLimits: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | hugepageLimits: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | / fs::write( [INFO] [stdout] 331 | | format!("{}/pids.max", self.child_directory), [INFO] [stdout] 332 | | s.pids_max.to_string(), [INFO] [stdout] 333 | | ); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:393:17 [INFO] [stdout] | [INFO] [stdout] 393 | writeln!(&mut buffer, "{}", rdma_entry.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 424 | / match e.default_weight { [INFO] [stdout] 425 | | None => writeln!(&mut buffer, "{}", "default 100"), [INFO] [stdout] 426 | | Some(def) => writeln!(&mut buffer, "default {}", def), [INFO] [stdout] 427 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:429:13 [INFO] [stdout] | [INFO] [stdout] 429 | / writeln!( [INFO] [stdout] 430 | | &mut buffer, [INFO] [stdout] 431 | | "{}:{}\t{}", [INFO] [stdout] 432 | | weight.device.major, weight.device.minor, weight.weight [INFO] [stdout] 433 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | fs::write(format!("{}/io.weight", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | / write!( [INFO] [stdout] 442 | | &mut buffer, [INFO] [stdout] 443 | | "{}:{}\t", [INFO] [stdout] 444 | | io_limit.device.major, io_limit.device.minor, [INFO] [stdout] 445 | | ); [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | write!(&mut buffer, "rbps={}\t", rbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:455:21 [INFO] [stdout] | [INFO] [stdout] 455 | write!(&mut buffer, "wbps={}\t", wbps); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:462:21 [INFO] [stdout] | [INFO] [stdout] 462 | write!(&mut buffer, "riops={}\t", riops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:469:21 [INFO] [stdout] | [INFO] [stdout] 469 | write!(&mut buffer, "wiops={}\t", wiops); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:473:13 [INFO] [stdout] | [INFO] [stdout] 473 | writeln!(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `$crate::write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | fs::write(format!("{}/io.max", self.child_directory), buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/resources.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | / match hugetlb.max { [INFO] [stdout] 488 | | None => fs::write( [INFO] [stdout] 489 | | format!( [INFO] [stdout] 490 | | "{}/hugetlb.{}.max", [INFO] [stdout] ... | [INFO] [stdout] 501 | | ), [INFO] [stdout] 502 | | }; [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hugepageLimits` should have a snake case name [INFO] [stdout] --> src/resources.rs:814:17 [INFO] [stdout] | [INFO] [stdout] 814 | let mut hugepageLimits = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hugepage_limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.79s [INFO] running `Command { std: "docker" "inspect" "c0e04a180c7b7e4e9979cd1a885bf842db26d82a3e3b2795b97afe27c61b67a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0e04a180c7b7e4e9979cd1a885bf842db26d82a3e3b2795b97afe27c61b67a2", kill_on_drop: false }` [INFO] [stdout] c0e04a180c7b7e4e9979cd1a885bf842db26d82a3e3b2795b97afe27c61b67a2