[INFO] fetching crate swamp-analyzer 0.2.26... [INFO] checking swamp-analyzer-0.2.26 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate swamp-analyzer 0.2.26 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate swamp-analyzer 0.2.26 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate swamp-analyzer 0.2.26 [INFO] tweaked toml for crates.io crate swamp-analyzer 0.2.26 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate swamp-analyzer 0.2.26 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate swamp-analyzer 0.2.26 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f1079bd938b7fe37e56d3c94f62d45bb5aa665c21ba4d3d09aae1daaa8b8787 [INFO] running `Command { std: "docker" "start" "-a" "5f1079bd938b7fe37e56d3c94f62d45bb5aa665c21ba4d3d09aae1daaa8b8787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f1079bd938b7fe37e56d3c94f62d45bb5aa665c21ba4d3d09aae1daaa8b8787", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f1079bd938b7fe37e56d3c94f62d45bb5aa665c21ba4d3d09aae1daaa8b8787", kill_on_drop: false }` [INFO] [stdout] 5f1079bd938b7fe37e56d3c94f62d45bb5aa665c21ba4d3d09aae1daaa8b8787 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbfd3ba58681a57cd835791575710b03eeac3cf0b5a547ec2c6c1811f3627bc2 [INFO] running `Command { std: "docker" "start" "-a" "cbfd3ba58681a57cd835791575710b03eeac3cf0b5a547ec2c6c1811f3627bc2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Checking source-map-node v0.0.1 [INFO] [stderr] Checking seq-map v0.0.14 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking seq-fmt v0.0.1 [INFO] [stderr] Checking fixed32 v0.0.18 [INFO] [stderr] Checking tiny-ver v0.1.2 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking swamp-ast v0.2.26 [INFO] [stderr] Checking seq-set v0.0.2 [INFO] [stderr] Checking swamp-attributes v0.2.26 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking swamp-symbol v0.2.26 [INFO] [stderr] Checking source-map-cache v0.0.6 [INFO] [stderr] Checking swamp-types v0.2.26 [INFO] [stderr] Checking swamp-refs v0.2.26 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking swamp-semantic v0.2.26 [INFO] [stderr] Checking swamp-modules v0.2.26 [INFO] [stderr] Checking swamp-analyzer v0.2.26 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `variant_name_node` [INFO] [stdout] --> src/def.rs:261:52 [INFO] [stdout] | [INFO] [stdout] 261 | swamp_ast::EnumVariantType::Struct(variant_name_node, ast_struct_fields) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant_name_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variant_name_node` [INFO] [stdout] --> src/def.rs:261:52 [INFO] [stdout] | [INFO] [stdout] 261 | swamp_ast::EnumVariantType::Struct(variant_name_node, ast_struct_fields) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant_name_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/structure.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | function: &FunctionRef, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/structure.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | context: &TypeContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/structure.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | function: &FunctionRef, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/structure.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | context: &TypeContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_ref` [INFO] [stdout] --> src/variable.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | let (variable_ref, _name_str) = self.create_variable_like_resolved( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_str` [INFO] [stdout] --> src/variable.rs:173:28 [INFO] [stdout] | [INFO] [stdout] 173 | let (variable_ref, variable_str) = self.create_variable_like_resolved( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_str` [INFO] [stdout] --> src/variable.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | let (variable_ref, variable_str) = self.create_variable_like_resolved( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/lib.rs:441:24 [INFO] [stdout] | [INFO] [stdout] 441 | let (kind, signature) = match found_func { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_line` [INFO] [stdout] --> src/lib.rs:535:13 [INFO] [stdout] | [INFO] [stdout] 535 | let debug_line = format!("{source_path}:{line}:{col}> {}", source_line.unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/lib.rs:520:45 [INFO] [stdout] | [INFO] [stdout] 520 | pub fn debug_line(&self, offset: usize, description: &str) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast_node` [INFO] [stdout] --> src/lib.rs:589:9 [INFO] [stdout] | [INFO] [stdout] 589 | ast_node: &swamp_ast::Node, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:876:13 [INFO] [stdout] | [INFO] [stdout] 778 | swamp_ast::ExpressionKind::ContextAccess => { [INFO] [stdout] | ---------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 876 | swamp_ast::ExpressionKind::ContextAccess => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_name` [INFO] [stdout] --> src/lib.rs:786:21 [INFO] [stdout] | [INFO] [stdout] 786 | let debug_name = self.get_text(member_name); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_name` [INFO] [stdout] --> src/lib.rs:787:21 [INFO] [stdout] | [INFO] [stdout] 787 | let type_name = self.get_text(&type_identifier.name.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_ref` [INFO] [stdout] --> src/variable.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | let (variable_ref, _name_str) = self.create_variable_like_resolved( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_str` [INFO] [stdout] --> src/variable.rs:173:28 [INFO] [stdout] | [INFO] [stdout] 173 | let (variable_ref, variable_str) = self.create_variable_like_resolved( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_str` [INFO] [stdout] --> src/variable.rs:189:28 [INFO] [stdout] | [INFO] [stdout] 189 | let (variable_ref, variable_str) = self.create_variable_like_resolved( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:1423:61 [INFO] [stdout] | [INFO] [stdout] 1423 | TypeKind::GridStorage(element_type, x, _) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/lib.rs:1524:76 [INFO] [stdout] | [INFO] [stdout] 1524 | swamp_ast::Postfix::FunctionCall(node, _generic_arguments, arguments) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/lib.rs:441:24 [INFO] [stdout] | [INFO] [stdout] 441 | let (kind, signature) = match found_func { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_line` [INFO] [stdout] --> src/lib.rs:535:13 [INFO] [stdout] | [INFO] [stdout] 535 | let debug_line = format!("{source_path}:{line}:{col}> {}", source_line.unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/lib.rs:520:45 [INFO] [stdout] | [INFO] [stdout] 520 | pub fn debug_line(&self, offset: usize, description: &str) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/lib.rs:1680:9 [INFO] [stdout] | [INFO] [stdout] 1680 | context: &TypeContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast_node` [INFO] [stdout] --> src/lib.rs:589:9 [INFO] [stdout] | [INFO] [stdout] 589 | ast_node: &swamp_ast::Node, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format_specifier` [INFO] [stdout] --> src/lib.rs:1744:66 [INFO] [stdout] | [INFO] [stdout] 1744 | swamp_ast::StringPart::Interpolation(expression, format_specifier) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_format_specifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_str` [INFO] [stdout] --> src/lib.rs:2077:36 [INFO] [stdout] | [INFO] [stdout] 2077 | fn push_block_scope(&mut self, debug_str: &str) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_str` [INFO] [stdout] --> src/lib.rs:2089:37 [INFO] [stdout] | [INFO] [stdout] 2089 | fn push_lambda_scope(&mut self, debug_str: &str) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_str` [INFO] [stdout] --> src/lib.rs:2100:35 [INFO] [stdout] | [INFO] [stdout] 2100 | fn pop_block_scope(&mut self, debug_str: &str) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:876:13 [INFO] [stdout] | [INFO] [stdout] 778 | swamp_ast::ExpressionKind::ContextAccess => { [INFO] [stdout] | ---------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 876 | swamp_ast::ExpressionKind::ContextAccess => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_name` [INFO] [stdout] --> src/lib.rs:786:21 [INFO] [stdout] | [INFO] [stdout] 786 | let debug_name = self.get_text(member_name); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_name` [INFO] [stdout] --> src/lib.rs:787:21 [INFO] [stdout] | [INFO] [stdout] 787 | let type_name = self.get_text(&type_identifier.name.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lib.rs:1423:61 [INFO] [stdout] | [INFO] [stdout] 1423 | TypeKind::GridStorage(element_type, x, _) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/lib.rs:1524:76 [INFO] [stdout] | [INFO] [stdout] 1524 | swamp_ast::Postfix::FunctionCall(node, _generic_arguments, arguments) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:2781:17 [INFO] [stdout] | [INFO] [stdout] 2781 | _ | ExpressionKind::IntrinsicCallEx(_, _) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | | [INFO] [stdout] | matches any value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/lib.rs:2777:9 [INFO] [stdout] | [INFO] [stdout] 2777 | ty: &TypeRef, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assignment_mode` [INFO] [stdout] --> src/lib.rs:2815:54 [INFO] [stdout] | [INFO] [stdout] 2815 | pub const fn check_mutable_assignment(&mut self, assignment_mode: AssignmentMode, node: &Node) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assignment_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:2815:87 [INFO] [stdout] | [INFO] [stdout] 2815 | pub const fn check_mutable_assignment(&mut self, assignment_mode: AssignmentMode, node: &Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_expression` [INFO] [stdout] --> src/lib.rs:2819:9 [INFO] [stdout] | [INFO] [stdout] 2819 | source_expression: &swamp_ast::Expression, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/lib.rs:2820:9 [INFO] [stdout] | [INFO] [stdout] 2820 | ty: &TypeRef, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/lib.rs:2821:9 [INFO] [stdout] | [INFO] [stdout] 2821 | variable: &swamp_ast::Variable, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/lib.rs:1680:9 [INFO] [stdout] | [INFO] [stdout] 1680 | context: &TypeContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format_specifier` [INFO] [stdout] --> src/lib.rs:1744:66 [INFO] [stdout] | [INFO] [stdout] 1744 | swamp_ast::StringPart::Interpolation(expression, format_specifier) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_format_specifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/lib.rs:3683:32 [INFO] [stdout] | [INFO] [stdout] 3683 | fn analyze_assignment_mode(lhs: SingleLocationExpression) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_str` [INFO] [stdout] --> src/lib.rs:2077:36 [INFO] [stdout] | [INFO] [stdout] 2077 | fn push_block_scope(&mut self, debug_str: &str) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_str` [INFO] [stdout] --> src/lib.rs:2089:37 [INFO] [stdout] | [INFO] [stdout] 2089 | fn push_lambda_scope(&mut self, debug_str: &str) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resolved_node` [INFO] [stdout] --> src/lib.rs:3761:13 [INFO] [stdout] | [INFO] [stdout] 3761 | let resolved_node = self.to_node(node); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resolved_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `debug_str` [INFO] [stdout] --> src/lib.rs:2100:35 [INFO] [stdout] | [INFO] [stdout] 2100 | fn pop_block_scope(&mut self, debug_str: &str) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_that_member_is_on` [INFO] [stdout] --> src/lib.rs:3754:9 [INFO] [stdout] | [INFO] [stdout] 3754 | type_that_member_is_on: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_that_member_is_on` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generic_arguments` [INFO] [stdout] --> src/lib.rs:3756:9 [INFO] [stdout] | [INFO] [stdout] 3756 | generic_arguments: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generic_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast_arguments` [INFO] [stdout] --> src/lib.rs:3757:9 [INFO] [stdout] | [INFO] [stdout] 3757 | ast_arguments: &[swamp_ast::Expression], [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_mutable` [INFO] [stdout] --> src/lib.rs:3758:9 [INFO] [stdout] | [INFO] [stdout] 3758 | is_mutable: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_mutable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_type_param` [INFO] [stdout] --> src/lib.rs:3830:13 [INFO] [stdout] | [INFO] [stdout] 3830 | let self_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_mutable_type_param` [INFO] [stdout] --> src/lib.rs:4085:13 [INFO] [stdout] | [INFO] [stdout] 4085 | let self_mutable_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_mutable_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4077:9 [INFO] [stdout] | [INFO] [stdout] 4077 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_type_param` [INFO] [stdout] --> src/lib.rs:4150:13 [INFO] [stdout] | [INFO] [stdout] 4150 | let self_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_mut_type_param` [INFO] [stdout] --> src/lib.rs:4156:13 [INFO] [stdout] | [INFO] [stdout] 4156 | let self_mut_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_mut_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4148:9 [INFO] [stdout] | [INFO] [stdout] 4148 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_type` [INFO] [stdout] --> src/lib.rs:4241:9 [INFO] [stdout] | [INFO] [stdout] 4241 | key_type: Option<&TypeRef>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/lib.rs:4242:9 [INFO] [stdout] | [INFO] [stdout] 4242 | element_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lambda_variable_count` [INFO] [stdout] --> src/lib.rs:4244:9 [INFO] [stdout] | [INFO] [stdout] 4244 | lambda_variable_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lambda_variable_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4245:9 [INFO] [stdout] | [INFO] [stdout] 4245 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_type` [INFO] [stdout] --> src/lib.rs:4277:9 [INFO] [stdout] | [INFO] [stdout] 4277 | key_type: Option<&TypeRef>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/lib.rs:4278:9 [INFO] [stdout] | [INFO] [stdout] 4278 | element_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lambda_variable_count` [INFO] [stdout] --> src/lib.rs:4280:9 [INFO] [stdout] | [INFO] [stdout] 4280 | lambda_variable_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lambda_variable_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4281:9 [INFO] [stdout] | [INFO] [stdout] 4281 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_type` [INFO] [stdout] --> src/lib.rs:4320:9 [INFO] [stdout] | [INFO] [stdout] 4320 | key_type: Option<&TypeRef>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/lib.rs:4585:9 [INFO] [stdout] | [INFO] [stdout] 4585 | value_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4587:9 [INFO] [stdout] | [INFO] [stdout] 4587 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:4691:15 [INFO] [stdout] | [INFO] [stdout] 4682 | TypeKind::QueueStorage(element_type, ..) => self.queue_member_signature( [INFO] [stdout] | ---------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4691 | | TypeKind::QueueStorage(element_type, ..) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_type` [INFO] [stdout] --> src/lib.rs:4681:28 [INFO] [stdout] | [INFO] [stdout] 4681 | TypeKind::Enum(enum_type) => self.enum_member_signature(ty, field_name_str, node), [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/lib.rs:4708:31 [INFO] [stdout] | [INFO] [stdout] 4708 | TypeKind::Pointer(inner) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:2781:17 [INFO] [stdout] | [INFO] [stdout] 2781 | _ | ExpressionKind::IntrinsicCallEx(_, _) [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | | [INFO] [stdout] | matches any value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/lib.rs:2777:9 [INFO] [stdout] | [INFO] [stdout] 2777 | ty: &TypeRef, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assignment_mode` [INFO] [stdout] --> src/lib.rs:2815:54 [INFO] [stdout] | [INFO] [stdout] 2815 | pub const fn check_mutable_assignment(&mut self, assignment_mode: AssignmentMode, node: &Node) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assignment_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:2815:87 [INFO] [stdout] | [INFO] [stdout] 2815 | pub const fn check_mutable_assignment(&mut self, assignment_mode: AssignmentMode, node: &Node) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_expression` [INFO] [stdout] --> src/lib.rs:2819:9 [INFO] [stdout] | [INFO] [stdout] 2819 | source_expression: &swamp_ast::Expression, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/lib.rs:2820:9 [INFO] [stdout] | [INFO] [stdout] 2820 | ty: &TypeRef, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable` [INFO] [stdout] --> src/lib.rs:2821:9 [INFO] [stdout] | [INFO] [stdout] 2821 | variable: &swamp_ast::Variable, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:5043:9 [INFO] [stdout] | [INFO] [stdout] 5043 | path: &[String], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `member_name` [INFO] [stdout] --> src/lib.rs:5257:13 [INFO] [stdout] | [INFO] [stdout] 5257 | let member_name = self.get_text(member_name_node); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_member_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeAnalyzeContext` is more private than the item `def::>::analyze_anonymous_struct_type` [INFO] [stdout] --> src/def.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | / pub fn analyze_anonymous_struct_type( [INFO] [stdout] 409 | | &mut self, [INFO] [stdout] 410 | | ast_struct: &swamp_ast::AnonymousStructType, [INFO] [stdout] 411 | | ctx: &TypeAnalyzeContext, [INFO] [stdout] 412 | | ) -> AnonymousStructType { [INFO] [stdout] | |____________________________^ method `def::>::analyze_anonymous_struct_type` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeAnalyzeContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeAnalyzeContext` is more private than the item `def::>::analyze_anonymous_struct_type_fields` [INFO] [stdout] --> src/def.rs:420:5 [INFO] [stdout] | [INFO] [stdout] 420 | / pub fn analyze_anonymous_struct_type_fields( [INFO] [stdout] 421 | | &mut self, [INFO] [stdout] 422 | | ast_struct_fields: &[swamp_ast::StructTypeField], [INFO] [stdout] 423 | | ctx: &TypeAnalyzeContext, [INFO] [stdout] 424 | | ) -> SeqMap { [INFO] [stdout] | |________________________________________^ method `def::>::analyze_anonymous_struct_type_fields` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeAnalyzeContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeAnalyzeContext` is more private than the item `types::>::analyze_type` [INFO] [stdout] --> src/types.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / pub fn analyze_type( [INFO] [stdout] 59 | | &mut self, [INFO] [stdout] 60 | | ast_type: &swamp_ast::Type, [INFO] [stdout] 61 | | ctx: &TypeAnalyzeContext, [INFO] [stdout] 62 | | ) -> TypeRef { [INFO] [stdout] | |________________^ method `types::>::analyze_type` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeAnalyzeContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/lib.rs:3683:32 [INFO] [stdout] | [INFO] [stdout] 3683 | fn analyze_assignment_mode(lhs: SingleLocationExpression) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:1123:8 [INFO] [stdout] | [INFO] [stdout] 167 | impl<'a> Analyzer<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 1123 | fn create_static_member_intrinsic_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2355 | fn get_enum_variant_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2437 | const fn analyze_format_specifier( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3134 | fn extract_single_intrinsic_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3683 | fn analyze_assignment_mode(lhs: SingleLocationExpression) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4860 | fn analyze_postfix_member_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4893 | fn is_compatible_initializer_list_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4909 | fn is_compatible_initializer_pair_list_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_lvalue` and `new_argument_ephemeral` are never used [INFO] [stdout] --> src/context.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> TypeContext<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) const fn with_lvalue(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub(crate) const fn new_argument_ephemeral( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `analyze_tuple_type` is never used [INFO] [stdout] --> src/literal.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Analyzer<'_> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 337 | fn analyze_tuple_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_not_first_condition` is never used [INFO] [stdout] --> src/to_string.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn create_not_first_condition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_bool_var_false` is never used [INFO] [stdout] --> src/to_string.rs:183:4 [INFO] [stdout] | [INFO] [stdout] 183 | fn set_bool_var_false( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `internal_generate_to_pretty_short_string_function_for_type` is never used [INFO] [stdout] --> src/to_string.rs:1828:8 [INFO] [stdout] | [INFO] [stdout] 1828 | pub fn internal_generate_to_pretty_short_string_function_for_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_analyzing_type_in_parameter_context` is never read [INFO] [stdout] --> src/types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 11 | pub is_analyzing_type_in_parameter_context: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_analyzing_a_parameter_type` is never used [INFO] [stdout] --> src/types.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl TypeAnalyzeContext { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub const fn is_analyzing_a_parameter_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resolved_node` [INFO] [stdout] --> src/lib.rs:3761:13 [INFO] [stdout] | [INFO] [stdout] 3761 | let resolved_node = self.to_node(node); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resolved_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_variable_param_like` is never used [INFO] [stdout] --> src/variable.rs:154:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl Analyzer<'_> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn create_variable_param_like( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_that_member_is_on` [INFO] [stdout] --> src/lib.rs:3754:9 [INFO] [stdout] | [INFO] [stdout] 3754 | type_that_member_is_on: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_that_member_is_on` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generic_arguments` [INFO] [stdout] --> src/lib.rs:3756:9 [INFO] [stdout] | [INFO] [stdout] 3756 | generic_arguments: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generic_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast_arguments` [INFO] [stdout] --> src/lib.rs:3757:9 [INFO] [stdout] | [INFO] [stdout] 3757 | ast_arguments: &[swamp_ast::Expression], [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_mutable` [INFO] [stdout] --> src/lib.rs:3758:9 [INFO] [stdout] | [INFO] [stdout] 3758 | is_mutable: bool, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_mutable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_type_param` [INFO] [stdout] --> src/lib.rs:3830:13 [INFO] [stdout] | [INFO] [stdout] 3830 | let self_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_mutable_type_param` [INFO] [stdout] --> src/lib.rs:4085:13 [INFO] [stdout] | [INFO] [stdout] 4085 | let self_mutable_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_mutable_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4077:9 [INFO] [stdout] | [INFO] [stdout] 4077 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/context.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) const fn with_ephemeral(&self) -> TypeContext { [INFO] [stdout] | ^^^^^ ----------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) const fn with_ephemeral(&self) -> TypeContext<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_type_param` [INFO] [stdout] --> src/lib.rs:4150:13 [INFO] [stdout] | [INFO] [stdout] 4150 | let self_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_mut_type_param` [INFO] [stdout] --> src/lib.rs:4156:13 [INFO] [stdout] | [INFO] [stdout] 4156 | let self_mut_type_param = TypeForParameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_mut_type_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4148:9 [INFO] [stdout] | [INFO] [stdout] 4148 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_type` [INFO] [stdout] --> src/lib.rs:4241:9 [INFO] [stdout] | [INFO] [stdout] 4241 | key_type: Option<&TypeRef>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/lib.rs:4242:9 [INFO] [stdout] | [INFO] [stdout] 4242 | element_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lambda_variable_count` [INFO] [stdout] --> src/lib.rs:4244:9 [INFO] [stdout] | [INFO] [stdout] 4244 | lambda_variable_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lambda_variable_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4245:9 [INFO] [stdout] | [INFO] [stdout] 4245 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_type` [INFO] [stdout] --> src/lib.rs:4277:9 [INFO] [stdout] | [INFO] [stdout] 4277 | key_type: Option<&TypeRef>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/lib.rs:4278:9 [INFO] [stdout] | [INFO] [stdout] 4278 | element_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lambda_variable_count` [INFO] [stdout] --> src/lib.rs:4280:9 [INFO] [stdout] | [INFO] [stdout] 4280 | lambda_variable_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lambda_variable_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4281:9 [INFO] [stdout] | [INFO] [stdout] 4281 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_type` [INFO] [stdout] --> src/lib.rs:4320:9 [INFO] [stdout] | [INFO] [stdout] 4320 | key_type: Option<&TypeRef>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_type` [INFO] [stdout] --> src/lib.rs:4585:9 [INFO] [stdout] | [INFO] [stdout] 4585 | value_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lib.rs:4587:9 [INFO] [stdout] | [INFO] [stdout] 4587 | node: &swamp_ast::Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:4691:15 [INFO] [stdout] | [INFO] [stdout] 4682 | TypeKind::QueueStorage(element_type, ..) => self.queue_member_signature( [INFO] [stdout] | ---------------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 4691 | | TypeKind::QueueStorage(element_type, ..) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_type` [INFO] [stdout] --> src/lib.rs:4681:28 [INFO] [stdout] | [INFO] [stdout] 4681 | TypeKind::Enum(enum_type) => self.enum_member_signature(ty, field_name_str, node), [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inner` [INFO] [stdout] --> src/lib.rs:4708:31 [INFO] [stdout] | [INFO] [stdout] 4708 | TypeKind::Pointer(inner) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:5043:9 [INFO] [stdout] | [INFO] [stdout] 5043 | path: &[String], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `member_name` [INFO] [stdout] --> src/lib.rs:5257:13 [INFO] [stdout] | [INFO] [stdout] 5257 | let member_name = self.get_text(member_name_node); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_member_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeAnalyzeContext` is more private than the item `def::>::analyze_anonymous_struct_type` [INFO] [stdout] --> src/def.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | / pub fn analyze_anonymous_struct_type( [INFO] [stdout] 409 | | &mut self, [INFO] [stdout] 410 | | ast_struct: &swamp_ast::AnonymousStructType, [INFO] [stdout] 411 | | ctx: &TypeAnalyzeContext, [INFO] [stdout] 412 | | ) -> AnonymousStructType { [INFO] [stdout] | |____________________________^ method `def::>::analyze_anonymous_struct_type` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeAnalyzeContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeAnalyzeContext` is more private than the item `def::>::analyze_anonymous_struct_type_fields` [INFO] [stdout] --> src/def.rs:420:5 [INFO] [stdout] | [INFO] [stdout] 420 | / pub fn analyze_anonymous_struct_type_fields( [INFO] [stdout] 421 | | &mut self, [INFO] [stdout] 422 | | ast_struct_fields: &[swamp_ast::StructTypeField], [INFO] [stdout] 423 | | ctx: &TypeAnalyzeContext, [INFO] [stdout] 424 | | ) -> SeqMap { [INFO] [stdout] | |________________________________________^ method `def::>::analyze_anonymous_struct_type_fields` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeAnalyzeContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TypeAnalyzeContext` is more private than the item `types::>::analyze_type` [INFO] [stdout] --> src/types.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / pub fn analyze_type( [INFO] [stdout] 59 | | &mut self, [INFO] [stdout] 60 | | ast_type: &swamp_ast::Type, [INFO] [stdout] 61 | | ctx: &TypeAnalyzeContext, [INFO] [stdout] 62 | | ) -> TypeRef { [INFO] [stdout] | |________________^ method `types::>::analyze_type` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TypeAnalyzeContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:1123:8 [INFO] [stdout] | [INFO] [stdout] 167 | impl<'a> Analyzer<'a> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 1123 | fn create_static_member_intrinsic_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2355 | fn get_enum_variant_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2437 | const fn analyze_format_specifier( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3134 | fn extract_single_intrinsic_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3683 | fn analyze_assignment_mode(lhs: SingleLocationExpression) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4860 | fn analyze_postfix_member_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4893 | fn is_compatible_initializer_list_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4909 | fn is_compatible_initializer_pair_list_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_lvalue` and `new_argument_ephemeral` are never used [INFO] [stdout] --> src/context.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a> TypeContext<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) const fn with_lvalue(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub(crate) const fn new_argument_ephemeral( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `analyze_tuple_type` is never used [INFO] [stdout] --> src/literal.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Analyzer<'_> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 337 | fn analyze_tuple_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_not_first_condition` is never used [INFO] [stdout] --> src/to_string.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn create_not_first_condition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_bool_var_false` is never used [INFO] [stdout] --> src/to_string.rs:183:4 [INFO] [stdout] | [INFO] [stdout] 183 | fn set_bool_var_false( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `internal_generate_to_pretty_short_string_function_for_type` is never used [INFO] [stdout] --> src/to_string.rs:1828:8 [INFO] [stdout] | [INFO] [stdout] 1828 | pub fn internal_generate_to_pretty_short_string_function_for_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_analyzing_type_in_parameter_context` is never read [INFO] [stdout] --> src/types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct TypeAnalyzeContext { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 11 | pub is_analyzing_type_in_parameter_context: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_analyzing_a_parameter_type` is never used [INFO] [stdout] --> src/types.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl TypeAnalyzeContext { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub const fn is_analyzing_a_parameter_type(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_variable_param_like` is never used [INFO] [stdout] --> src/variable.rs:154:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl Analyzer<'_> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn create_variable_param_like( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/context.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) const fn with_ephemeral(&self) -> TypeContext { [INFO] [stdout] | ^^^^^ ----------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) const fn with_ephemeral(&self) -> TypeContext<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `analyzer` [INFO] [stdout] --> tests/tests.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let analyzer = Analyzer::new( [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_analyzer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.23s [INFO] running `Command { std: "docker" "inspect" "cbfd3ba58681a57cd835791575710b03eeac3cf0b5a547ec2c6c1811f3627bc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbfd3ba58681a57cd835791575710b03eeac3cf0b5a547ec2c6c1811f3627bc2", kill_on_drop: false }` [INFO] [stdout] cbfd3ba58681a57cd835791575710b03eeac3cf0b5a547ec2c6c1811f3627bc2