[INFO] cloning repository https://github.com/garyttierney/libsepolrs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/garyttierney/libsepolrs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaryttierney%2Flibsepolrs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaryttierney%2Flibsepolrs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 83b1e107f7328c9906417b6423def7c22d78ec13 [INFO] checking garyttierney/libsepolrs against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaryttierney%2Flibsepolrs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garyttierney/libsepolrs on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/garyttierney/libsepolrs [INFO] finished tweaking git repo https://github.com/garyttierney/libsepolrs [INFO] tweaked toml for git repo https://github.com/garyttierney/libsepolrs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/garyttierney/libsepolrs 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utf8-ranges v1.0.0 [INFO] [stderr] Downloaded wincolor v1.0.0 [INFO] [stderr] Downloaded cfg-if v0.1.4 [INFO] [stderr] Downloaded itertools v0.7.8 [INFO] [stderr] Downloaded libloading v0.5.0 [INFO] [stderr] Downloaded cc v1.0.18 [INFO] [stderr] Downloaded termcolor v1.0.1 [INFO] [stderr] Downloaded regex v1.0.2 [INFO] [stderr] Downloaded env_logger v0.5.11 [INFO] [stderr] Downloaded bindgen v0.37.4 [INFO] [stderr] Downloaded regex-syntax v0.6.2 [INFO] [stderr] Downloaded proc-macro2 v0.3.5 [INFO] [stderr] Downloaded libc v0.2.42 [INFO] [stderr] Downloaded aho-corasick v0.6.6 [INFO] [stderr] Downloaded ucd-util v0.1.1 [INFO] [stderr] Downloaded thread_local v0.3.5 [INFO] [stderr] Downloaded gcc v0.3.54 [INFO] [stderr] Downloaded clang-sys v0.23.0 [INFO] [stderr] Downloaded log v0.4.3 [INFO] [stderr] Downloaded quote v0.5.2 [INFO] [stderr] Downloaded memchr v2.0.1 [INFO] [stderr] Downloaded croaring v0.3.5 [INFO] [stderr] Downloaded croaring-sys v0.3.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7caf34e0a07d7d0433dc07763fab14b4363ebe2084d075b1c759051bae29209f [INFO] running `Command { std: "docker" "start" "-a" "7caf34e0a07d7d0433dc07763fab14b4363ebe2084d075b1c759051bae29209f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7caf34e0a07d7d0433dc07763fab14b4363ebe2084d075b1c759051bae29209f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7caf34e0a07d7d0433dc07763fab14b4363ebe2084d075b1c759051bae29209f", kill_on_drop: false }` [INFO] [stdout] 7caf34e0a07d7d0433dc07763fab14b4363ebe2084d075b1c759051bae29209f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2bade54292b88ba1b8cf8a0372e72633d0221def9f914c11f2e2af1cfbff522a [INFO] running `Command { std: "docker" "start" "-a" "2bade54292b88ba1b8cf8a0372e72633d0221def9f914c11f2e2af1cfbff522a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling clang-sys v0.23.0 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling termcolor v1.0.1 [INFO] [stderr] Compiling log v0.4.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling bindgen v0.37.4 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking byteorder v1.2.3 [INFO] [stderr] Checking itertools v0.7.8 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling which v1.0.5 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling aho-corasick v0.6.6 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling cexpr v0.2.3 [INFO] [stderr] Compiling env_logger v0.5.11 [INFO] [stderr] Compiling croaring-sys v0.3.5 [INFO] [stderr] Checking croaring v0.3.5 [INFO] [stderr] Checking sepolrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/class.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/cons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/class.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/mls.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/cons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/mls.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/policydb/mls.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | categories.add_range_closed((low..high)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - categories.add_range_closed((low..high)) [INFO] [stdout] 37 + categories.add_range_closed(low..high) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/polcap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/policydb/mls.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | categories.add_range_closed((low..high)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - categories.add_range_closed((low..high)) [INFO] [stdout] 37 + categories.add_range_closed(low..high) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/policydb/profile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/polcap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/policydb/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/policydb/profile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/policydb/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/role.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/role.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyType` [INFO] [stdout] --> src/policydb/role.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use policydb::PolicyType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyType` [INFO] [stdout] --> src/policydb/role.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use policydb::PolicyType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/symtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/symtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReadError` [INFO] [stdout] --> src/policydb/symtable.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::PolicyReadError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReadError` [INFO] [stdout] --> src/policydb/symtable.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::PolicyReadError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReader` [INFO] [stdout] --> src/policydb/symtable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use policydb::PolicyReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/policydb/symtable.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReader` [INFO] [stdout] --> src/policydb/symtable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use policydb::PolicyReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/ty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/policydb/symtable.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/ty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `nll` has been stable since 1.63.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(nll)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `nll` has been stable since 1.63.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(nll)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items2` [INFO] [stdout] --> src/policydb/avtab.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let items2 /*???*/ = reader.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_items2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items2` [INFO] [stdout] --> src/policydb/avtab.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let items2 /*???*/ = reader.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_items2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_size` [INFO] [stdout] --> src/policydb/bitmap.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let map_size = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high_bit` [INFO] [stdout] --> src/policydb/bitmap.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let high_bit = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_high_bit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_idx` [INFO] [stdout] --> src/policydb/bitmap.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | for map_idx in 0..map_count { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_perm_names` [INFO] [stdout] --> src/policydb/class.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let num_perm_names = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_perm_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_size` [INFO] [stdout] --> src/policydb/bitmap.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let map_size = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high_bit` [INFO] [stdout] --> src/policydb/bitmap.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let high_bit = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_high_bit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_idx` [INFO] [stdout] --> src/policydb/bitmap.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | for map_idx in 0..map_count { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_perm_names` [INFO] [stdout] --> src/policydb/class.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let num_perm_names = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_perm_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `el` [INFO] [stdout] --> src/policydb/reader.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | for el in 0..nel { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_el` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/policydb/reader.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let config = self.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_sym_tables` [INFO] [stdout] --> src/policydb/reader.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let num_sym_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_sym_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_ocon_tables` [INFO] [stdout] --> src/policydb/reader.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let num_ocon_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_ocon_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive_type_map` [INFO] [stdout] --> src/policydb/reader.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let permissive_type_map: Option = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive_type_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `el` [INFO] [stdout] --> src/policydb/reader.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | for el in 0..nel { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_el` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounds` [INFO] [stdout] --> src/policydb/role.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let bounds = if reader.profile().supports(Feature::Boundary) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/policydb/reader.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let config = self.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_sym_tables` [INFO] [stdout] --> src/policydb/reader.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let num_sym_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_sym_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_ocon_tables` [INFO] [stdout] --> src/policydb/reader.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let num_ocon_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_ocon_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive_type_map` [INFO] [stdout] --> src/policydb/reader.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let permissive_type_map: Option = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive_type_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capacity` [INFO] [stdout] --> src/policydb/symtable.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounds` [INFO] [stdout] --> src/policydb/role.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let bounds = if reader.profile().supports(Feature::Boundary) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capacity` [INFO] [stdout] --> src/policydb/symtable.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive` [INFO] [stdout] --> src/policydb/ty.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let permissive = properties.contains(TyProperties::Permissive); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_set` [INFO] [stdout] --> src/policydb/user.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let role_set: RoleSet = reader.read_object()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | profile: &CompatibilityProfile, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive` [INFO] [stdout] --> src/policydb/ty.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let permissive = properties.contains(TyProperties::Permissive); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut policy_reader = PolicyReader::new(file_reader); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_set` [INFO] [stdout] --> src/policydb/user.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let role_set: RoleSet = reader.read_object()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `avtab` is never read [INFO] [stdout] --> src/policydb/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Policy { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | avtab: AccessVectorTable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Policy` 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 `key` and `av` are never read [INFO] [stdout] --> src/policydb/avtab.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AccessVectorTableEntry { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 59 | key: AccessVectorTableKey, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | av: AccessVector, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTableEntry` 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 `entries` is never read [INFO] [stdout] --> src/policydb/avtab.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct AccessVectorTable { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 65 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | profile: &CompatibilityProfile, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/policydb/class.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | common_name: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | permissions: SymbolTable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 61 | transition_constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | default_user: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | default_role: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 64 | default_range: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 65 | default_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` 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 `flags` is never read [INFO] [stdout] --> src/policydb/conditional.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Boolean { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | flags: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Boolean` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `permissions` and `expressions` are never read [INFO] [stdout] --> src/policydb/cons.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Constraint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | pub(crate) permissions: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub(crate) expressions: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constraint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `attr`, and `kind` are never read [INFO] [stdout] --> src/policydb/cons.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ConstraintExpression { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 36 | pub(crate) op: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | pub(crate) attr: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub(crate) kind: ConstraintExpressionKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConstraintExpression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sensitivity` and `categories` are never read [INFO] [stdout] --> src/policydb/mls.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MlsLevel { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | sensitivity: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | categories: Bitmap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsLevel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `low` and `high` are never read [INFO] [stdout] --> src/policydb/mls.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct MlsRange { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 49 | low: MlsLevel, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | high: MlsLevel, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsRange` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `is_alias` are never read [INFO] [stdout] --> src/policydb/mls.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct Sensitivity { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 92 | level: MlsLevel, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 93 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sensitivity` 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 `is_alias` is never read [INFO] [stdout] --> src/policydb/mls.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct Category { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 126 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Category` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const POLICYDB_VERSION_BASE: u32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BOOL` is never used [INFO] [stdout] --> src/policydb/profile.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const POLICYDB_VERSION_BOOL: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_IPV6` is never used [INFO] [stdout] --> src/policydb/profile.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const POLICYDB_VERSION_IPV6: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_NLCLASS` is never used [INFO] [stdout] --> src/policydb/profile.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const POLICYDB_VERSION_NLCLASS: u32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const POLICYDB_VERSION_RANGETRANS: u32 = 21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const POLICYDB_VERSION_FILENAME_TRANS: u32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const POLICYDB_VERSION_ROLETRANS: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_XEN_DEVICETREE` is never used [INFO] [stdout] --> src/policydb/profile.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const POLICYDB_VERSION_XEN_DEVICETREE: u32 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const POLICYDB_VERSION_INFINIBAND: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const MOD_POLICYDB_VERSION_BASE: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const MOD_POLICYDB_VERSION_RANGETRANS: u32 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const MOD_POLICYDB_VERSION_FILENAME_TRANS: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | const MOD_POLICYDB_VERSION_ROLETRANS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLEATTRIB` is never used [INFO] [stdout] --> src/policydb/profile.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const MOD_POLICYDB_VERSION_ROLEATTRIB: u32 = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const MOD_POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const MOD_POLICYDB_VERSION_INFINIBAND: u32 = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Platform` is never constructed [INFO] [stdout] --> src/policydb/profile.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum FeatureRequirement { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | Platform(PolicyTargetPlatform), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `platform` is never used [INFO] [stdout] --> src/policydb/profile.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | fn platform(platform: PolicyTargetPlatform) -> FeatureRequirement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dominates`, `type_set`, `flavor`, and `roles` are never read [INFO] [stdout] --> src/policydb/role.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Role { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | dominates: Bitmap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | type_set: TypeSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | roles: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `primary`, `flavor`, `flags`, `bounds`, and `assoc_types` are never read [INFO] [stdout] --> src/policydb/ty.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Type { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | primary: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | flags: TyFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | assoc_types: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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 `bounds` is never read [INFO] [stdout] --> src/policydb/user.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_MLS_ENABLED` is never used [INFO] [stdout] --> src/policydb/mod.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) const CONFIG_MLS_ENABLED: u32 = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_REJECT_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const CONFIG_REJECT_UNKNOWN: u32 = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_ALLOW_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub(crate) const CONFIG_ALLOW_UNKNOWN: u32 = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut policy_reader = PolicyReader::new(file_reader); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Primary` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | const Primary = 0x0001; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PRIMARY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Attribute` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | const Attribute = 0x0002; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ATTRIBUTE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Alias` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | const Alias = 0x0004;/* userspace only */ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `ALIAS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | const Permissive = 0x0008 ;/* userspace only */ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | const Permissive = 0x0001; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `avtab` is never read [INFO] [stdout] --> src/policydb/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Policy { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | avtab: AccessVectorTable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Policy` 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 `key` and `av` are never read [INFO] [stdout] --> src/policydb/avtab.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AccessVectorTableEntry { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 59 | key: AccessVectorTableKey, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | av: AccessVector, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTableEntry` 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 `entries` is never read [INFO] [stdout] --> src/policydb/avtab.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct AccessVectorTable { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 65 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/policydb/class.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | common_name: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | permissions: SymbolTable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 61 | transition_constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | default_user: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | default_role: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 64 | default_range: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 65 | default_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` 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 `flags` is never read [INFO] [stdout] --> src/policydb/conditional.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Boolean { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | flags: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Boolean` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `permissions` and `expressions` are never read [INFO] [stdout] --> src/policydb/cons.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Constraint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | pub(crate) permissions: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub(crate) expressions: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constraint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `attr`, and `kind` are never read [INFO] [stdout] --> src/policydb/cons.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ConstraintExpression { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 36 | pub(crate) op: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | pub(crate) attr: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub(crate) kind: ConstraintExpressionKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConstraintExpression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sensitivity` and `categories` are never read [INFO] [stdout] --> src/policydb/mls.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MlsLevel { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | sensitivity: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | categories: Bitmap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsLevel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `low` and `high` are never read [INFO] [stdout] --> src/policydb/mls.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct MlsRange { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 49 | low: MlsLevel, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | high: MlsLevel, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsRange` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `is_alias` are never read [INFO] [stdout] --> src/policydb/mls.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct Sensitivity { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 92 | level: MlsLevel, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 93 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sensitivity` 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 `is_alias` is never read [INFO] [stdout] --> src/policydb/mls.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct Category { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 126 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Category` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const POLICYDB_VERSION_BASE: u32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BOOL` is never used [INFO] [stdout] --> src/policydb/profile.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const POLICYDB_VERSION_BOOL: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_IPV6` is never used [INFO] [stdout] --> src/policydb/profile.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const POLICYDB_VERSION_IPV6: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_NLCLASS` is never used [INFO] [stdout] --> src/policydb/profile.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const POLICYDB_VERSION_NLCLASS: u32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const POLICYDB_VERSION_RANGETRANS: u32 = 21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const POLICYDB_VERSION_FILENAME_TRANS: u32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const POLICYDB_VERSION_ROLETRANS: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_XEN_DEVICETREE` is never used [INFO] [stdout] --> src/policydb/profile.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const POLICYDB_VERSION_XEN_DEVICETREE: u32 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const POLICYDB_VERSION_INFINIBAND: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const MOD_POLICYDB_VERSION_BASE: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const MOD_POLICYDB_VERSION_RANGETRANS: u32 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const MOD_POLICYDB_VERSION_FILENAME_TRANS: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | const MOD_POLICYDB_VERSION_ROLETRANS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLEATTRIB` is never used [INFO] [stdout] --> src/policydb/profile.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const MOD_POLICYDB_VERSION_ROLEATTRIB: u32 = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const MOD_POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const MOD_POLICYDB_VERSION_INFINIBAND: u32 = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Platform` is never constructed [INFO] [stdout] --> src/policydb/profile.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum FeatureRequirement { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | Platform(PolicyTargetPlatform), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `platform` is never used [INFO] [stdout] --> src/policydb/profile.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | fn platform(platform: PolicyTargetPlatform) -> FeatureRequirement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dominates`, `type_set`, `flavor`, and `roles` are never read [INFO] [stdout] --> src/policydb/role.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Role { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | dominates: Bitmap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | type_set: TypeSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | roles: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `primary`, `flavor`, `flags`, `bounds`, and `assoc_types` are never read [INFO] [stdout] --> src/policydb/ty.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Type { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | primary: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | flags: TyFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | assoc_types: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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 `bounds` is never read [INFO] [stdout] --> src/policydb/user.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_MLS_ENABLED` is never used [INFO] [stdout] --> src/policydb/mod.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) const CONFIG_MLS_ENABLED: u32 = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_REJECT_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const CONFIG_REJECT_UNKNOWN: u32 = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_ALLOW_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub(crate) const CONFIG_ALLOW_UNKNOWN: u32 = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Primary` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | const Primary = 0x0001; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PRIMARY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Attribute` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | const Attribute = 0x0002; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ATTRIBUTE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Alias` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | const Alias = 0x0004;/* userspace only */ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `ALIAS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | const Permissive = 0x0008 ;/* userspace only */ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | const Permissive = 0x0001; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.61s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "2bade54292b88ba1b8cf8a0372e72633d0221def9f914c11f2e2af1cfbff522a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bade54292b88ba1b8cf8a0372e72633d0221def9f914c11f2e2af1cfbff522a", kill_on_drop: false }` [INFO] [stdout] 2bade54292b88ba1b8cf8a0372e72633d0221def9f914c11f2e2af1cfbff522a [INFO] checking garyttierney/libsepolrs against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaryttierney%2Flibsepolrs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garyttierney/libsepolrs on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/garyttierney/libsepolrs [INFO] finished tweaking git repo https://github.com/garyttierney/libsepolrs [INFO] tweaked toml for git repo https://github.com/garyttierney/libsepolrs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/garyttierney/libsepolrs 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cfef5f84bafbaeeb1c0ee5031c50b1b69790547b31e2a5e609049daa923f8a3 [INFO] running `Command { std: "docker" "start" "-a" "0cfef5f84bafbaeeb1c0ee5031c50b1b69790547b31e2a5e609049daa923f8a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cfef5f84bafbaeeb1c0ee5031c50b1b69790547b31e2a5e609049daa923f8a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cfef5f84bafbaeeb1c0ee5031c50b1b69790547b31e2a5e609049daa923f8a3", kill_on_drop: false }` [INFO] [stdout] 0cfef5f84bafbaeeb1c0ee5031c50b1b69790547b31e2a5e609049daa923f8a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb9a485a3437f87c5fa330a508083d077d28d872434152c266b9604e1d500853 [INFO] running `Command { std: "docker" "start" "-a" "cb9a485a3437f87c5fa330a508083d077d28d872434152c266b9604e1d500853", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bindgen v0.37.4 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling clang-sys v0.23.0 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling log v0.4.3 [INFO] [stderr] Compiling termcolor v1.0.1 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking byteorder v1.2.3 [INFO] [stderr] Checking itertools v0.7.8 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling which v1.0.5 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling aho-corasick v0.6.6 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling cexpr v0.2.3 [INFO] [stderr] Compiling env_logger v0.5.11 [INFO] [stderr] Compiling croaring-sys v0.3.5 [INFO] [stderr] Checking croaring v0.3.5 [INFO] [stderr] Checking sepolrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/class.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/cons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/mls.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/bitmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/policydb/mls.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | categories.add_range_closed((low..high)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - categories.add_range_closed((low..high)) [INFO] [stdout] 37 + categories.add_range_closed(low..high) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/polcap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/policydb/profile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/class.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/policydb/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/cons.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/role.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/mls.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyType` [INFO] [stdout] --> src/policydb/role.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use policydb::PolicyType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/policydb/mls.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | categories.add_range_closed((low..high)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 37 - categories.add_range_closed((low..high)) [INFO] [stdout] 37 + categories.add_range_closed(low..high) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/polcap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/symtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/policydb/profile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReadError` [INFO] [stdout] --> src/policydb/symtable.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::PolicyReadError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/policydb/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReader` [INFO] [stdout] --> src/policydb/symtable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use policydb::PolicyReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/role.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/policydb/symtable.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyType` [INFO] [stdout] --> src/policydb/role.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use policydb::PolicyType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/ty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/symtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReadError` [INFO] [stdout] --> src/policydb/symtable.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use policydb::PolicyReadError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::PolicyReader` [INFO] [stdout] --> src/policydb/symtable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use policydb::PolicyReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/policydb/symtable.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/ty.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `policydb::CompatibilityProfile` [INFO] [stdout] --> src/policydb/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use policydb::CompatibilityProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `nll` has been stable since 1.63.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(nll)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `nll` has been stable since 1.63.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(nll)] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items2` [INFO] [stdout] --> src/policydb/avtab.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let items2 /*???*/ = reader.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_items2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_size` [INFO] [stdout] --> src/policydb/bitmap.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let map_size = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high_bit` [INFO] [stdout] --> src/policydb/bitmap.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let high_bit = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_high_bit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_idx` [INFO] [stdout] --> src/policydb/bitmap.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | for map_idx in 0..map_count { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_perm_names` [INFO] [stdout] --> src/policydb/class.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let num_perm_names = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_perm_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items2` [INFO] [stdout] --> src/policydb/avtab.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let items2 /*???*/ = reader.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_items2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_size` [INFO] [stdout] --> src/policydb/bitmap.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let map_size = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high_bit` [INFO] [stdout] --> src/policydb/bitmap.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let high_bit = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_high_bit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map_idx` [INFO] [stdout] --> src/policydb/bitmap.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | for map_idx in 0..map_count { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_map_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_perm_names` [INFO] [stdout] --> src/policydb/class.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let num_perm_names = reader.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_perm_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `el` [INFO] [stdout] --> src/policydb/reader.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | for el in 0..nel { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_el` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/policydb/reader.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let config = self.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_sym_tables` [INFO] [stdout] --> src/policydb/reader.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let num_sym_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_sym_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_ocon_tables` [INFO] [stdout] --> src/policydb/reader.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let num_ocon_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_ocon_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive_type_map` [INFO] [stdout] --> src/policydb/reader.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let permissive_type_map: Option = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive_type_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounds` [INFO] [stdout] --> src/policydb/role.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let bounds = if reader.profile().supports(Feature::Boundary) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capacity` [INFO] [stdout] --> src/policydb/symtable.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `el` [INFO] [stdout] --> src/policydb/reader.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | for el in 0..nel { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_el` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/reader.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let profile = self.profile(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/policydb/reader.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let config = self.read_u32()?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_sym_tables` [INFO] [stdout] --> src/policydb/reader.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let num_sym_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_sym_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_ocon_tables` [INFO] [stdout] --> src/policydb/reader.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | let num_ocon_tables = self.read_u32()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_ocon_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive_type_map` [INFO] [stdout] --> src/policydb/reader.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let permissive_type_map: Option = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive_type_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive` [INFO] [stdout] --> src/policydb/ty.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let permissive = properties.contains(TyProperties::Permissive); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bounds` [INFO] [stdout] --> src/policydb/role.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let bounds = if reader.profile().supports(Feature::Boundary) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bounds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capacity` [INFO] [stdout] --> src/policydb/symtable.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_set` [INFO] [stdout] --> src/policydb/user.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let role_set: RoleSet = reader.read_object()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | profile: &CompatibilityProfile, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut policy_reader = PolicyReader::new(file_reader); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `avtab` is never read [INFO] [stdout] --> src/policydb/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Policy { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | avtab: AccessVectorTable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Policy` 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 `key` and `av` are never read [INFO] [stdout] --> src/policydb/avtab.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AccessVectorTableEntry { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 59 | key: AccessVectorTableKey, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | av: AccessVector, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTableEntry` 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 `entries` is never read [INFO] [stdout] --> src/policydb/avtab.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct AccessVectorTable { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 65 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/policydb/class.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | common_name: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | permissions: SymbolTable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 61 | transition_constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | default_user: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | default_role: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 64 | default_range: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 65 | default_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` 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 `flags` is never read [INFO] [stdout] --> src/policydb/conditional.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Boolean { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | flags: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Boolean` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `permissions` and `expressions` are never read [INFO] [stdout] --> src/policydb/cons.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Constraint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | pub(crate) permissions: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub(crate) expressions: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constraint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `attr`, and `kind` are never read [INFO] [stdout] --> src/policydb/cons.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ConstraintExpression { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 36 | pub(crate) op: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | pub(crate) attr: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub(crate) kind: ConstraintExpressionKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConstraintExpression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sensitivity` and `categories` are never read [INFO] [stdout] --> src/policydb/mls.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MlsLevel { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | sensitivity: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | categories: Bitmap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsLevel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `low` and `high` are never read [INFO] [stdout] --> src/policydb/mls.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct MlsRange { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 49 | low: MlsLevel, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | high: MlsLevel, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsRange` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `is_alias` are never read [INFO] [stdout] --> src/policydb/mls.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct Sensitivity { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 92 | level: MlsLevel, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 93 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sensitivity` 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 `is_alias` is never read [INFO] [stdout] --> src/policydb/mls.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct Category { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 126 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Category` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const POLICYDB_VERSION_BASE: u32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BOOL` is never used [INFO] [stdout] --> src/policydb/profile.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const POLICYDB_VERSION_BOOL: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `permissive` [INFO] [stdout] --> src/policydb/ty.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let permissive = properties.contains(TyProperties::Permissive); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_IPV6` is never used [INFO] [stdout] --> src/policydb/profile.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const POLICYDB_VERSION_IPV6: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_NLCLASS` is never used [INFO] [stdout] --> src/policydb/profile.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const POLICYDB_VERSION_NLCLASS: u32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const POLICYDB_VERSION_RANGETRANS: u32 = 21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const POLICYDB_VERSION_FILENAME_TRANS: u32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const POLICYDB_VERSION_ROLETRANS: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_XEN_DEVICETREE` is never used [INFO] [stdout] --> src/policydb/profile.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const POLICYDB_VERSION_XEN_DEVICETREE: u32 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const POLICYDB_VERSION_INFINIBAND: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const MOD_POLICYDB_VERSION_BASE: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const MOD_POLICYDB_VERSION_RANGETRANS: u32 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const MOD_POLICYDB_VERSION_FILENAME_TRANS: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | const MOD_POLICYDB_VERSION_ROLETRANS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLEATTRIB` is never used [INFO] [stdout] --> src/policydb/profile.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const MOD_POLICYDB_VERSION_ROLEATTRIB: u32 = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const MOD_POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const MOD_POLICYDB_VERSION_INFINIBAND: u32 = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Platform` is never constructed [INFO] [stdout] --> src/policydb/profile.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum FeatureRequirement { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | Platform(PolicyTargetPlatform), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `platform` is never used [INFO] [stdout] --> src/policydb/profile.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | fn platform(platform: PolicyTargetPlatform) -> FeatureRequirement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dominates`, `type_set`, `flavor`, and `roles` are never read [INFO] [stdout] --> src/policydb/role.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Role { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | dominates: Bitmap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | type_set: TypeSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | roles: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `primary`, `flavor`, `flags`, `bounds`, and `assoc_types` are never read [INFO] [stdout] --> src/policydb/ty.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Type { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | primary: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | flags: TyFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | assoc_types: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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 `bounds` is never read [INFO] [stdout] --> src/policydb/user.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_MLS_ENABLED` is never used [INFO] [stdout] --> src/policydb/mod.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) const CONFIG_MLS_ENABLED: u32 = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_REJECT_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const CONFIG_REJECT_UNKNOWN: u32 = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_ALLOW_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub(crate) const CONFIG_ALLOW_UNKNOWN: u32 = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/class.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 97 | let constraints: Vec = reader.read_objects(num_constraints)?; [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | let transition_constraints = if reader.profile().supports(Feature::ValidateTransition) { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 122 | Ok(Class { [INFO] [stdout] | ____________^ [INFO] [stdout] 123 | | id, [INFO] [stdout] 124 | | name, [INFO] [stdout] 125 | | common_name, [INFO] [stdout] ... | [INFO] [stdout] 132 | | default_type, [INFO] [stdout] 133 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/cons.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 56 | let mut expressions: Vec = Vec::with_capacity(num_exprs); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 87 | Ok(Constraint { [INFO] [stdout] | ____________^ [INFO] [stdout] 88 | | permissions, [INFO] [stdout] 89 | | expressions, [INFO] [stdout] 90 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | let categories = reader.read_object()?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | [INFO] [stdout] 20 | Ok(MlsLevel { [INFO] [stdout] | ____________^ [INFO] [stdout] 21 | | sensitivity, [INFO] [stdout] 22 | | categories, [INFO] [stdout] 23 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 31 | let mut categories = Bitmap::create(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | Ok(MlsLevel { [INFO] [stdout] | ____________^ [INFO] [stdout] 41 | | sensitivity, [INFO] [stdout] 42 | | categories, [INFO] [stdout] 43 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 59 | let s1_cats: Bitmap = reader.read_object()?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | let s2_cats = if items > 1 { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 66 | Ok(MlsRange { [INFO] [stdout] | ____________^ [INFO] [stdout] 67 | | low: MlsLevel { [INFO] [stdout] 68 | | sensitivity: s1, [INFO] [stdout] 69 | | categories: s1_cats, [INFO] [stdout] ... | [INFO] [stdout] 74 | | }, [INFO] [stdout] 75 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 81 | let low = MlsLevel::decode_expanded(reader)?; [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 82 | let high = MlsLevel::decode_expanded(reader)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 83 | [INFO] [stdout] 84 | Ok(MlsRange { low, high }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 111 | let level: MlsLevel = reader.read_object()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 112 | [INFO] [stdout] 113 | Ok(Sensitivity { [INFO] [stdout] | ____________^ [INFO] [stdout] 114 | | id: 0, [INFO] [stdout] 115 | | name, [INFO] [stdout] 116 | | level, [INFO] [stdout] 117 | | is_alias, [INFO] [stdout] 118 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `role_set` [INFO] [stdout] --> src/policydb/user.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let role_set: RoleSet = reader.read_object()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/reader.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn read_policy(mut self) -> Result { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 160 | let permissive_type_map: Option = [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 168 | let classes: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 169 | let roles: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 170 | let types: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 171 | let users: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 172 | let booleans: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] 173 | let sensitivities: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 177 | Ok(Policy { [INFO] [stdout] | ____________^ [INFO] [stdout] 178 | | version, [INFO] [stdout] 179 | | polcaps, [INFO] [stdout] 180 | | profile: self.profile.expect("uninitialized"), [INFO] [stdout] ... | [INFO] [stdout] 189 | | users, [INFO] [stdout] 190 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/role.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 65 | let dominates = reader.read_object()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | let (type_set, flavor, roles) = if is_kernel_policy { [INFO] [stdout] | -------- ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 78 | Ok(Role { [INFO] [stdout] | ____________^ [INFO] [stdout] 79 | | id, [INFO] [stdout] 80 | | name, [INFO] [stdout] 81 | | dominates, [INFO] [stdout] ... | [INFO] [stdout] 84 | | roles, [INFO] [stdout] 85 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Primary` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | const Primary = 0x0001; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PRIMARY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Attribute` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | const Attribute = 0x0002; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ATTRIBUTE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Alias` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | const Alias = 0x0004;/* userspace only */ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `ALIAS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | const Permissive = 0x0008 ;/* userspace only */ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile` [INFO] [stdout] --> src/policydb/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | profile: &CompatibilityProfile, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | const Permissive = 0x0001; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/ty.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 108 | let assoc_types = if !is_kern_policy { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | Ok(Type { [INFO] [stdout] | ____________^ [INFO] [stdout] 117 | | id, [INFO] [stdout] 118 | | name, [INFO] [stdout] 119 | | primary, [INFO] [stdout] ... | [INFO] [stdout] 123 | | assoc_types, [INFO] [stdout] 124 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/user.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 52 | let role_set: RoleSet = reader.read_object()?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let (range, default_level) = if is_mls_supported && is_mls_users_supported { [INFO] [stdout] | ----- ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 66 | Ok(User { [INFO] [stdout] | ____________^ [INFO] [stdout] 67 | | id, [INFO] [stdout] 68 | | name, [INFO] [stdout] 69 | | range, [INFO] [stdout] 70 | | default_level, [INFO] [stdout] 71 | | bounds, [INFO] [stdout] 72 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut policy_reader = PolicyReader::new(file_reader); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `avtab` is never read [INFO] [stdout] --> src/policydb/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Policy { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | avtab: AccessVectorTable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Policy` 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 `key` and `av` are never read [INFO] [stdout] --> src/policydb/avtab.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AccessVectorTableEntry { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 59 | key: AccessVectorTableKey, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | av: AccessVector, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTableEntry` 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 `entries` is never read [INFO] [stdout] --> src/policydb/avtab.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct AccessVectorTable { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 65 | entries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccessVectorTable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/policydb/class.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | common_name: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | permissions: SymbolTable, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 61 | transition_constraints: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | default_user: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | default_role: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 64 | default_range: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 65 | default_type: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` 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 `flags` is never read [INFO] [stdout] --> src/policydb/conditional.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Boolean { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | flags: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Boolean` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `permissions` and `expressions` are never read [INFO] [stdout] --> src/policydb/cons.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Constraint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | pub(crate) permissions: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub(crate) expressions: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constraint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `attr`, and `kind` are never read [INFO] [stdout] --> src/policydb/cons.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ConstraintExpression { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 36 | pub(crate) op: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | pub(crate) attr: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub(crate) kind: ConstraintExpressionKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConstraintExpression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sensitivity` and `categories` are never read [INFO] [stdout] --> src/policydb/mls.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MlsLevel { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | sensitivity: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | categories: Bitmap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsLevel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `low` and `high` are never read [INFO] [stdout] --> src/policydb/mls.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct MlsRange { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 49 | low: MlsLevel, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | high: MlsLevel, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MlsRange` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `level` and `is_alias` are never read [INFO] [stdout] --> src/policydb/mls.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct Sensitivity { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 92 | level: MlsLevel, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 93 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sensitivity` 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 `is_alias` is never read [INFO] [stdout] --> src/policydb/mls.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct Category { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 126 | is_alias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Category` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const POLICYDB_VERSION_BASE: u32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_BOOL` is never used [INFO] [stdout] --> src/policydb/profile.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const POLICYDB_VERSION_BOOL: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_IPV6` is never used [INFO] [stdout] --> src/policydb/profile.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const POLICYDB_VERSION_IPV6: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_NLCLASS` is never used [INFO] [stdout] --> src/policydb/profile.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const POLICYDB_VERSION_NLCLASS: u32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const POLICYDB_VERSION_RANGETRANS: u32 = 21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const POLICYDB_VERSION_FILENAME_TRANS: u32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const POLICYDB_VERSION_ROLETRANS: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_XEN_DEVICETREE` is never used [INFO] [stdout] --> src/policydb/profile.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const POLICYDB_VERSION_XEN_DEVICETREE: u32 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const POLICYDB_VERSION_INFINIBAND: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_BASE` is never used [INFO] [stdout] --> src/policydb/profile.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const MOD_POLICYDB_VERSION_BASE: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_RANGETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const MOD_POLICYDB_VERSION_RANGETRANS: u32 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_FILENAME_TRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const MOD_POLICYDB_VERSION_FILENAME_TRANS: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLETRANS` is never used [INFO] [stdout] --> src/policydb/profile.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | const MOD_POLICYDB_VERSION_ROLETRANS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_ROLEATTRIB` is never used [INFO] [stdout] --> src/policydb/profile.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | const MOD_POLICYDB_VERSION_ROLEATTRIB: u32 = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_CONSTRAINT_NAMES` is never used [INFO] [stdout] --> src/policydb/profile.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const MOD_POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOD_POLICYDB_VERSION_INFINIBAND` is never used [INFO] [stdout] --> src/policydb/profile.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const MOD_POLICYDB_VERSION_INFINIBAND: u32 = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Platform` is never constructed [INFO] [stdout] --> src/policydb/profile.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 45 | enum FeatureRequirement { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | Platform(PolicyTargetPlatform), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `platform` is never used [INFO] [stdout] --> src/policydb/profile.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | fn platform(platform: PolicyTargetPlatform) -> FeatureRequirement { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dominates`, `type_set`, `flavor`, and `roles` are never read [INFO] [stdout] --> src/policydb/role.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Role { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | dominates: Bitmap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | type_set: TypeSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | roles: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `primary`, `flavor`, `flags`, `bounds`, and `assoc_types` are never read [INFO] [stdout] --> src/policydb/ty.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Type { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | primary: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | flavor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | flags: TyFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | assoc_types: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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 `bounds` is never read [INFO] [stdout] --> src/policydb/user.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | bounds: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_MLS_ENABLED` is never used [INFO] [stdout] --> src/policydb/mod.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) const CONFIG_MLS_ENABLED: u32 = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_REJECT_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const CONFIG_REJECT_UNKNOWN: u32 = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_ALLOW_UNKNOWN` is never used [INFO] [stdout] --> src/policydb/mod.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub(crate) const CONFIG_ALLOW_UNKNOWN: u32 = 0x00000004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/class.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 97 | let constraints: Vec = reader.read_objects(num_constraints)?; [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | let transition_constraints = if reader.profile().supports(Feature::ValidateTransition) { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 122 | Ok(Class { [INFO] [stdout] | ____________^ [INFO] [stdout] 123 | | id, [INFO] [stdout] 124 | | name, [INFO] [stdout] 125 | | common_name, [INFO] [stdout] ... | [INFO] [stdout] 132 | | default_type, [INFO] [stdout] 133 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/cons.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 56 | let mut expressions: Vec = Vec::with_capacity(num_exprs); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 87 | Ok(Constraint { [INFO] [stdout] | ____________^ [INFO] [stdout] 88 | | permissions, [INFO] [stdout] 89 | | expressions, [INFO] [stdout] 90 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | let categories = reader.read_object()?; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | [INFO] [stdout] 20 | Ok(MlsLevel { [INFO] [stdout] | ____________^ [INFO] [stdout] 21 | | sensitivity, [INFO] [stdout] 22 | | categories, [INFO] [stdout] 23 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 31 | let mut categories = Bitmap::create(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 40 | Ok(MlsLevel { [INFO] [stdout] | ____________^ [INFO] [stdout] 41 | | sensitivity, [INFO] [stdout] 42 | | categories, [INFO] [stdout] 43 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 59 | let s1_cats: Bitmap = reader.read_object()?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | let s2_cats = if items > 1 { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 66 | Ok(MlsRange { [INFO] [stdout] | ____________^ [INFO] [stdout] 67 | | low: MlsLevel { [INFO] [stdout] 68 | | sensitivity: s1, [INFO] [stdout] 69 | | categories: s1_cats, [INFO] [stdout] ... | [INFO] [stdout] 74 | | }, [INFO] [stdout] 75 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 81 | let low = MlsLevel::decode_expanded(reader)?; [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 82 | let high = MlsLevel::decode_expanded(reader)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 83 | [INFO] [stdout] 84 | Ok(MlsRange { low, high }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/mls.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 111 | let level: MlsLevel = reader.read_object()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 112 | [INFO] [stdout] 113 | Ok(Sensitivity { [INFO] [stdout] | ____________^ [INFO] [stdout] 114 | | id: 0, [INFO] [stdout] 115 | | name, [INFO] [stdout] 116 | | level, [INFO] [stdout] 117 | | is_alias, [INFO] [stdout] 118 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/reader.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn read_policy(mut self) -> Result { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 160 | let permissive_type_map: Option = [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 168 | let classes: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 169 | let roles: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 170 | let types: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 171 | let users: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 172 | let booleans: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] 173 | let sensitivities: SymbolTable = self.read_symbol_table()?; [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 177 | Ok(Policy { [INFO] [stdout] | ____________^ [INFO] [stdout] 178 | | version, [INFO] [stdout] 179 | | polcaps, [INFO] [stdout] 180 | | profile: self.profile.expect("uninitialized"), [INFO] [stdout] ... | [INFO] [stdout] 189 | | users, [INFO] [stdout] 190 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/role.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 65 | let dominates = reader.read_object()?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | let (type_set, flavor, roles) = if is_kernel_policy { [INFO] [stdout] | -------- ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 78 | Ok(Role { [INFO] [stdout] | ____________^ [INFO] [stdout] 79 | | id, [INFO] [stdout] 80 | | name, [INFO] [stdout] 81 | | dominates, [INFO] [stdout] ... | [INFO] [stdout] 84 | | roles, [INFO] [stdout] 85 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Primary` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | const Primary = 0x0001; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `PRIMARY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Attribute` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | const Attribute = 0x0002; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ATTRIBUTE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Alias` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | const Alias = 0x0004;/* userspace only */ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `ALIAS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | const Permissive = 0x0008 ;/* userspace only */ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Permissive` should have an upper case name [INFO] [stdout] --> src/policydb/ty.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | const Permissive = 0x0001; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PERMISSIVE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/ty.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 108 | let assoc_types = if !is_kern_policy { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | Ok(Type { [INFO] [stdout] | ____________^ [INFO] [stdout] 117 | | id, [INFO] [stdout] 118 | | name, [INFO] [stdout] 119 | | primary, [INFO] [stdout] ... | [INFO] [stdout] 123 | | assoc_types, [INFO] [stdout] 124 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/policydb/user.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 52 | let role_set: RoleSet = reader.read_object()?; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let (range, default_level) = if is_mls_supported && is_mls_users_supported { [INFO] [stdout] | ----- ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 66 | Ok(User { [INFO] [stdout] | ____________^ [INFO] [stdout] 67 | | id, [INFO] [stdout] 68 | | name, [INFO] [stdout] 69 | | range, [INFO] [stdout] 70 | | default_level, [INFO] [stdout] 71 | | bounds, [INFO] [stdout] 72 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sepolrs` (lib test) due to 12 previous errors; 76 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 11 previous errors; 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sepolrs` (lib) due to 12 previous errors; 76 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cb9a485a3437f87c5fa330a508083d077d28d872434152c266b9604e1d500853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb9a485a3437f87c5fa330a508083d077d28d872434152c266b9604e1d500853", kill_on_drop: false }` [INFO] [stdout] cb9a485a3437f87c5fa330a508083d077d28d872434152c266b9604e1d500853