[INFO] cloning repository https://github.com/ammrat13/sus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ammrat13/sus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fammrat13%2Fsus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fammrat13%2Fsus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d8dbca0cb0abf7a03b0fe3092c36ceedff7f476 [INFO] checking ammrat13/sus/7d8dbca0cb0abf7a03b0fe3092c36ceedff7f476 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fammrat13%2Fsus" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ammrat13/sus on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ammrat13/sus [INFO] finished tweaking git repo https://github.com/ammrat13/sus [INFO] tweaked toml for git repo https://github.com/ammrat13/sus written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ammrat13/sus 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 44e29b64bda38368cbf0b7d341b76e831c39902681094c3d7c4ddba06ff5ba7c [INFO] running `Command { std: "docker" "start" "-a" "44e29b64bda38368cbf0b7d341b76e831c39902681094c3d7c4ddba06ff5ba7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44e29b64bda38368cbf0b7d341b76e831c39902681094c3d7c4ddba06ff5ba7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44e29b64bda38368cbf0b7d341b76e831c39902681094c3d7c4ddba06ff5ba7c", kill_on_drop: false }` [INFO] [stdout] 44e29b64bda38368cbf0b7d341b76e831c39902681094c3d7c4ddba06ff5ba7c [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57c520f80b0497dd335894729b7897b9a03bc78ade8d45cd59b32be284b59781 [INFO] running `Command { std: "docker" "start" "-a" "57c520f80b0497dd335894729b7897b9a03bc78ade8d45cd59b32be284b59781", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (2 fixes) [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling sus v0.0.0 (/tmp/fixit) [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking nix v0.23.0 [INFO] [stderr] Checking which v4.2.2 [INFO] [stderr] Checking users v0.11.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Migrating src/bin/sus/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/bin/sus/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | if let Err(e) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/bin/sus/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | if let Err(e) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/sus-kernel/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | PathMalformed { content: String }, [INFO] [stdout] | ------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `content` are never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | ArgMalformed { position: usize, content: String }, [INFO] [stdout] | ------------ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | SetUID { errno: Errno }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | SetPrimaryGID { errno: Errno }, [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | SetSecondaryGID { errno: Errno }, [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | Execute { errno: Errno }, [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | UIDMalformed { content: String }, [INFO] [stdout] | ------------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | PrimaryGIDMalformed { content: String }, [INFO] [stdout] | ------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | SecondaryGIDMalformed { content: String }, [INFO] [stdout] | --------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allow_all_cmds` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Rule { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 52 | pub allow_all_cmds: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_aliases` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct ParsedSudoers { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 156 | pub rules: Vec, [INFO] [stdout] 157 | pub user_aliases: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Policy` is never constructed [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/sudoers.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | Verify { cause: VerifyError }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | Log { cause: LogError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | Run { cause: RunError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | PathMalformed { content: String }, [INFO] [stdout] | ------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `content` are never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | ArgMalformed { position: usize, content: String }, [INFO] [stdout] | ------------ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | SetUID { errno: Errno }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | SetPrimaryGID { errno: Errno }, [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | SetSecondaryGID { errno: Errno }, [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | Execute { errno: Errno }, [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | UIDMalformed { content: String }, [INFO] [stdout] | ------------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | PrimaryGIDMalformed { content: String }, [INFO] [stdout] | ------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | SecondaryGIDMalformed { content: String }, [INFO] [stdout] | --------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allow_all_cmds` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Rule { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 52 | pub allow_all_cmds: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_aliases` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct ParsedSudoers { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 156 | pub rules: Vec, [INFO] [stdout] 157 | pub user_aliases: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Policy` is never constructed [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/sudoers.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | Verify { cause: VerifyError }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | Log { cause: LogError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | Run { cause: RunError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.19s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling sus v0.0.0 (/tmp/fixit) [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/bin/sus/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | if let Err(e) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/bin/sus/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | if let Err(e) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | PathMalformed { content: String }, [INFO] [stdout] | ------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `content` are never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | ArgMalformed { position: usize, content: String }, [INFO] [stdout] | ------------ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | SetUID { errno: Errno }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | SetPrimaryGID { errno: Errno }, [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | SetSecondaryGID { errno: Errno }, [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | Execute { errno: Errno }, [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | UIDMalformed { content: String }, [INFO] [stdout] | ------------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | PrimaryGIDMalformed { content: String }, [INFO] [stdout] | ------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | SecondaryGIDMalformed { content: String }, [INFO] [stdout] | --------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allow_all_cmds` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Rule { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 52 | pub allow_all_cmds: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_aliases` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct ParsedSudoers { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 156 | pub rules: Vec, [INFO] [stdout] 157 | pub user_aliases: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Policy` is never constructed [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/sudoers.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | Verify { cause: VerifyError }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | Log { cause: LogError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | Run { cause: RunError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 54 | PathMalformed { content: String }, [INFO] [stdout] | ------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `content` are never read [INFO] [stdout] --> src/bin/sus-kernel/executable/factory/mod.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | ArgMalformed { position: usize, content: String }, [INFO] [stdout] | ------------ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ExecutableFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | SetUID { errno: Errno }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | SetPrimaryGID { errno: Errno }, [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | SetSecondaryGID { errno: Errno }, [INFO] [stdout] | --------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `errno` is never read [INFO] [stdout] --> src/bin/sus-kernel/executable/run/mod.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | Execute { errno: Errno }, [INFO] [stdout] | ------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RunError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | UIDMalformed { content: String }, [INFO] [stdout] | ------------ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | PrimaryGIDMalformed { content: String }, [INFO] [stdout] | ------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/factory/mod.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | SecondaryGIDMalformed { content: String }, [INFO] [stdout] | --------------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PermissionFactoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allow_all_cmds` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Rule { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 52 | pub allow_all_cmds: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_aliases` is never read [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/parsed_sudoers_type.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 155 | pub struct ParsedSudoers { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 156 | pub rules: Vec, [INFO] [stdout] 157 | pub user_aliases: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Policy` is never constructed [INFO] [stdout] --> src/bin/sus-kernel/permission/verify/sudoers.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | Verify { cause: VerifyError }, [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | Log { cause: LogError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cause` is never read [INFO] [stdout] --> src/bin/sus-kernel/request.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | Run { cause: RunError }, [INFO] [stdout] | --- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "57c520f80b0497dd335894729b7897b9a03bc78ade8d45cd59b32be284b59781", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57c520f80b0497dd335894729b7897b9a03bc78ade8d45cd59b32be284b59781", kill_on_drop: false }` [INFO] [stdout] 57c520f80b0497dd335894729b7897b9a03bc78ade8d45cd59b32be284b59781