[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 try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaryttierney%2Flibsepolrs" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garyttierney/libsepolrs on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-3/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: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded log v0.4.3 [INFO] [stderr] Downloaded wincolor v1.0.0 [INFO] [stderr] Downloaded termcolor v1.0.1 [INFO] [stderr] Downloaded aho-corasick v0.6.6 [INFO] [stderr] Downloaded regex v1.0.2 [INFO] [stderr] Downloaded bindgen v0.37.4 [INFO] [stderr] Downloaded clang-sys v0.23.0 [INFO] [stderr] Downloaded env_logger v0.5.11 [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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3a730ca213355bac391aad907461ea190b3be97a22fcb24526c25efe249a6510 [INFO] running `Command { std: "docker" "start" "-a" "3a730ca213355bac391aad907461ea190b3be97a22fcb24526c25efe249a6510", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a730ca213355bac391aad907461ea190b3be97a22fcb24526c25efe249a6510", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a730ca213355bac391aad907461ea190b3be97a22fcb24526c25efe249a6510", kill_on_drop: false }` [INFO] [stdout] 3a730ca213355bac391aad907461ea190b3be97a22fcb24526c25efe249a6510 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4eaecd4a998d08775422d04cec5e653be07233b424d6ccc0aef39ab93bfbe3b6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4eaecd4a998d08775422d04cec5e653be07233b424d6ccc0aef39ab93bfbe3b6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling termcolor v1.0.1 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling bindgen v0.37.4 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking byteorder v1.2.3 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling log v0.4.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Checking itertools v0.7.8 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling which v1.0.5 [INFO] [stderr] Compiling aho-corasick v0.6.6 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling clang-sys v0.23.0 [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: 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] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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: `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::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::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: 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: 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] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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: `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::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::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: 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] = 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] [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: `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: 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: `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] = 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] [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: `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: 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: constant is never used: `POLICYDB_VERSION_BASE` [INFO] [stdout] --> src/policydb/profile.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const POLICYDB_VERSION_BASE: u32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_BOOL` [INFO] [stdout] --> src/policydb/profile.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const POLICYDB_VERSION_BOOL: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_IPV6` [INFO] [stdout] --> src/policydb/profile.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const POLICYDB_VERSION_IPV6: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_NLCLASS` [INFO] [stdout] --> src/policydb/profile.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const POLICYDB_VERSION_NLCLASS: u32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_RANGETRANS` [INFO] [stdout] --> src/policydb/profile.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const POLICYDB_VERSION_RANGETRANS: u32 = 21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_FILENAME_TRANS` [INFO] [stdout] --> src/policydb/profile.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | const POLICYDB_VERSION_FILENAME_TRANS: u32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_ROLETRANS` [INFO] [stdout] --> src/policydb/profile.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const POLICYDB_VERSION_ROLETRANS: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_CONSTRAINT_NAMES` [INFO] [stdout] --> src/policydb/profile.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_XEN_DEVICETREE` [INFO] [stdout] --> src/policydb/profile.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const POLICYDB_VERSION_XEN_DEVICETREE: u32 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_INFINIBAND` [INFO] [stdout] --> src/policydb/profile.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const POLICYDB_VERSION_INFINIBAND: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_BASE` [INFO] [stdout] --> src/policydb/profile.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const MOD_POLICYDB_VERSION_BASE: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_RANGETRANS` [INFO] [stdout] --> src/policydb/profile.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const MOD_POLICYDB_VERSION_RANGETRANS: u32 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_FILENAME_TRANS` [INFO] [stdout] --> src/policydb/profile.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | const MOD_POLICYDB_VERSION_FILENAME_TRANS: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_ROLETRANS` [INFO] [stdout] --> src/policydb/profile.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | const MOD_POLICYDB_VERSION_ROLETRANS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_ROLEATTRIB` [INFO] [stdout] --> src/policydb/profile.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | const MOD_POLICYDB_VERSION_ROLEATTRIB: u32 = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_CONSTRAINT_NAMES` [INFO] [stdout] --> src/policydb/profile.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const MOD_POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_INFINIBAND` [INFO] [stdout] --> src/policydb/profile.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | const MOD_POLICYDB_VERSION_INFINIBAND: u32 = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Platform` [INFO] [stdout] --> src/policydb/profile.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | Platform(PolicyTargetPlatform), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `platform` [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: constant is never used: `CONFIG_MLS_ENABLED` [INFO] [stdout] --> src/policydb/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) const CONFIG_MLS_ENABLED: u32 = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFIG_REJECT_UNKNOWN` [INFO] [stdout] --> src/policydb/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const CONFIG_REJECT_UNKNOWN: u32 = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFIG_ALLOW_UNKNOWN` [INFO] [stdout] --> src/policydb/mod.rs:43:5 [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: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_BASE` [INFO] [stdout] --> src/policydb/profile.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const POLICYDB_VERSION_BASE: u32 = 15; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_BOOL` [INFO] [stdout] --> src/policydb/profile.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const POLICYDB_VERSION_BOOL: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_IPV6` [INFO] [stdout] --> src/policydb/profile.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const POLICYDB_VERSION_IPV6: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_NLCLASS` [INFO] [stdout] --> src/policydb/profile.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const POLICYDB_VERSION_NLCLASS: u32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_RANGETRANS` [INFO] [stdout] --> src/policydb/profile.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const POLICYDB_VERSION_RANGETRANS: u32 = 21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_FILENAME_TRANS` [INFO] [stdout] --> src/policydb/profile.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | const POLICYDB_VERSION_FILENAME_TRANS: u32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_ROLETRANS` [INFO] [stdout] --> src/policydb/profile.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const POLICYDB_VERSION_ROLETRANS: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_CONSTRAINT_NAMES` [INFO] [stdout] --> src/policydb/profile.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 29; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_XEN_DEVICETREE` [INFO] [stdout] --> src/policydb/profile.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const POLICYDB_VERSION_XEN_DEVICETREE: u32 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `POLICYDB_VERSION_INFINIBAND` [INFO] [stdout] --> src/policydb/profile.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const POLICYDB_VERSION_INFINIBAND: u32 = 31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_BASE` [INFO] [stdout] --> src/policydb/profile.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const MOD_POLICYDB_VERSION_BASE: u32 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_RANGETRANS` [INFO] [stdout] --> src/policydb/profile.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const MOD_POLICYDB_VERSION_RANGETRANS: u32 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_FILENAME_TRANS` [INFO] [stdout] --> src/policydb/profile.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | const MOD_POLICYDB_VERSION_FILENAME_TRANS: u32 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_ROLETRANS` [INFO] [stdout] --> src/policydb/profile.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | const MOD_POLICYDB_VERSION_ROLETRANS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_ROLEATTRIB` [INFO] [stdout] --> src/policydb/profile.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | const MOD_POLICYDB_VERSION_ROLEATTRIB: u32 = 13; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_CONSTRAINT_NAMES` [INFO] [stdout] --> src/policydb/profile.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const MOD_POLICYDB_VERSION_CONSTRAINT_NAMES: u32 = 17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MOD_POLICYDB_VERSION_INFINIBAND` [INFO] [stdout] --> src/policydb/profile.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | const MOD_POLICYDB_VERSION_INFINIBAND: u32 = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Platform` [INFO] [stdout] --> src/policydb/profile.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | Platform(PolicyTargetPlatform), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `platform` [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: constant is never used: `CONFIG_MLS_ENABLED` [INFO] [stdout] --> src/policydb/mod.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) const CONFIG_MLS_ENABLED: u32 = 0x00000001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFIG_REJECT_UNKNOWN` [INFO] [stdout] --> src/policydb/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) const CONFIG_REJECT_UNKNOWN: u32 = 0x00000002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CONFIG_ALLOW_UNKNOWN` [INFO] [stdout] --> src/policydb/mod.rs:43:5 [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: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 58s [INFO] running `Command { std: "docker" "inspect" "4eaecd4a998d08775422d04cec5e653be07233b424d6ccc0aef39ab93bfbe3b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eaecd4a998d08775422d04cec5e653be07233b424d6ccc0aef39ab93bfbe3b6", kill_on_drop: false }` [INFO] [stdout] 4eaecd4a998d08775422d04cec5e653be07233b424d6ccc0aef39ab93bfbe3b6