[INFO] cloning repository https://github.com/ritvikos/enclosure [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ritvikos/enclosure" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fritvikos%2Fenclosure", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fritvikos%2Fenclosure'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1a7d448f58da904848e3fa068d11e639c0ab4b0 [INFO] checking ritvikos/enclosure against try#51de2e90f91fdec6cf64ff542a4e15b9c177a797 for pr-147294 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fritvikos%2Fenclosure" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ritvikos/enclosure [INFO] finished tweaking git repo https://github.com/ritvikos/enclosure [INFO] tweaked toml for git repo https://github.com/ritvikos/enclosure written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ritvikos/enclosure on toolchain 51de2e90f91fdec6cf64ff542a4e15b9c177a797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ritvikos/enclosure already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84eafd1437f5c4f35fb2090bcda4c984793daa437520c6a9faad655f30b5dc04 [INFO] running `Command { std: "docker" "start" "-a" "84eafd1437f5c4f35fb2090bcda4c984793daa437520c6a9faad655f30b5dc04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84eafd1437f5c4f35fb2090bcda4c984793daa437520c6a9faad655f30b5dc04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84eafd1437f5c4f35fb2090bcda4c984793daa437520c6a9faad655f30b5dc04", kill_on_drop: false }` [INFO] [stdout] 84eafd1437f5c4f35fb2090bcda4c984793daa437520c6a9faad655f30b5dc04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+51de2e90f91fdec6cf64ff542a4e15b9c177a797" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eca96ddf21bdde4f9c0a238de6f73add2bf8a8c3525bf8a24a2a95be582e2a8d [INFO] running `Command { std: "docker" "start" "-a" "eca96ddf21bdde4f9c0a238de6f73add2bf8a8c3525bf8a24a2a95be582e2a8d", kill_on_drop: false }` [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Compiling virtue v0.0.18 [INFO] [stderr] Checking unty v0.0.4 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Compiling bincode_derive v2.0.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking caps v0.5.5 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Checking enclosure v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `OverFlowIds` [INFO] [stdout] --> src/sandbox.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | context::{GlobalContext, OverFlowIds, PrivilegeLevel, ROOTLESS_WITH_CAPABILITY_ERROR_MESSAGE}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gid`, `Pid`, and `Uid` [INFO] [stdout] --> src/sandbox.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | unistd::{Gid, Pid, Uid}, [INFO] [stdout] | ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowedFd`, `fs::File`, `io::Write`, and `path::Path` [INFO] [stdout] --> src/sandbox.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | os::fd::{AsFd, BorrowedFd}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errno::Errno` [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | errno::Errno, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `OwnedFd` [INFO] [stdout] --> src/utils.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | fd::{AsRawFd, BorrowedFd, FromRawFd, OwnedFd}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OverFlowIds` [INFO] [stdout] --> src/sandbox.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | context::{GlobalContext, OverFlowIds, PrivilegeLevel, ROOTLESS_WITH_CAPABILITY_ERROR_MESSAGE}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gid`, `Pid`, and `Uid` [INFO] [stdout] --> src/sandbox.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | unistd::{Gid, Pid, Uid}, [INFO] [stdout] | ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowedFd`, `fs::File`, `io::Write`, and `path::Path` [INFO] [stdout] --> src/sandbox.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | os::fd::{AsFd, BorrowedFd}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errno::Errno` [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | errno::Errno, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRawFd` and `OwnedFd` [INFO] [stdout] --> src/utils.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | fd::{AsRawFd, BorrowedFd, FromRawFd, OwnedFd}, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/mount.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | options, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `options: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | SpecialMount::Proc(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | SpecialMount::Dev(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_kb` [INFO] [stdout] --> src/mount.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | size_kb, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `size_kb: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | SpecialMount::Mqueue(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | FileOp::CreateDir(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/mount.rs:75:38 [INFO] [stdout] | [INFO] [stdout] 75 | FileOp::CreateFile { fd, dest } => { [INFO] [stdout] | ^^ help: try ignoring the field: `fd: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:75:42 [INFO] [stdout] | [INFO] [stdout] 75 | FileOp::CreateFile { fd, dest } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | dest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/mount.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | readonly, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `readonly: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `link_path` [INFO] [stdout] --> src/mount.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | FileOp::CreateSymlink { link_path, target } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `link_path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:85:52 [INFO] [stdout] | [INFO] [stdout] 85 | FileOp::CreateSymlink { link_path, target } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | FileOp::RemountReadOnly(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/mount.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | SystemOp::SetHostname(name) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/mount.rs:97:35 [INFO] [stdout] | [INFO] [stdout] 97 | SystemOp::Chmod { path, mode } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | SystemOp::Chmod { path, mode } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/mount.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | options, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `options: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:140:44 [INFO] [stdout] | [INFO] [stdout] 140 | SpecialMount::Proc(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 141 | SpecialMount::Dev(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:143:29 [INFO] [stdout] | [INFO] [stdout] 143 | ... target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_kb` [INFO] [stdout] --> src/mount.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | ... size_kb, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `size_kb: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | ... mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:147:46 [INFO] [stdout] | [INFO] [stdout] 147 | SpecialMount::Mqueue(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:149:29 [INFO] [stdout] | [INFO] [stdout] 149 | ... lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | ... upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | ... workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:157:39 [INFO] [stdout] | [INFO] [stdout] 157 | FileOp::CreateDir(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/mount.rs:158:42 [INFO] [stdout] | [INFO] [stdout] 158 | FileOp::CreateFile { fd, dest } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `fd: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:158:46 [INFO] [stdout] | [INFO] [stdout] 158 | FileOp::CreateFile { fd, dest } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | dest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/mount.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | readonly, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `readonly: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `link_path` [INFO] [stdout] --> src/mount.rs:164:45 [INFO] [stdout] | [INFO] [stdout] 164 | FileOp::CreateSymlink { link_path, target } => todo!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `link_path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:164:56 [INFO] [stdout] | [INFO] [stdout] 164 | FileOp::CreateSymlink { link_path, target } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:165:45 [INFO] [stdout] | [INFO] [stdout] 165 | FileOp::RemountReadOnly(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/mount.rs:169:43 [INFO] [stdout] | [INFO] [stdout] 169 | SystemOp::SetHostname(name) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/mount.rs:170:39 [INFO] [stdout] | [INFO] [stdout] 170 | SystemOp::Chmod { path, mode } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:170:45 [INFO] [stdout] | [INFO] [stdout] 170 | SystemOp::Chmod { path, mode } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `acquire_child_privileges` is never used [INFO] [stdout] --> src/capabilities.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl CapabilityManager { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn acquire_child_privileges(in_new_ns: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_cgroups_supported` is never used [INFO] [stdout] --> src/checks.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) fn is_cgroups_supported() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `euid` is never read [INFO] [stdout] --> src/context.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct GlobalContext { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 20 | ruid: Uid, [INFO] [stdout] 21 | euid: Uid, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GlobalContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `euid`, `root`, `overflow_uid`, and `overflow_gid` are never used [INFO] [stdout] --> src/context.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl GlobalContext { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn euid(&self) -> Uid { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn root(&self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn overflow_uid(&self) -> Uid { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn overflow_gid(&self) -> Gid { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unmount_fs` is never used [INFO] [stdout] --> src/hardener.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn unmount_fs(target: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MountHardener` is never constructed [INFO] [stdout] --> src/hardener.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct MountHardener<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pid` and `terminate` are never used [INFO] [stdout] --> src/jailer.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl<'handle> JailHandle<'handle> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn pid(&self) -> Pid { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn terminate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config` and `resource` are never used [INFO] [stdout] --> src/jailer.rs:275:8 [INFO] [stdout] | [INFO] [stdout] 274 | pub trait Jailable<'jail> { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 275 | fn config(&self) -> &Config; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 276 | fn resource(&self) -> &HostResource<'jail>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_mounts`, `mount_supervisor`, and `mount_worker` are never used [INFO] [stdout] --> src/mount.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Jail<'_> { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 10 | pub fn handle_mounts(&self, setuid: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn mount_supervisor(&self, supervisor: Supervisor) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn mount_worker(&self, worker: Worker) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supervisor` is never constructed [INFO] [stdout] --> src/privsep.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Supervisor(OwnedFd, PhantomData); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `listen` is never used [INFO] [stdout] --> src/privsep.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl> Supervisor { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] 20 | pub fn listen(&self, config: &C, mut handler: F) -> Result<()> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/privsep.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Worker(OwnedFd, PhantomData); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/privsep.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Worker { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 59 | pub fn send(&self, command: &T) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `privsep` is never used [INFO] [stdout] --> src/privsep.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn privsep + Encode, ChildFn, ParentFn>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `writer` is never read [INFO] [stdout] --> src/report.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ErrorReporter { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | writer: OwnedFd, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorReporter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `split`, `report_child_error`, and `report_error` are never used [INFO] [stdout] --> src/report.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ErrorReporter { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn split(self) -> (ParentErrorReader, ChildErrorWriter) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn report_child_error(&self, error: &E) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn report_error(&self, error_message: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChildErrorWriter` is never constructed [INFO] [stdout] --> src/report.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ChildErrorWriter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `report_error` are never used [INFO] [stdout] --> src/report.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl ChildErrorWriter { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 89 | /// Creates a new instance of `ChildErrorWriter` [INFO] [stdout] 90 | pub fn new(writer: OwnedFd) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn report_error(&self, error_message: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParentErrorReader` is never constructed [INFO] [stdout] --> src/report.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct ParentErrorReader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `read_error_message` are never used [INFO] [stdout] --> src/report.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl ParentErrorReader { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 113 | /// Creates a new `ParentErrorReader` from an owned FD [INFO] [stdout] 114 | pub fn new(reader: OwnedFd) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn read_error_message(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getcwd` is never used [INFO] [stdout] --> src/utils.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn getcwd() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_file` is never used [INFO] [stdout] --> src/utils.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn create_file>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_file_recursive` is never used [INFO] [stdout] --> src/utils.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn create_file_recursive>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_file` is never used [INFO] [stdout] --> src/utils.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn ensure_file>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_directory_recursive` is never used [INFO] [stdout] --> src/utils.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn create_directory_recursive>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_directory` is never used [INFO] [stdout] --> src/utils.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn ensure_directory>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/jailer.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn spawn_blocking(&self, flags: CloneFlags) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 70 | pub fn spawn_blocking(&self, flags: CloneFlags) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/jailer.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | fn spawn_child(&self, callback: CloneCb, flags: CloneFlags) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 86 | fn spawn_child(&self, callback: CloneCb, flags: CloneFlags) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/mount.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | options, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `options: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | SpecialMount::Proc(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | SpecialMount::Dev(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_kb` [INFO] [stdout] --> src/mount.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | size_kb, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `size_kb: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:58:42 [INFO] [stdout] | [INFO] [stdout] 58 | SpecialMount::Mqueue(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | FileOp::CreateDir(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/mount.rs:75:38 [INFO] [stdout] | [INFO] [stdout] 75 | FileOp::CreateFile { fd, dest } => { [INFO] [stdout] | ^^ help: try ignoring the field: `fd: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:75:42 [INFO] [stdout] | [INFO] [stdout] 75 | FileOp::CreateFile { fd, dest } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | dest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/mount.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | readonly, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `readonly: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `link_path` [INFO] [stdout] --> src/mount.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | FileOp::CreateSymlink { link_path, target } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `link_path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:85:52 [INFO] [stdout] | [INFO] [stdout] 85 | FileOp::CreateSymlink { link_path, target } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | FileOp::RemountReadOnly(path_buf) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/mount.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | SystemOp::SetHostname(name) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/mount.rs:97:35 [INFO] [stdout] | [INFO] [stdout] 97 | SystemOp::Chmod { path, mode } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | SystemOp::Chmod { path, mode } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/mount.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | options, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `options: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:140:44 [INFO] [stdout] | [INFO] [stdout] 140 | SpecialMount::Proc(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 141 | SpecialMount::Dev(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:143:29 [INFO] [stdout] | [INFO] [stdout] 143 | ... target, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_kb` [INFO] [stdout] --> src/mount.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | ... size_kb, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `size_kb: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | ... mode, [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:147:46 [INFO] [stdout] | [INFO] [stdout] 147 | SpecialMount::Mqueue(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowerdir` [INFO] [stdout] --> src/mount.rs:149:29 [INFO] [stdout] | [INFO] [stdout] 149 | ... lowerdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `lowerdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `upperdir` [INFO] [stdout] --> src/mount.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | ... upperdir, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `upperdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `workdir` [INFO] [stdout] --> src/mount.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | ... workdir, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `workdir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:157:39 [INFO] [stdout] | [INFO] [stdout] 157 | FileOp::CreateDir(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/mount.rs:158:42 [INFO] [stdout] | [INFO] [stdout] 158 | FileOp::CreateFile { fd, dest } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `fd: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:158:46 [INFO] [stdout] | [INFO] [stdout] 158 | FileOp::CreateFile { fd, dest } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/mount.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | source, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `source: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/mount.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | dest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `dest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/mount.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 162 | readonly, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `readonly: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `link_path` [INFO] [stdout] --> src/mount.rs:164:45 [INFO] [stdout] | [INFO] [stdout] 164 | FileOp::CreateSymlink { link_path, target } => todo!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `link_path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/mount.rs:164:56 [INFO] [stdout] | [INFO] [stdout] 164 | FileOp::CreateSymlink { link_path, target } => todo!(), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path_buf` [INFO] [stdout] --> src/mount.rs:165:45 [INFO] [stdout] | [INFO] [stdout] 165 | FileOp::RemountReadOnly(path_buf) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_path_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/mount.rs:169:43 [INFO] [stdout] | [INFO] [stdout] 169 | SystemOp::SetHostname(name) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/mount.rs:170:39 [INFO] [stdout] | [INFO] [stdout] 170 | SystemOp::Chmod { path, mode } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/mount.rs:170:45 [INFO] [stdout] | [INFO] [stdout] 170 | SystemOp::Chmod { path, mode } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `mode: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `acquire_child_privileges` is never used [INFO] [stdout] --> src/capabilities.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl CapabilityManager { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn acquire_child_privileges(in_new_ns: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_cgroups_supported` is never used [INFO] [stdout] --> src/checks.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) fn is_cgroups_supported() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `euid` is never read [INFO] [stdout] --> src/context.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct GlobalContext { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 20 | ruid: Uid, [INFO] [stdout] 21 | euid: Uid, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GlobalContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `euid`, `root`, `overflow_uid`, and `overflow_gid` are never used [INFO] [stdout] --> src/context.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl GlobalContext { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn euid(&self) -> Uid { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn root(&self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn overflow_uid(&self) -> Uid { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn overflow_gid(&self) -> Gid { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unmount_fs` is never used [INFO] [stdout] --> src/hardener.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn unmount_fs(target: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MountHardener` is never constructed [INFO] [stdout] --> src/hardener.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct MountHardener<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pid` and `terminate` are never used [INFO] [stdout] --> src/jailer.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl<'handle> JailHandle<'handle> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn pid(&self) -> Pid { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn terminate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `config` and `resource` are never used [INFO] [stdout] --> src/jailer.rs:275:8 [INFO] [stdout] | [INFO] [stdout] 274 | pub trait Jailable<'jail> { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 275 | fn config(&self) -> &Config; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 276 | fn resource(&self) -> &HostResource<'jail>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_mounts`, `mount_supervisor`, and `mount_worker` are never used [INFO] [stdout] --> src/mount.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Jail<'_> { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 10 | pub fn handle_mounts(&self, setuid: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn mount_supervisor(&self, supervisor: Supervisor) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn mount_worker(&self, worker: Worker) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `writer` is never read [INFO] [stdout] --> src/report.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ErrorReporter { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | writer: OwnedFd, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorReporter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `split`, `report_child_error`, and `report_error` are never used [INFO] [stdout] --> src/report.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl ErrorReporter { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn split(self) -> (ParentErrorReader, ChildErrorWriter) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn report_child_error(&self, error: &E) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn report_error(&self, error_message: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChildErrorWriter` is never constructed [INFO] [stdout] --> src/report.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ChildErrorWriter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `report_error` are never used [INFO] [stdout] --> src/report.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl ChildErrorWriter { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 89 | /// Creates a new instance of `ChildErrorWriter` [INFO] [stdout] 90 | pub fn new(writer: OwnedFd) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn report_error(&self, error_message: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParentErrorReader` is never constructed [INFO] [stdout] --> src/report.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct ParentErrorReader { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `read_error_message` are never used [INFO] [stdout] --> src/report.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl ParentErrorReader { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 113 | /// Creates a new `ParentErrorReader` from an owned FD [INFO] [stdout] 114 | pub fn new(reader: OwnedFd) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn read_error_message(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getcwd` is never used [INFO] [stdout] --> src/utils.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn getcwd() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_file` is never used [INFO] [stdout] --> src/utils.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn create_file>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_file_recursive` is never used [INFO] [stdout] --> src/utils.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn create_file_recursive>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_file` is never used [INFO] [stdout] --> src/utils.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn ensure_file>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_directory_recursive` is never used [INFO] [stdout] --> src/utils.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn create_directory_recursive>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_directory` is never used [INFO] [stdout] --> src/utils.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn ensure_directory>(path: P, mode: u32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/jailer.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn spawn_blocking(&self, flags: CloneFlags) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 70 | pub fn spawn_blocking(&self, flags: CloneFlags) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/jailer.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | fn spawn_child(&self, callback: CloneCb, flags: CloneFlags) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 86 | fn spawn_child(&self, callback: CloneCb, flags: CloneFlags) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.73s [INFO] running `Command { std: "docker" "inspect" "eca96ddf21bdde4f9c0a238de6f73add2bf8a8c3525bf8a24a2a95be582e2a8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eca96ddf21bdde4f9c0a238de6f73add2bf8a8c3525bf8a24a2a95be582e2a8d", kill_on_drop: false }` [INFO] [stdout] eca96ddf21bdde4f9c0a238de6f73add2bf8a8c3525bf8a24a2a95be582e2a8d