[INFO] fetching crate swamp-code-gen 0.2.26... [INFO] testing swamp-code-gen-0.2.26 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate swamp-code-gen 0.2.26 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate swamp-code-gen 0.2.26 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate swamp-code-gen 0.2.26 [INFO] tweaked toml for crates.io crate swamp-code-gen 0.2.26 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate swamp-code-gen 0.2.26 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate swamp-code-gen 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 049fb8461e981cfdc234d408d6ff2e3a51db95564736656f240f21bff0c8ee94 [INFO] running `Command { std: "docker" "start" "-a" "049fb8461e981cfdc234d408d6ff2e3a51db95564736656f240f21bff0c8ee94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "049fb8461e981cfdc234d408d6ff2e3a51db95564736656f240f21bff0c8ee94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "049fb8461e981cfdc234d408d6ff2e3a51db95564736656f240f21bff0c8ee94", kill_on_drop: false }` [INFO] [stdout] 049fb8461e981cfdc234d408d6ff2e3a51db95564736656f240f21bff0c8ee94 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 30df435f01cb36aa5946ee6cba8e2f737b7b8939cb18134a99025582de03de84 [INFO] running `Command { std: "docker" "start" "-a" "30df435f01cb36aa5946ee6cba8e2f737b7b8939cb18134a99025582de03de84", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling source-map-node v0.0.1 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling seq-map v0.0.14 [INFO] [stderr] Compiling seq-fmt v0.0.1 [INFO] [stderr] Compiling tinter v0.1.0 [INFO] [stderr] Compiling fixed32 v0.0.18 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling sparse-mem v0.2.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling swamp-attributes v0.2.26 [INFO] [stderr] Compiling hashmap-mem v0.2.0 [INFO] [stderr] Compiling swamp-symbol v0.2.26 [INFO] [stderr] Compiling source-map-cache v0.0.6 [INFO] [stderr] Compiling swamp-vm-isa v0.2.26 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling swamp-types v0.2.26 [INFO] [stderr] Compiling 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] Compiling tracing v0.1.41 [INFO] [stderr] Compiling swamp-vm-types v0.2.26 [INFO] [stderr] Compiling swamp-semantic v0.2.26 [INFO] [stderr] Compiling swamp-vm-debug-info v0.2.26 [INFO] [stderr] Compiling swamp-vm-instr-build v0.2.26 [INFO] [stderr] Compiling swamp-vm-layout v0.2.26 [INFO] [stderr] Compiling swamp-vm-disasm v0.2.26 [INFO] [stderr] Compiling swamp-code-gen v0.2.26 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/enum_variants.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | (tuple_expressions.len() == 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - (tuple_expressions.len() == 1), [INFO] [stdout] 107 + tuple_expressions.len() == 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/reg_pool.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | (self.num_allocated < self.capacity), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - (self.num_allocated < self.capacity), [INFO] [stdout] 91 + self.num_allocated < self.capacity, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/reg_pool.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | (mark <= self.num_allocated), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - (mark <= self.num_allocated), [INFO] [stdout] 117 + mark <= self.num_allocated, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/assignment.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kind` [INFO] [stdout] --> src/bin_op.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | let kind = FlagStateKind::TFlagIsIndeterminate; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/call.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | _ => panic!("what kind of argument is it"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/call.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 114 | ArgumentExpression::BorrowMutableReference(lvalue) => { [INFO] [stdout] | -------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 146 | ArgumentExpression::MaterializedExpression(expr) => { [INFO] [stdout] | ------------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | ArgumentExpression::Expression(expr) => { [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 179 | _ => panic!("what kind of argument is it"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_host_call` [INFO] [stdout] --> src/call.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | is_host_call: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_host_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/call.rs:596:9 [INFO] [stdout] | [INFO] [stdout] 596 | reg: &TypedRegister, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/code_bld.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/code_bld.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/code_bld.rs:670:22 [INFO] [stdout] | [INFO] [stdout] 670 | if let Some((start, end)) = answer { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/code_bld.rs:670:29 [INFO] [stdout] | [INFO] [stdout] 670 | if let Some((start, end)) = answer { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/equal.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/equal.rs:49:72 [INFO] [stdout] | [INFO] [stdout] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/equal.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/expr.rs:473:25 [INFO] [stdout] | [INFO] [stdout] 473 | let x = 3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_info` [INFO] [stdout] --> src/func.rs:123:32 [INFO] [stdout] | [INFO] [stdout] 123 | let (start_ip, end_ip, function_info) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_info` [INFO] [stdout] --> src/func.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let function_info = FunctionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/func.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | options: &GenOptions, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/func.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | for (index, x) in &frame_and_variable_info.parameter_and_variable_offsets { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found_constant` [INFO] [stdout] --> src/func.rs:326:47 [INFO] [stdout] | [INFO] [stdout] 326 | if let FunctionInfoKind::Constant(found_constant) = &in_data.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_found_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union_info` [INFO] [stdout] --> src/init.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union_info` [INFO] [stdout] --> src/init.rs:103:40 [INFO] [stdout] | [INFO] [stdout] 103 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/intr.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/intr.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_reg` [INFO] [stdout] --> src/intr.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_reg` [INFO] [stdout] --> src/intr.rs:143:24 [INFO] [stdout] | [INFO] [stdout] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/intr.rs:457:21 [INFO] [stdout] | [INFO] [stdout] 457 | let element_type = self_basic_type.element().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_target` [INFO] [stdout] --> src/intr.rs:917:13 [INFO] [stdout] | [INFO] [stdout] 917 | let maybe_target = target_destination.register(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/literal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lvalue.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let node = &location_expression.node; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logical_limit` [INFO] [stdout] --> src/map.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | logical_limit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/map.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_patterns` [INFO] [stdout] --> src/match_expr.rs:61:62 [INFO] [stdout] | [INFO] [stdout] 61 | NormalPattern::EnumPattern(enum_variant, maybe_patterns) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_patterns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_guard` [INFO] [stdout] --> src/match_expr.rs:265:49 [INFO] [stdout] | [INFO] [stdout] 265 | Pattern::Normal(normal_pattern, maybe_guard) => match normal_pattern { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal_expression` [INFO] [stdout] --> src/match_expr.rs:268:44 [INFO] [stdout] | [INFO] [stdout] 268 | NormalPattern::Literal(literal_expression) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/state.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | node: &Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/state.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/statement.rs:86:37 [INFO] [stdout] | [INFO] [stdout] 86 | TypeKind::SparseStorage(element_type, _) | TypeKind::SparseView(element_type) => { [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 86 | TypeKind::SparseStorage(_element_type, _) | TypeKind::SparseView(_element_type) => { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_collection_type` [INFO] [stdout] --> src/statement.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | source_collection_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_collection_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/transfer.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/vec.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_error` is never used [INFO] [stdout] --> src/call.rs:602:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl CodeBuilder<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 602 | fn add_error(&mut self, error_kind: err::ErrorKind, node: &Node) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug_node` is never used [INFO] [stdout] --> src/code_bld.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl CodeBuilder<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn debug_node(&self, node: &Node) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `comment` is never used [INFO] [stdout] --> src/ctx.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn comment(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.49s [INFO] running `Command { std: "docker" "inspect" "30df435f01cb36aa5946ee6cba8e2f737b7b8939cb18134a99025582de03de84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30df435f01cb36aa5946ee6cba8e2f737b7b8939cb18134a99025582de03de84", kill_on_drop: false }` [INFO] [stdout] 30df435f01cb36aa5946ee6cba8e2f737b7b8939cb18134a99025582de03de84 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71e4fef64470dbe83da5a770e4663c21fb67c4932afad331aebb53466b7204b5 [INFO] running `Command { std: "docker" "start" "-a" "71e4fef64470dbe83da5a770e4663c21fb67c4932afad331aebb53466b7204b5", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/enum_variants.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | (tuple_expressions.len() == 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - (tuple_expressions.len() == 1), [INFO] [stdout] 107 + tuple_expressions.len() == 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/reg_pool.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | (self.num_allocated < self.capacity), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - (self.num_allocated < self.capacity), [INFO] [stdout] 91 + self.num_allocated < self.capacity, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/reg_pool.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | (mark <= self.num_allocated), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - (mark <= self.num_allocated), [INFO] [stdout] 117 + mark <= self.num_allocated, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/assignment.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kind` [INFO] [stdout] --> src/bin_op.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | let kind = FlagStateKind::TFlagIsIndeterminate; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/call.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | _ => panic!("what kind of argument is it"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/call.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 114 | ArgumentExpression::BorrowMutableReference(lvalue) => { [INFO] [stdout] | -------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 146 | ArgumentExpression::MaterializedExpression(expr) => { [INFO] [stdout] | ------------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | ArgumentExpression::Expression(expr) => { [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 179 | _ => panic!("what kind of argument is it"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_host_call` [INFO] [stdout] --> src/call.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | is_host_call: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_host_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/call.rs:596:9 [INFO] [stdout] | [INFO] [stdout] 596 | reg: &TypedRegister, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/code_bld.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/code_bld.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/code_bld.rs:670:22 [INFO] [stdout] | [INFO] [stdout] 670 | if let Some((start, end)) = answer { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/code_bld.rs:670:29 [INFO] [stdout] | [INFO] [stdout] 670 | if let Some((start, end)) = answer { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/equal.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/equal.rs:49:72 [INFO] [stdout] | [INFO] [stdout] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/equal.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/expr.rs:473:25 [INFO] [stdout] | [INFO] [stdout] 473 | let x = 3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_info` [INFO] [stdout] --> src/func.rs:123:32 [INFO] [stdout] | [INFO] [stdout] 123 | let (start_ip, end_ip, function_info) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_info` [INFO] [stdout] --> src/func.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let function_info = FunctionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/func.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | options: &GenOptions, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/func.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | for (index, x) in &frame_and_variable_info.parameter_and_variable_offsets { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found_constant` [INFO] [stdout] --> src/func.rs:326:47 [INFO] [stdout] | [INFO] [stdout] 326 | if let FunctionInfoKind::Constant(found_constant) = &in_data.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_found_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union_info` [INFO] [stdout] --> src/init.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union_info` [INFO] [stdout] --> src/init.rs:103:40 [INFO] [stdout] | [INFO] [stdout] 103 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/intr.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/intr.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_reg` [INFO] [stdout] --> src/intr.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_reg` [INFO] [stdout] --> src/intr.rs:143:24 [INFO] [stdout] | [INFO] [stdout] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/intr.rs:457:21 [INFO] [stdout] | [INFO] [stdout] 457 | let element_type = self_basic_type.element().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_target` [INFO] [stdout] --> src/intr.rs:917:13 [INFO] [stdout] | [INFO] [stdout] 917 | let maybe_target = target_destination.register(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/literal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lvalue.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let node = &location_expression.node; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logical_limit` [INFO] [stdout] --> src/map.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | logical_limit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/map.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_patterns` [INFO] [stdout] --> src/match_expr.rs:61:62 [INFO] [stdout] | [INFO] [stdout] 61 | NormalPattern::EnumPattern(enum_variant, maybe_patterns) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_patterns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_guard` [INFO] [stdout] --> src/match_expr.rs:265:49 [INFO] [stdout] | [INFO] [stdout] 265 | Pattern::Normal(normal_pattern, maybe_guard) => match normal_pattern { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal_expression` [INFO] [stdout] --> src/match_expr.rs:268:44 [INFO] [stdout] | [INFO] [stdout] 268 | NormalPattern::Literal(literal_expression) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/state.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | node: &Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling swamp-code-gen v0.2.26 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/state.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/statement.rs:86:37 [INFO] [stdout] | [INFO] [stdout] 86 | TypeKind::SparseStorage(element_type, _) | TypeKind::SparseView(element_type) => { [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 86 | TypeKind::SparseStorage(_element_type, _) | TypeKind::SparseView(_element_type) => { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_collection_type` [INFO] [stdout] --> src/statement.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | source_collection_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_collection_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/transfer.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/vec.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_error` is never used [INFO] [stdout] --> src/call.rs:602:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl CodeBuilder<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 602 | fn add_error(&mut self, error_kind: err::ErrorKind, node: &Node) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug_node` is never used [INFO] [stdout] --> src/code_bld.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl CodeBuilder<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn debug_node(&self, node: &Node) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `comment` is never used [INFO] [stdout] --> src/ctx.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn comment(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/enum_variants.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | (tuple_expressions.len() == 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - (tuple_expressions.len() == 1), [INFO] [stdout] 107 + tuple_expressions.len() == 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/reg_pool.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | (self.num_allocated < self.capacity), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - (self.num_allocated < self.capacity), [INFO] [stdout] 91 + self.num_allocated < self.capacity, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/reg_pool.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | (mark <= self.num_allocated), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - (mark <= self.num_allocated), [INFO] [stdout] 117 + mark <= self.num_allocated, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/assignment.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kind` [INFO] [stdout] --> src/bin_op.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | let kind = FlagStateKind::TFlagIsIndeterminate; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/bin_op.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/call.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | _ => panic!("what kind of argument is it"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/call.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 114 | ArgumentExpression::BorrowMutableReference(lvalue) => { [INFO] [stdout] | -------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 146 | ArgumentExpression::MaterializedExpression(expr) => { [INFO] [stdout] | ------------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 170 | ArgumentExpression::Expression(expr) => { [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 179 | _ => panic!("what kind of argument is it"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_host_call` [INFO] [stdout] --> src/call.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | is_host_call: bool, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_host_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/call.rs:596:9 [INFO] [stdout] | [INFO] [stdout] 596 | reg: &TypedRegister, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/code_bld.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/code_bld.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/code_bld.rs:670:22 [INFO] [stdout] | [INFO] [stdout] 670 | if let Some((start, end)) = answer { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/code_bld.rs:670:29 [INFO] [stdout] | [INFO] [stdout] 670 | if let Some((start, end)) = answer { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/equal.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/equal.rs:49:72 [INFO] [stdout] | [INFO] [stdout] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/equal.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/expr.rs:473:25 [INFO] [stdout] | [INFO] [stdout] 473 | let x = 3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_info` [INFO] [stdout] --> src/func.rs:123:32 [INFO] [stdout] | [INFO] [stdout] 123 | let (start_ip, end_ip, function_info) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function_info` [INFO] [stdout] --> src/func.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let function_info = FunctionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> src/func.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | options: &GenOptions, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/func.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | for (index, x) in &frame_and_variable_info.parameter_and_variable_offsets { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `found_constant` [INFO] [stdout] --> src/func.rs:326:47 [INFO] [stdout] | [INFO] [stdout] 326 | if let FunctionInfoKind::Constant(found_constant) = &in_data.kind { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_found_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union_info` [INFO] [stdout] --> src/init.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `union_info` [INFO] [stdout] --> src/init.rs:103:40 [INFO] [stdout] | [INFO] [stdout] 103 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/intr.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/intr.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_reg` [INFO] [stdout] --> src/intr.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_reg` [INFO] [stdout] --> src/intr.rs:143:24 [INFO] [stdout] | [INFO] [stdout] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/intr.rs:457:21 [INFO] [stdout] | [INFO] [stdout] 457 | let element_type = self_basic_type.element().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_target` [INFO] [stdout] --> src/intr.rs:917:13 [INFO] [stdout] | [INFO] [stdout] 917 | let maybe_target = target_destination.register(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/literal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | ctx: &Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/lvalue.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let node = &location_expression.node; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logical_limit` [INFO] [stdout] --> src/map.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | logical_limit: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/map.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_patterns` [INFO] [stdout] --> src/match_expr.rs:61:62 [INFO] [stdout] | [INFO] [stdout] 61 | NormalPattern::EnumPattern(enum_variant, maybe_patterns) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_patterns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_guard` [INFO] [stdout] --> src/match_expr.rs:265:49 [INFO] [stdout] | [INFO] [stdout] 265 | Pattern::Normal(normal_pattern, maybe_guard) => match normal_pattern { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_guard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `literal_expression` [INFO] [stdout] --> src/match_expr.rs:268:44 [INFO] [stdout] | [INFO] [stdout] 268 | NormalPattern::Literal(literal_expression) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal_expression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/state.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | node: &Node, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/state.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element_type` [INFO] [stdout] --> src/statement.rs:86:37 [INFO] [stdout] | [INFO] [stdout] 86 | TypeKind::SparseStorage(element_type, _) | TypeKind::SparseView(element_type) => { [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 86 | TypeKind::SparseStorage(_element_type, _) | TypeKind::SparseView(_element_type) => { [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_collection_type` [INFO] [stdout] --> src/statement.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | source_collection_type: &TypeRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_collection_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/transfer.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comment` [INFO] [stdout] --> src/vec.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | comment: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_error` is never used [INFO] [stdout] --> src/call.rs:602:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl CodeBuilder<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 602 | fn add_error(&mut self, error_kind: err::ErrorKind, node: &Node) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug_node` is never used [INFO] [stdout] --> src/code_bld.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl CodeBuilder<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn debug_node(&self, node: &Node) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `comment` is never used [INFO] [stdout] --> src/ctx.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 10 | impl Context { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn comment(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "71e4fef64470dbe83da5a770e4663c21fb67c4932afad331aebb53466b7204b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71e4fef64470dbe83da5a770e4663c21fb67c4932afad331aebb53466b7204b5", kill_on_drop: false }` [INFO] [stdout] 71e4fef64470dbe83da5a770e4663c21fb67c4932afad331aebb53466b7204b5 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7444510e81aca896ba2088da72f122e89d14b938ac0e4851a61acfd5c5fca5bb [INFO] running `Command { std: "docker" "start" "-a" "7444510e81aca896ba2088da72f122e89d14b938ac0e4851a61acfd5c5fca5bb", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/enum_variants.rs:107:21 [INFO] [stderr] | [INFO] [stderr] 107 | (tuple_expressions.len() == 1), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 107 - (tuple_expressions.len() == 1), [INFO] [stderr] 107 + tuple_expressions.len() == 1, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/reg_pool.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | (self.num_allocated < self.capacity), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 91 - (self.num_allocated < self.capacity), [INFO] [stderr] 91 + self.num_allocated < self.capacity, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/reg_pool.rs:117:13 [INFO] [stderr] | [INFO] [stderr] 117 | (mark <= self.num_allocated), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 117 - (mark <= self.num_allocated), [INFO] [stderr] 117 + mark <= self.num_allocated, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/assignment.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/bin_op.rs:137:9 [INFO] [stderr] | [INFO] [stderr] 137 | ctx: &Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `kind` [INFO] [stderr] --> src/bin_op.rs:188:13 [INFO] [stderr] | [INFO] [stderr] 188 | let kind = FlagStateKind::TFlagIsIndeterminate; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_kind` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/bin_op.rs:186:9 [INFO] [stderr] | [INFO] [stderr] 186 | ctx: &Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/bin_op.rs:224:9 [INFO] [stderr] | [INFO] [stderr] 224 | ctx: &Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/call.rs:179:13 [INFO] [stderr] | [INFO] [stderr] 179 | _ => panic!("what kind of argument is it"), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/call.rs:179:13 [INFO] [stderr] | [INFO] [stderr] 114 | ArgumentExpression::BorrowMutableReference(lvalue) => { [INFO] [stderr] | -------------------------------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 146 | ArgumentExpression::MaterializedExpression(expr) => { [INFO] [stderr] | ------------------------------------------------ matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 170 | ArgumentExpression::Expression(expr) => { [INFO] [stderr] | ------------------------------------ matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 179 | _ => panic!("what kind of argument is it"), [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_host_call` [INFO] [stderr] --> src/call.rs:190:9 [INFO] [stderr] | [INFO] [stderr] 190 | is_host_call: bool, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_host_call` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reg` [INFO] [stderr] --> src/call.rs:596:9 [INFO] [stderr] | [INFO] [stderr] 596 | reg: &TypedRegister, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/code_bld.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/code_bld.rs:403:9 [INFO] [stderr] | [INFO] [stderr] 403 | ctx: &Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `start` [INFO] [stderr] --> src/code_bld.rs:670:22 [INFO] [stderr] | [INFO] [stderr] 670 | if let Some((start, end)) = answer { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `end` [INFO] [stderr] --> src/code_bld.rs:670:29 [INFO] [stderr] | [INFO] [stderr] 670 | if let Some((start, end)) = answer { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/equal.rs:49:41 [INFO] [stderr] | [INFO] [stderr] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/equal.rs:49:72 [INFO] [stderr] | [INFO] [stderr] 49 | (BasicTypeKind::TaggedUnion(a), BasicTypeKind::TaggedUnion(b)) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/equal.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | ctx: &Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/expr.rs:473:25 [INFO] [stderr] | [INFO] [stderr] 473 | let x = 3; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `function_info` [INFO] [stderr] --> src/func.rs:123:32 [INFO] [stderr] | [INFO] [stderr] 123 | let (start_ip, end_ip, function_info) = [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `function_info` [INFO] [stderr] --> src/func.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | let function_info = FunctionInfo { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `options` [INFO] [stderr] --> src/func.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | options: &GenOptions, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/func.rs:269:14 [INFO] [stderr] | [INFO] [stderr] 269 | for (index, x) in &frame_and_variable_info.parameter_and_variable_offsets { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `found_constant` [INFO] [stderr] --> src/func.rs:326:47 [INFO] [stderr] | [INFO] [stderr] 326 | if let FunctionInfoKind::Constant(found_constant) = &in_data.kind { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_found_constant` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `union_info` [INFO] [stderr] --> src/init.rs:57:40 [INFO] [stderr] | [INFO] [stderr] 57 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `union_info` [INFO] [stderr] --> src/init.rs:103:40 [INFO] [stderr] | [INFO] [stderr] 103 | BasicTypeKind::TaggedUnion(union_info) => { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_union_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/intr.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/intr.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `temp_reg` [INFO] [stderr] --> src/intr.rs:143:14 [INFO] [stderr] | [INFO] [stderr] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_reg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dest_reg` [INFO] [stderr] --> src/intr.rs:143:24 [INFO] [stderr] | [INFO] [stderr] 143 | let (temp_reg, dest_reg) = if target_destination.is_register() { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_reg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `element_type` [INFO] [stderr] --> src/intr.rs:457:21 [INFO] [stderr] | [INFO] [stderr] 457 | let element_type = self_basic_type.element().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element_type` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `maybe_target` [INFO] [stderr] --> src/intr.rs:917:13 [INFO] [stderr] | [INFO] [stderr] 917 | let maybe_target = target_destination.register(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/literal.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | ctx: &Context, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/lvalue.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | let node = &location_expression.node; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logical_limit` [INFO] [stderr] --> src/map.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | logical_limit: usize, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical_limit` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/map.rs:84:9 [INFO] [stderr] | [INFO] [stderr] 84 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `maybe_patterns` [INFO] [stderr] --> src/match_expr.rs:61:62 [INFO] [stderr] | [INFO] [stderr] 61 | NormalPattern::EnumPattern(enum_variant, maybe_patterns) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_patterns` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `maybe_guard` [INFO] [stderr] --> src/match_expr.rs:265:49 [INFO] [stderr] | [INFO] [stderr] 265 | Pattern::Normal(normal_pattern, maybe_guard) => match normal_pattern { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_guard` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `literal_expression` [INFO] [stderr] --> src/match_expr.rs:268:44 [INFO] [stderr] | [INFO] [stderr] 268 | NormalPattern::Literal(literal_expression) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_literal_expression` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/state.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | node: &Node, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/state.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `element_type` [INFO] [stderr] --> src/statement.rs:86:37 [INFO] [stderr] | [INFO] [stderr] 86 | TypeKind::SparseStorage(element_type, _) | TypeKind::SparseView(element_type) => { [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 86 | TypeKind::SparseStorage(_element_type, _) | TypeKind::SparseView(_element_type) => { [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: unused variable: `source_collection_type` [INFO] [stderr] --> src/statement.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | source_collection_type: &TypeRef, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_collection_type` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/transfer.rs:262:9 [INFO] [stderr] | [INFO] [stderr] 262 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comment` [INFO] [stderr] --> src/vec.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | comment: &str, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comment` [INFO] [stderr] [INFO] [stderr] warning: method `add_error` is never used [INFO] [stderr] --> src/call.rs:602:8 [INFO] [stderr] | [INFO] [stderr] 39 | impl CodeBuilder<'_> { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 602 | fn add_error(&mut self, error_kind: err::ErrorKind, node: &Node) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `debug_node` is never used [INFO] [stderr] --> src/code_bld.rs:132:8 [INFO] [stderr] | [INFO] [stderr] 73 | impl CodeBuilder<'_> { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 132 | fn debug_node(&self, node: &Node) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `comment` is never used [INFO] [stderr] --> src/ctx.rs:24:19 [INFO] [stderr] | [INFO] [stderr] 10 | impl Context { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 24 | pub(crate) fn comment(&self) -> &str { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `swamp-code-gen` (lib) generated 48 warnings (run `cargo fix --lib -p swamp-code-gen` to apply 3 suggestions) [INFO] [stderr] warning: `swamp-code-gen` (lib test) generated 48 warnings (48 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/swamp_code_gen-4e3a90dea0565407) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-efc3ea02bd277910) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test check_it_compiles ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests swamp_code_gen [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/enum_variants.rs:107:21 [INFO] [stderr] | [INFO] [stderr] 107 | (tuple_expressions.len() == 1), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 107 - (tuple_expressions.len() == 1), [INFO] [stderr] 107 + tuple_expressions.len() == 1, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/reg_pool.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | (self.num_allocated < self.capacity), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 91 - (self.num_allocated < self.capacity), [INFO] [stderr] 91 + self.num_allocated < self.capacity, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stderr] --> src/reg_pool.rs:117:13 [INFO] [stderr] | [INFO] [stderr] 117 | (mark <= self.num_allocated), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 117 - (mark <= self.num_allocated), [INFO] [stderr] 117 + mark <= self.num_allocated, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/assignment.rs - assignment::CodeBuilder<'_>::emit_assignment (line 34) ... ignored [INFO] [stdout] test src/lvalue.rs - lvalue::CodeBuilder<'_>::emit_lvalue_address (line 43) ... ignored [INFO] [stdout] test src/rvalue.rs - rvalue::CodeBuilder<'_>::emit_scalar_rvalue (line 134) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/assignment.rs - assignment::CodeBuilder<'_>::emit_assignment (line 40) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.76s; merged doctests compilation took 0.74s [INFO] running `Command { std: "docker" "inspect" "7444510e81aca896ba2088da72f122e89d14b938ac0e4851a61acfd5c5fca5bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7444510e81aca896ba2088da72f122e89d14b938ac0e4851a61acfd5c5fca5bb", kill_on_drop: false }` [INFO] [stdout] 7444510e81aca896ba2088da72f122e89d14b938ac0e4851a61acfd5c5fca5bb