[INFO] fetching crate cfn-guard 3.1.2... [INFO] testing cfn-guard-3.1.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate cfn-guard 3.1.2 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate cfn-guard 3.1.2 [INFO] finished tweaking crates.io crate cfn-guard 3.1.2 [INFO] tweaked toml for crates.io crate cfn-guard 3.1.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cfn-guard 3.1.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate cfn-guard 3.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded string-builder v0.2.0 [INFO] [stderr] Downloaded enumflags2 v0.7.7 [INFO] [stderr] Downloaded cruet v0.14.0 [INFO] [stderr] Downloaded clap v4.5.0 [INFO] [stderr] Downloaded cc v1.1.16 [INFO] [stderr] Downloaded fancy-regex v0.13.0 [INFO] [stderr] Downloaded nom v5.1.3 [INFO] [stderr] Downloaded pretty_assertions v1.4.0 [INFO] [stderr] Downloaded clap_complete v4.1.2 [INFO] [stderr] Downloaded memmap2 v0.5.8 [INFO] [stderr] Downloaded clap_builder v4.5.0 [INFO] [stderr] Downloaded grep-searcher v0.1.11 [INFO] [stderr] Downloaded nom_locate v2.1.0 [INFO] [stderr] Downloaded bstr v1.2.0 [INFO] [stderr] Downloaded grep-regex v0.1.11 [INFO] [stderr] Downloaded grep-matcher v0.1.6 [INFO] [stderr] Downloaded enumflags2_derive v0.7.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3fae5d26a1632d6e9927d3a7e884df509e25dd5377a9cb01d290931aa29a65c [INFO] running `Command { std: "docker" "start" "-a" "a3fae5d26a1632d6e9927d3a7e884df509e25dd5377a9cb01d290931aa29a65c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3fae5d26a1632d6e9927d3a7e884df509e25dd5377a9cb01d290931aa29a65c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3fae5d26a1632d6e9927d3a7e884df509e25dd5377a9cb01d290931aa29a65c", kill_on_drop: false }` [INFO] [stdout] a3fae5d26a1632d6e9927d3a7e884df509e25dd5377a9cb01d290931aa29a65c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 1f7fde35397f0c0f94a4898de49856fab381af8e9c25bfbcb936fed9c0dc03d8 [INFO] running `Command { std: "docker" "start" "-a" "1f7fde35397f0c0f94a4898de49856fab381af8e9c25bfbcb936fed9c0dc03d8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling semver v1.0.16 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.92 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling strsim v0.11.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling anstream v0.6.11 [INFO] [stderr] Compiling rstest_macros v0.14.0 [INFO] [stderr] Compiling grep-matcher v0.1.6 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling bstr v1.2.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling wasm-bindgen v0.2.92 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling clap_builder v4.5.0 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling bytecount v0.6.3 [INFO] [stderr] Compiling syn v2.0.55 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap2 v0.5.8 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.1 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling unsafe-libyaml v0.2.10 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling vte v0.10.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling encoding_rs_io v0.1.7 [INFO] [stderr] Compiling strip-ansi-escapes v0.1.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling quick-xml v0.30.0 [INFO] [stderr] Compiling urlencoding v2.1.2 [INFO] [stderr] Compiling grep-searcher v0.1.11 [INFO] [stderr] Compiling string-builder v0.2.0 [INFO] [stderr] Compiling itertools v0.4.19 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Compiling nom_locate v2.1.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling clap_derive v4.5.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.7 [INFO] [stderr] Compiling enumflags2 v0.7.7 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling cruet v0.14.0 [INFO] [stderr] Compiling grep-regex v0.1.11 [INFO] [stderr] Compiling clap v4.5.0 [INFO] [stderr] Compiling clap_complete v4.1.2 [INFO] [stderr] Compiling futures-macro v0.3.26 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling futures-executor v0.3.26 [INFO] [stderr] Compiling futures v0.3.26 [INFO] [stderr] Compiling serde_yaml v0.9.17 [INFO] [stderr] Compiling rstest v0.15.0 [INFO] [stderr] Compiling cfn-guard v3.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: dropping unsupported crate type `cdylib` for target `x86_64-unknown-linux-musl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `report` is never used [INFO] [stdout] --> src/commands/validate.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub(crate) trait Reporter: Debug { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 115 | fn report( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetadataAppender` is never constructed [INFO] [stdout] --> src/commands/aws_meta_appender.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub(super) struct MetadataAppender<'d> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DummyEval` is never constructed [INFO] [stdout] --> src/commands/common_test_helpers.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | pub(super) struct DummyEval {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CfnReporter` is never constructed [INFO] [stdout] --> src/commands/reporters/validate/cfn_reporter.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) struct CfnReporter {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CfnReporter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SingleLineReporter` is never constructed [INFO] [stdout] --> src/commands/reporters/validate/cfn_reporter.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct SingleLineReporter {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SingleLineReporter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StructureType` is never used [INFO] [stdout] --> src/commands/reporters/validate/common.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | pub(super) enum StructureType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructureType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StructuredSummary` is never constructed [INFO] [stdout] --> src/commands/reporters/validate/common.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | pub(super) struct StructuredSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructuredSummary` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/commands/reporters/validate/common.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 88 | impl StructuredSummary { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 89 | pub(super) fn new(hierarchy_type: StructureType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataOutput` is never constructed [INFO] [stdout] --> src/commands/reporters/validate/common.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct DataOutput<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataOutput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_name_info` is never used [INFO] [stdout] --> src/commands/reporters/validate/common.rs:382:15 [INFO] [stdout] | [INFO] [stdout] 382 | pub(super) fn extract_name_info<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_all_failing_clauses` is never used [INFO] [stdout] --> src/commands/reporters/validate/common.rs:459:15 [INFO] [stdout] | [INFO] [stdout] 459 | pub(super) fn find_all_failing_clauses(context: &StatusContext) -> Vec<&StatusContext> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_compliant_skipped_info` is never used [INFO] [stdout] --> src/commands/reporters/validate/common.rs:482:15 [INFO] [stdout] | [INFO] [stdout] 482 | pub(super) fn print_compliant_skipped_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataOutputNewForm` is never constructed [INFO] [stdout] --> src/commands/reporters/validate/common.rs:649:8 [INFO] [stdout] | [INFO] [stdout] 649 | struct DataOutputNewForm<'a, 'v> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataOutputNewForm` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConsoleReporter` is never constructed [INFO] [stdout] --> src/commands/reporters/validate/console_reporter.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct ConsoleReporter {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsoleReporter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pprint_failed_sub_tree` is never used [INFO] [stdout] --> src/commands/reporters/validate/console_reporter.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn pprint_failed_sub_tree( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_partition` is never used [INFO] [stdout] --> src/commands/reporters/validate/summary_table.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn print_partition( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatusContext` is never constructed [INFO] [stdout] --> src/commands/tracker.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct StatusContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/commands/tracker.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl StatusContext { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 19 | fn new(eval_type: EvaluationType, context: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StackTracker` is never constructed [INFO] [stdout] --> src/commands/tracker.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct StackTracker<'r> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EvaluationType` is never used [INFO] [stdout] --> src/rules/mod.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | pub(crate) enum EvaluationType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EvaluationType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_variable_capture_index` is never used [INFO] [stdout] --> src/rules/mod.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 362 | pub(crate) trait EvalContext<'value, 'loc: 'value>: RecordTracer<'value> { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 377 | fn add_variable_capture_index(&mut self, _: &str, _: Rc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `resolve_variable`, `rule_status`, `end_evaluation`, and `start_evaluation` are never used [INFO] [stdout] --> src/rules/mod.rs:383:8 [INFO] [stdout] | [INFO] [stdout] 382 | pub(crate) trait EvaluationContext { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 383 | fn resolve_variable(&self, variable: &str) -> Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 384 | [INFO] [stdout] 385 | fn rule_status(&self, rule_name: &str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | fn end_evaluation( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | fn start_evaluation(&self, eval_type: EvaluationType, context: &str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Evaluate` is never used [INFO] [stdout] --> src/rules/mod.rs:402:18 [INFO] [stdout] | [INFO] [stdout] 402 | pub(crate) trait Evaluate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UnaryComparator` is never used [INFO] [stdout] --> src/rules/eval/operators.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | pub(crate) trait UnaryComparator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_variable_query` is never used [INFO] [stdout] --> src/rules/evaluate.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub(super) fn resolve_variable_query<'s>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_query` is never used [INFO] [stdout] --> src/rules/evaluate.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub(super) fn resolve_query<'s>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert_status` is never used [INFO] [stdout] --> src/rules/evaluate.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn invert_status(status: Status, not: bool) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `negation_status` is never used [INFO] [stdout] --> src/rules/evaluate.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn negation_status(r: bool, clause_not: bool, not: bool) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_loop_all` is never used [INFO] [stdout] --> src/rules/evaluate.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn compare_loop_all( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_loop` is never used [INFO] [stdout] --> src/rules/evaluate.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn compare_loop( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `elevate_inner` is never used [INFO] [stdout] --> src/rules/evaluate.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn elevate_inner<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_mixed_values_results` is never used [INFO] [stdout] --> src/rules/evaluate.rs:183:4 [INFO] [stdout] | [INFO] [stdout] 183 | fn is_mixed_values_results(incoming: &[&PathAwareValue]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_mixed_results` is never used [INFO] [stdout] --> src/rules/evaluate.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn merge_mixed_results<'a>(incoming: &'a [&PathAwareValue]) -> Vec<&'a PathAwareValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare` is never used [INFO] [stdout] --> src/rules/evaluate.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn compare( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert_closure` is never used [INFO] [stdout] --> src/rules/evaluate.rs:293:15 [INFO] [stdout] | [INFO] [stdout] 293 | pub(super) fn invert_closure( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_variables` is never used [INFO] [stdout] --> src/rules/evaluate.rs:1046:4 [INFO] [stdout] | [INFO] [stdout] 1046 | fn extract_variables<'s, 'loc>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rules/evaluate.rs:1180:19 [INFO] [stdout] | [INFO] [stdout] 1179 | impl<'s, T> BlockScope<'s, T> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 1180 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AutoReport` is never constructed [INFO] [stdout] --> src/rules/evaluate.rs:1249:19 [INFO] [stdout] | [INFO] [stdout] 1249 | pub(super) struct AutoReport<'s> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AutoReport` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rules/evaluate.rs:1271:19 [INFO] [stdout] | [INFO] [stdout] 1270 | impl<'s> AutoReport<'s> { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 1271 | pub(super) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1289 | pub(super) fn status(&mut self, status: Status) -> &mut Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1294 | pub(super) fn from(&mut self, from: Option) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 1299 | pub(super) fn to(&mut self, to: Option) -> &mut Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 1304 | pub(super) fn cmp(&mut self, cmp: (CmpOperator, bool)) -> &mut Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1309 | pub(super) fn message(&mut self, msg: String) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1314 | pub(super) fn get_status(&self) -> Status { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `QueryResolver` is never used [INFO] [stdout] --> src/rules/path_value.rs:590:18 [INFO] [stdout] | [INFO] [stdout] 590 | pub(crate) trait QueryResolver { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `map_error_or_empty`, `map_some_or_error_all`, `retrieve_index`, and `accumulate` are never used [INFO] [stdout] --> src/rules/path_value.rs:933:8 [INFO] [stdout] | [INFO] [stdout] 888 | impl PathAwareValue { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 933 | fn map_error_or_empty(&self, all: bool, e: Error) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 945 | fn map_some_or_error_all( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1002 | pub(crate) fn retrieve_index<'v>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1020 | pub(crate) fn accumulate<'v>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/commands/files.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) fn iterate_over(files: &[PathBuf], converter: C) -> Iter [INFO] [stdout] | ^^^^^^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 71 | pub(crate) fn iterate_over(files: &[PathBuf], converter: C) -> Iter<'_, T, C> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/commands/reporters/test/structured.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn build_test_suite(&self) -> TestSuite { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 69 | pub fn build_test_suite(&self) -> TestSuite<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/commands/reporters/test/structured.rs:139:31 [INFO] [stdout] | [INFO] [stdout] 139 | fn build_junit_test_cases(&self) -> Vec { [INFO] [stdout] | ^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 139 | fn build_junit_test_cases(&self) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/commands/reporters/validate/cfn.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) fn new_with(next: &'reporter dyn Reporter) -> CfnAware { [INFO] [stdout] | ^^^^^^^^^ -------- the lifetime gets resolved as `'reporter` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'reporter` [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) fn new_with(next: &'reporter dyn Reporter) -> CfnAware<'reporter> { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/commands/reporters/validate/tf.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) fn new_with(next: &'reporter dyn Reporter) -> TfAware { [INFO] [stdout] | ^^^^^^^^^ ------- the lifetime gets resolved as `'reporter` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'reporter` [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) fn new_with(next: &'reporter dyn Reporter) -> TfAware<'reporter> { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/rules/libyaml/parser.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | if (*parser).error != sys::YAML_NO_ERROR { [INFO] [stdout] | ^^------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut yaml_parser_t` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] = note: references are created through calls to explicit `Deref(Mut)::deref(_mut)` implementations [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 48 | if (&(*parser)).error != sys::YAML_NO_ERROR { [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/parser.rs:35:33 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) fn from_str2(in_str: &str) -> Span { [INFO] [stdout] | ^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) fn from_str2(in_str: &str) -> Span<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/parser.rs:684:27 [INFO] [stdout] | [INFO] [stdout] 684 | fn extract_message(input: Span) -> IResult { [INFO] [stdout] | ^^^^ ------------------- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 684 | fn extract_message(input: Span<'_>) -> IResult<'_, Span<'_>, &str> { [INFO] [stdout] | ++++ +++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/parser.rs:698:26 [INFO] [stdout] | [INFO] [stdout] 698 | fn custom_message(input: Span) -> IResult { [INFO] [stdout] | ^^^^ ------------------- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | | the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 698 | fn custom_message(input: Span<'_>) -> IResult<'_, Span<'_>, &str> { [INFO] [stdout] | ++++ +++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/parser.rs:943:17 [INFO] [stdout] | [INFO] [stdout] 943 | input: Span<'loc>, [INFO] [stdout] | ^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 946 | ) -> IResult, T> [INFO] [stdout] | ---------------------- [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'loc` [INFO] [stdout] | the lifetimes get resolved as `'loc` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'loc` [INFO] [stdout] | [INFO] [stdout] 946 | ) -> IResult<'loc, Span<'loc>, T> [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/parser.rs:1273:17 [INFO] [stdout] | [INFO] [stdout] 1273 | input: Span<'loc>, [INFO] [stdout] | ^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 1277 | ) -> IResult, Conjunctions> [INFO] [stdout] | ------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'loc` [INFO] [stdout] | the lifetimes get resolved as `'loc` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'loc` [INFO] [stdout] | [INFO] [stdout] 1277 | ) -> IResult<'loc, Span<'loc>, Conjunctions> [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/parser.rs:1316:17 [INFO] [stdout] | [INFO] [stdout] 1316 | input: Span<'loc>, [INFO] [stdout] | ^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 1319 | ) -> IResult, Disjunctions> [INFO] [stdout] | ------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'loc` [INFO] [stdout] | the lifetimes get resolved as `'loc` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'loc` [INFO] [stdout] | [INFO] [stdout] 1319 | ) -> IResult<'loc, Span<'loc>, Disjunctions> [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/path_value/traversal.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 104 | pub(crate) fn root(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 104 | pub(crate) fn root(&self) -> Option<&Node<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/rules/path_value/traversal.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | &'traverse self, [INFO] [stdout] | ^^^^^^^^^ these lifetimes flow to the output [INFO] [stdout] 110 | pointer: &str, [INFO] [stdout] 111 | node: &'traverse Node, [INFO] [stdout] | ^^^^^^^^^ these lifetimes flow to the output [INFO] [stdout] 112 | ) -> crate::rules::Result { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | the lifetimes get resolved as `'traverse` [INFO] [stdout] | the lifetimes get resolved as `'traverse` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'traverse` [INFO] [stdout] | [INFO] [stdout] 112 | ) -> crate::rules::Result> { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/utils/mod.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) fn new(buffer: &str) -> ReadCursor { [INFO] [stdout] | ^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) fn new(buffer: &str) -> ReadCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cfn-guard` (lib) due to 1 previous error; 56 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1f7fde35397f0c0f94a4898de49856fab381af8e9c25bfbcb936fed9c0dc03d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f7fde35397f0c0f94a4898de49856fab381af8e9c25bfbcb936fed9c0dc03d8", kill_on_drop: false }` [INFO] [stdout] 1f7fde35397f0c0f94a4898de49856fab381af8e9c25bfbcb936fed9c0dc03d8