[INFO] fetching crate cfn-guard 2.0.3... [INFO] checking cfn-guard-2.0.3 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate cfn-guard 2.0.3 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate cfn-guard 2.0.3 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cfn-guard 2.0.3 [INFO] finished tweaking crates.io crate cfn-guard 2.0.3 [INFO] tweaked toml for crates.io crate cfn-guard 2.0.3 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate crates.io crate cfn-guard 2.0.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4ea936191a3d6efb28caa0047a7ea002d89e2f6816b78705ba603a234c131c8 [INFO] running `Command { std: "docker" "start" "-a" "f4ea936191a3d6efb28caa0047a7ea002d89e2f6816b78705ba603a234c131c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4ea936191a3d6efb28caa0047a7ea002d89e2f6816b78705ba603a234c131c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4ea936191a3d6efb28caa0047a7ea002d89e2f6816b78705ba603a234c131c8", kill_on_drop: false }` [INFO] [stdout] f4ea936191a3d6efb28caa0047a7ea002d89e2f6816b78705ba603a234c131c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8091c2c2f92a88d5a22666fe93fb7bd7eebd2f2f441c88138fa007c1cbfba3a3 [INFO] running `Command { std: "docker" "start" "-a" "8091c2c2f92a88d5a22666fe93fb7bd7eebd2f2f441c88138fa007c1cbfba3a3", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking bytecount v0.6.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking unicode-segmentation v1.7.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking itertools v0.4.19 [INFO] [stderr] Checking string-builder v0.2.0 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking heck v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking simple_logger v1.11.0 [INFO] [stderr] Checking nom_locate v2.1.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.0 [INFO] [stderr] Checking enumflags2 v0.7.1 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking cfn-guard v2.0.3 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/rules/parser_tests.rs (1 fix) [INFO] [stderr] Fixed src/rules/evaluate.rs (1 fix) [INFO] [stderr] Fixed src/commands/tracker.rs (1 fix) [INFO] [stderr] Fixed src/migrate/parser_tests.rs (1 fix) [INFO] [stderr] Fixed src/commands/aws_meta_appender_tests.rs (10 fixes) [INFO] [stderr] Fixed src/rules/path_value.rs (1 fix) [INFO] [stderr] Fixed src/migrate/parser.rs (1 fix) [INFO] [stderr] Fixed src/commands/validate/cfn_reporter.rs (3 fixes) [INFO] [stderr] Fixed src/rules/evaluate_tests.rs (5 fixes) [INFO] [stderr] Fixed src/commands/aws_meta_appender.rs (2 fixes) [INFO] [stderr] Fixed src/commands/validate.rs (3 fixes) [INFO] [stderr] Fixed src/commands/validate/common.rs (4 fixes) [INFO] [stderr] Fixed src/commands/validate/generic_summary.rs (3 fixes) [INFO] [stdout] warning: unused import: `colored::Colorize` [INFO] [stdout] --> src/rules/evaluate.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2087:23 [INFO] [stdout] | [INFO] [stdout] 2087 | struct Reporter {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2152:60 [INFO] [stdout] | [INFO] [stdout] 2152 | struct Reporter<'a> { root: &'a dyn EvaluationContext }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | struct DummyResolver{}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/commands/aws_meta_appender_tests.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | struct Capture {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_linked_hashmap` [INFO] [stdout] --> src/rules/values.rs:309:15 [INFO] [stdout] | [INFO] [stdout] 309 | pub(super) fn make_linked_hashmap<'a, I>(values: I) -> IndexMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/validate.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/rulegen.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/test.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/parse_tree.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/migrate.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_resource_types_in_ruleset` [INFO] [stdout] --> src/commands/migrate.rs:132:16 [INFO] [stdout] | [INFO] [stdout] 132 | pub (crate) fn get_resource_types_in_ruleset(rules: &Vec) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | data: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | rules: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> crate::rules::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/functional.rs from 2018 edition to 2021 [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_MULTIPLE` [INFO] [stdout] --> src/rules/path_value_tests.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / const SAMPLE_MULTIPLE : &str = r#"{ [INFO] [stdout] 21 | | "Resources": { [INFO] [stdout] 22 | | "vpc": { [INFO] [stdout] 23 | | "Type": "AWS::EC2::VPC", [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | "#; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/validate.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/rulegen.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/test.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/parse_tree.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/migrate.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | data: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | rules: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> crate::rules::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2087:23 [INFO] [stdout] | [INFO] [stdout] 2087 | struct Reporter {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2152:60 [INFO] [stdout] | [INFO] [stdout] 2152 | struct Reporter<'a> { root: &'a dyn EvaluationContext }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | struct DummyResolver{}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/commands/aws_meta_appender_tests.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | struct Capture {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_MULTIPLE` [INFO] [stdout] --> src/rules/path_value_tests.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / const SAMPLE_MULTIPLE : &str = r#"{ [INFO] [stdout] 21 | | "Resources": { [INFO] [stdout] 22 | | "vpc": { [INFO] [stdout] 23 | | "Type": "AWS::EC2::VPC", [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | "#; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_result_json` [INFO] [stdout] --> src/commands/validate.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn get_result_json(self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Colorize` [INFO] [stdout] --> src/rules/evaluate.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_linked_hashmap` [INFO] [stdout] --> src/rules/values.rs:309:15 [INFO] [stdout] | [INFO] [stdout] 309 | pub(super) fn make_linked_hashmap<'a, I>(values: I) -> IndexMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_result_json` [INFO] [stdout] --> src/commands/validate.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn get_result_json(self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_resource_types_in_ruleset` [INFO] [stdout] --> src/commands/migrate.rs:132:16 [INFO] [stdout] | [INFO] [stdout] 132 | pub (crate) fn get_resource_types_in_ruleset(rules: &Vec) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.30s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking cfn-guard v2.0.3 (/tmp/fixit) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2087:23 [INFO] [stdout] | [INFO] [stdout] 2087 | struct Reporter {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2152:60 [INFO] [stdout] | [INFO] [stdout] 2152 | struct Reporter<'a> { root: &'a dyn EvaluationContext }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | struct DummyResolver{}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/commands/aws_meta_appender_tests.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | struct Capture {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Colorize` [INFO] [stdout] --> src/rules/evaluate.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_linked_hashmap` [INFO] [stdout] --> src/rules/values.rs:309:15 [INFO] [stdout] | [INFO] [stdout] 309 | pub(super) fn make_linked_hashmap<'a, I>(values: I) -> IndexMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/validate.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/rulegen.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/test.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/parse_tree.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/migrate.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_resource_types_in_ruleset` [INFO] [stdout] --> src/commands/migrate.rs:132:16 [INFO] [stdout] | [INFO] [stdout] 132 | pub (crate) fn get_resource_types_in_ruleset(rules: &Vec) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | data: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | rules: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> crate::rules::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_MULTIPLE` [INFO] [stdout] --> src/rules/path_value_tests.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / const SAMPLE_MULTIPLE : &str = r#"{ [INFO] [stdout] 21 | | "Resources": { [INFO] [stdout] 22 | | "vpc": { [INFO] [stdout] 23 | | "Type": "AWS::EC2::VPC", [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | "#; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/validate.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/rulegen.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/test.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/parse_tree.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/commands/migrate.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/rules/evaluate.rs:684:12 [INFO] [stdout] | [INFO] [stdout] 684 | Ok('outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2087:23 [INFO] [stdout] | [INFO] [stdout] 2087 | struct Reporter {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/evaluate_tests.rs:2152:60 [INFO] [stdout] | [INFO] [stdout] 2152 | struct Reporter<'a> { root: &'a dyn EvaluationContext }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rules/values_tests.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | struct DummyResolver{}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/commands/aws_meta_appender_tests.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | struct Capture {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | data: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | rules: &str, [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | ) -> crate::rules::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Colorize` [INFO] [stdout] --> src/rules/evaluate.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use colored::Colorize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BitFlag` [INFO] [stdout] --> src/commands/validate.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | use enumflags2::{BitFlag, BitFlags}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_linked_hashmap` [INFO] [stdout] --> src/rules/values.rs:309:15 [INFO] [stdout] | [INFO] [stdout] 309 | pub(super) fn make_linked_hashmap<'a, I>(values: I) -> IndexMap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_result_json` [INFO] [stdout] --> src/commands/validate.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn get_result_json(self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_resource_types_in_ruleset` [INFO] [stdout] --> src/commands/migrate.rs:132:16 [INFO] [stdout] | [INFO] [stdout] 132 | pub (crate) fn get_resource_types_in_ruleset(rules: &Vec) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `block_type` [INFO] [stdout] --> src/rules/evaluate.rs:1034:5 [INFO] [stdout] | [INFO] [stdout] 1034 | block_type: &'s Block<'s, T>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `comparison` [INFO] [stdout] --> src/rules/evaluate.rs:1151:19 [INFO] [stdout] | [INFO] [stdout] 1151 | pub(super) fn comparison(&mut self, status: Status, from: Option, to: Option, cmp: (CmpOperator, bool... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `context` [INFO] [stdout] --> src/rules/parser.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | pub(crate) fn context(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `span` [INFO] [stdout] --> src/rules/parser.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) fn span(&self) -> &Span<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kind` [INFO] [stdout] --> src/rules/parser.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn kind(&self) -> nom::error::ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_binary` [INFO] [stdout] --> src/rules/values.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn is_binary(&self) -> bool { !self.is_unary() } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `drop_last` [INFO] [stdout] --> src/rules/path_value.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | pub(crate) fn drop_last(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_with_value` [INFO] [stdout] --> src/rules/path_value.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn extend_with_value(&self, part: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_scalar` [INFO] [stdout] --> src/rules/path_value.rs:675:19 [INFO] [stdout] | [INFO] [stdout] 675 | pub(crate) fn is_scalar(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_MULTIPLE` [INFO] [stdout] --> src/rules/path_value_tests.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / const SAMPLE_MULTIPLE : &str = r#"{ [INFO] [stdout] 21 | | "Resources": { [INFO] [stdout] 22 | | "vpc": { [INFO] [stdout] 23 | | "Type": "AWS::EC2::VPC", [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] 47 | | "#; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/validate.rs:238:8 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_result_json` [INFO] [stdout] --> src/commands/validate.rs:375:12 [INFO] [stdout] | [INFO] [stdout] 375 | pub fn get_result_json(self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_and_return_json` [INFO] [stdout] --> src/commands/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn validate_and_return_json( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RULES` [INFO] [stdout] --> src/commands/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const RULES: (&str, &str) = ("rules", "r"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DATA` [INFO] [stdout] --> src/commands/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const DATA: (&str, &str) = ("data", "d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | / extract_variables(&rules.assignments, [INFO] [stdout] 951 | | &mut literals, [INFO] [stdout] 952 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/evaluate.rs:1046:9 [INFO] [stdout] | [INFO] [stdout] 1046 | / extract_variables(&block_type.assignments, [INFO] [stdout] 1047 | | &mut literals, [INFO] [stdout] 1048 | | &mut pending); [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rules/values.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | write!(f, "{},{}", range.lower, range.upper); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | reader.read_to_string(&mut context); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/generic_summary.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/common.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | / match &self.hierarchy_type { [INFO] [stdout] 97 | | StructureType::JSON => writeln!(writer, "{}", serde_json::to_string(&value)?), [INFO] [stdout] 98 | | StructureType::YAML => writeln!(writer, "{}", serde_yaml::to_string(&value)?), [INFO] [stdout] 99 | | }; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | writeln!(writer, "{}", "SKIP rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | writeln!(writer, "{}", "PASS rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/summary_table.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | writeln!(writer, "{}", "FAILED rules".bold()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/validate/cfn_reporter.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | writeln!(writer, "--"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/rulegen.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | write!(writer,"{}", generated_rules); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(&mut migrated, "{}", assignment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | writeln!(&mut migrated, "let {} = Resources.*[ Type == \"{}\" ]", each_type, each_type.type_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | writeln!(&mut migrated, "rule {name}_checks WHEN %{name} NOT EMPTY {{", name=each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | writeln!(&mut migrated, " %{} {{", each_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | writeln!(&mut migrated, " {}", *each_clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/commands/migrate.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | writeln!(&mut migrated, " }}\n}}\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | writeln!(f, "when {} {{", self.when_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/migrate/parser.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | writeln!(f, " {}", self.check_condition); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.43s [INFO] running `Command { std: "docker" "inspect" "8091c2c2f92a88d5a22666fe93fb7bd7eebd2f2f441c88138fa007c1cbfba3a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8091c2c2f92a88d5a22666fe93fb7bd7eebd2f2f441c88138fa007c1cbfba3a3", kill_on_drop: false }` [INFO] [stdout] 8091c2c2f92a88d5a22666fe93fb7bd7eebd2f2f441c88138fa007c1cbfba3a3