[INFO] cloning repository https://github.com/ConnorVoisey/lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ConnorVoisey/lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConnorVoisey%2Flang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConnorVoisey%2Flang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ebc272bf51862eb00efa4a7aa0b6591ddf207f2 [INFO] building ConnorVoisey/lang against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConnorVoisey%2Flang" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ConnorVoisey/lang [INFO] finished tweaking git repo https://github.com/ConnorVoisey/lang [INFO] tweaked toml for git repo https://github.com/ConnorVoisey/lang written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ConnorVoisey/lang on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ConnorVoisey/lang 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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quickscope v0.2.0 [INFO] [stderr] Downloaded tracing-chrome v0.7.2 [INFO] [stderr] Downloaded serde v1.0.223 [INFO] [stderr] Downloaded cranelift-srcgen v0.123.2 [INFO] [stderr] Downloaded serde_derive v1.0.223 [INFO] [stderr] Downloaded cranelift-native v0.123.2 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.123.2 [INFO] [stderr] Downloaded cranelift-bitset v0.123.2 [INFO] [stderr] Downloaded cranelift-control v0.123.2 [INFO] [stderr] Downloaded wasmtime-internal-math v36.0.2 [INFO] [stderr] Downloaded tracing-tree v0.4.1 [INFO] [stderr] Downloaded cranelift v0.123.2 [INFO] [stderr] Downloaded cranelift-assembler-x64-meta v0.123.2 [INFO] [stderr] Downloaded cranelift-frontend v0.123.2 [INFO] [stderr] Downloaded cranelift-isle v0.123.2 [INFO] [stderr] Downloaded serde_core v1.0.223 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.123.2 [INFO] [stderr] Downloaded cranelift-assembler-x64 v0.123.2 [INFO] [stderr] Downloaded cranelift-bforest v0.123.2 [INFO] [stderr] Downloaded cranelift-entity v0.123.2 [INFO] [stderr] Downloaded cranelift-codegen v0.123.2 [INFO] [stderr] Downloaded cranelift-module v0.123.2 [INFO] [stderr] Downloaded cranelift-object v0.123.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f785cc79639bac59ddccf7b617dc2e4f5b8f5297ea1ead04860d547651cace91 [INFO] running `Command { std: "docker" "start" "-a" "f785cc79639bac59ddccf7b617dc2e4f5b8f5297ea1ead04860d547651cace91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f785cc79639bac59ddccf7b617dc2e4f5b8f5297ea1ead04860d547651cace91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f785cc79639bac59ddccf7b617dc2e4f5b8f5297ea1ead04860d547651cace91", kill_on_drop: false }` [INFO] [stdout] f785cc79639bac59ddccf7b617dc2e4f5b8f5297ea1ead04860d547651cace91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] c74f1a64c98340d7734be3d3fcaf415ff439cb7e908f05f476661212c0511f65 [INFO] running `Command { std: "docker" "start" "-a" "c74f1a64c98340d7734be3d3fcaf415ff439cb7e908f05f476661212c0511f65", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cranelift-srcgen v0.123.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling cranelift-isle v0.123.2 [INFO] [stderr] Compiling cranelift-codegen-shared v0.123.2 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling cranelift-bitset v0.123.2 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling target-lexicon v0.13.3 [INFO] [stderr] Compiling arbitrary v1.4.2 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling serde_core v1.0.223 [INFO] [stderr] Compiling cranelift-assembler-x64-meta v0.123.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling cranelift-entity v0.123.2 [INFO] [stderr] Compiling owo-colors v4.2.2 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling cranelift-bforest v0.123.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling color-spantrace v0.3.0 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling cranelift-control v0.123.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling regalloc2 v0.12.2 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling cranelift-codegen-meta v0.123.2 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling clap_builder v4.5.51 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling wasmtime-internal-math v36.0.2 [INFO] [stderr] Compiling codespan-reporting v0.12.0 [INFO] [stderr] Compiling quickscope v0.2.0 [INFO] [stderr] Compiling tracing-tree v0.4.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling colored v3.0.0 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling cranelift-assembler-x64 v0.123.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling tracing-chrome v0.7.2 [INFO] [stderr] Compiling cranelift-codegen v0.123.2 [INFO] [stderr] Compiling backtrace v0.3.75 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling tracing-error v0.2.1 [INFO] [stderr] Compiling color-eyre v0.6.5 [INFO] [stderr] Compiling clap v4.5.51 [INFO] [stderr] Compiling cranelift-native v0.123.2 [INFO] [stderr] Compiling cranelift-frontend v0.123.2 [INFO] [stderr] Compiling cranelift-module v0.123.2 [INFO] [stderr] Compiling cranelift-object v0.123.2 [INFO] [stderr] Compiling cranelift v0.123.2 [INFO] [stderr] Compiling lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error::AstParseError` [INFO] [stdout] --> src/ast/ast_expr/struct_create.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | error::AstParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StructLayout` and `self` [INFO] [stdout] --> src/rvsdg/builder.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | struct_layout::{self, StructLayout}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types/mod.rs:296:44 [INFO] [stdout] | [INFO] [stdout] 295 | ... params: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 296 | ... param_symbols: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_count` [INFO] [stdout] --> src/ast/ast_enum.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let field_count = variants.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/ast/ast_expr/struct_create.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | t => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cached_node` [INFO] [stdout] --> src/rvsdg/builder.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | if let Some(&cached_node) = self.value_cache.get(&key) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cached_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/rvsdg/builder.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | let ty = value.node; // Placeholder - we'd need to track types properly [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rvsdg/graphviz.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | _ => ("white", "rounded"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rvsdg/graphviz.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 100 | NodeKind::Lambda { .. } | NodeKind::Gamma { .. } | NodeKind::Theta { .. } => { [INFO] [stdout] | ------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 103 | NodeKind::Const { .. } => ("lightgreen", "filled,rounded"), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 104 | NodeKind::Binary { .. } | NodeKind::Unary { .. } => ("lightyellow", "filled,rounded"), [INFO] [stdout] | ------------------------------------------------ matches some of the same values [INFO] [stdout] 105 | NodeKind::Call { .. } => ("orange", "filled,rounded"), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => ("white", "rounded"), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outer_state` [INFO] [stdout] --> src/rvsdg/lower.rs:816:13 [INFO] [stdout] | [INFO] [stdout] 816 | let outer_state = self.current_state; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured` [INFO] [stdout] --> src/rvsdg/optimize.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | captured, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `captured: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/rvsdg/optimize.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | condition, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `condition: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_values` [INFO] [stdout] --> src/rvsdg/optimize.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | initial_values, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `initial_values: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call_conv` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | call_conv: CallConv, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_call_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:459:17 [INFO] [stdout] | [INFO] [stdout] 459 | state, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `state: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:779:17 [INFO] [stdout] | [INFO] [stdout] 779 | ty, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_id` [INFO] [stdout] --> src/struct_layout/mod.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | TypeKind::Enum(enum_id) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_n_token` is never used [INFO] [stdout] --> src/ast/mod.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Ast { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn peek_n_token(&self, amount: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StructFieldAddr` is never constructed [INFO] [stdout] --> src/rvsdg/mod.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 383 | pub(crate) enum NodeKeyKind { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 394 | StructFieldAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeKeyKind` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fb` and `region_id` are never read [INFO] [stdout] --> src/rvsdg/builder.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct RegionBuilder<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 57 | fb: &'a mut FunctionBuilder<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 58 | region_id: RegionId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_function` is never read [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct RvsdgToCranelift<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | current_function: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_map` is never read [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct FunctionCompiler<'a, 'b> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | block_map: FxHashMap>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_struct_id_from_ptr` is never used [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:811:8 [INFO] [stdout] | [INFO] [stdout] 232 | impl<'a, 'b> FunctionCompiler<'a, 'b> { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | fn get_struct_id_from_ptr(&self, ptr_value_id: ValueId) -> color_eyre::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rvsdg/display.rs:289:17 [INFO] [stdout] | [INFO] [stdout] 289 | / writeln!( [INFO] [stdout] 290 | | out, [INFO] [stdout] 291 | | "region_result:{} (value: {})", [INFO] [stdout] 292 | | region_str, [INFO] [stdout] 293 | | value_name(func, value.node, value.output_index as usize), [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 289 | let _ = writeln!( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "c74f1a64c98340d7734be3d3fcaf415ff439cb7e908f05f476661212c0511f65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c74f1a64c98340d7734be3d3fcaf415ff439cb7e908f05f476661212c0511f65", kill_on_drop: false }` [INFO] [stdout] c74f1a64c98340d7734be3d3fcaf415ff439cb7e908f05f476661212c0511f65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] e165e1ca514b4f42dacd17e355276afcee31311855874acfb068ceeadfdfe4d3 [INFO] running `Command { std: "docker" "start" "-a" "e165e1ca514b4f42dacd17e355276afcee31311855874acfb068ceeadfdfe4d3", kill_on_drop: false }` [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stdout] warning: unused import: `error::AstParseError` [INFO] [stdout] --> src/ast/ast_expr/struct_create.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | error::AstParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StructLayout` and `self` [INFO] [stdout] --> src/rvsdg/builder.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | struct_layout::{self, StructLayout}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types/mod.rs:296:44 [INFO] [stdout] | [INFO] [stdout] 295 | ... params: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 296 | ... param_symbols: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_count` [INFO] [stdout] --> src/ast/ast_enum.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let field_count = variants.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/ast/ast_expr/struct_create.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | t => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cached_node` [INFO] [stdout] --> src/rvsdg/builder.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | if let Some(&cached_node) = self.value_cache.get(&key) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cached_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/rvsdg/builder.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | let ty = value.node; // Placeholder - we'd need to track types properly [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rvsdg/graphviz.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | _ => ("white", "rounded"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rvsdg/graphviz.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 100 | NodeKind::Lambda { .. } | NodeKind::Gamma { .. } | NodeKind::Theta { .. } => { [INFO] [stdout] | ------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 103 | NodeKind::Const { .. } => ("lightgreen", "filled,rounded"), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 104 | NodeKind::Binary { .. } | NodeKind::Unary { .. } => ("lightyellow", "filled,rounded"), [INFO] [stdout] | ------------------------------------------------ matches some of the same values [INFO] [stdout] 105 | NodeKind::Call { .. } => ("orange", "filled,rounded"), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => ("white", "rounded"), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outer_state` [INFO] [stdout] --> src/rvsdg/lower.rs:816:13 [INFO] [stdout] | [INFO] [stdout] 816 | let outer_state = self.current_state; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured` [INFO] [stdout] --> src/rvsdg/optimize.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | captured, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `captured: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/rvsdg/optimize.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | condition, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `condition: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_values` [INFO] [stdout] --> src/rvsdg/optimize.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | initial_values, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `initial_values: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call_conv` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | call_conv: CallConv, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_call_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:459:17 [INFO] [stdout] | [INFO] [stdout] 459 | state, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `state: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:779:17 [INFO] [stdout] | [INFO] [stdout] 779 | ty, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_id` [INFO] [stdout] --> src/struct_layout/mod.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | TypeKind::Enum(enum_id) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_n_token` is never used [INFO] [stdout] --> src/ast/mod.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Ast { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn peek_n_token(&self, amount: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StructFieldAddr` is never constructed [INFO] [stdout] --> src/rvsdg/mod.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 383 | pub(crate) enum NodeKeyKind { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 394 | StructFieldAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeKeyKind` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fb` and `region_id` are never read [INFO] [stdout] --> src/rvsdg/builder.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct RegionBuilder<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 57 | fb: &'a mut FunctionBuilder<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 58 | region_id: RegionId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_function` is never read [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct RvsdgToCranelift<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | current_function: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_map` is never read [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct FunctionCompiler<'a, 'b> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | block_map: FxHashMap>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_struct_id_from_ptr` is never used [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:811:8 [INFO] [stdout] | [INFO] [stdout] 232 | impl<'a, 'b> FunctionCompiler<'a, 'b> { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | fn get_struct_id_from_ptr(&self, ptr_value_id: ValueId) -> color_eyre::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rvsdg/display.rs:289:17 [INFO] [stdout] | [INFO] [stdout] 289 | / writeln!( [INFO] [stdout] 290 | | out, [INFO] [stdout] 291 | | "region_result:{} (value: {})", [INFO] [stdout] 292 | | region_str, [INFO] [stdout] 293 | | value_name(func, value.node, value.output_index as usize), [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 289 | let _ = writeln!( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error::AstParseError` [INFO] [stdout] --> src/ast/ast_expr/struct_create.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | error::AstParseError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenKind`, `Token`, and `VarType` [INFO] [stdout] --> src/ast/ast_import.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | ast::{Ast, VarType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | interner::{Interner, SharedInterner}, [INFO] [stdout] 73 | lexer::{Lexer, Token, TokenKind}, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pretty_assertions::assert_eq` [INFO] [stdout] --> src/ast/ast_import.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | use pretty_assertions::assert_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/ast/ast_struct.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | lexer::{Lexer, Token, TokenKind}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StructLayout` and `self` [INFO] [stdout] --> src/rvsdg/builder.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | struct_layout::{self, StructLayout}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/rvsdg/optimize.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/types/mod.rs:296:44 [INFO] [stdout] | [INFO] [stdout] 295 | ... params: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 296 | ... param_symbols: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `field_count` [INFO] [stdout] --> src/ast/ast_enum.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let field_count = variants.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_field_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/ast/ast_expr/struct_create.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | t => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ast/ast_import.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let i = shared_interner.write(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args_mapped` [INFO] [stdout] --> src/ast/ast_import.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let args_mapped = args [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_args_mapped` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ast/ast_struct.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let mut i = shared_interner.write(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cached_node` [INFO] [stdout] --> src/rvsdg/builder.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | if let Some(&cached_node) = self.value_cache.get(&key) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cached_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/rvsdg/builder.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | let ty = value.node; // Placeholder - we'd need to track types properly [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/rvsdg/graphviz.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | _ => ("white", "rounded"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/rvsdg/graphviz.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 100 | NodeKind::Lambda { .. } | NodeKind::Gamma { .. } | NodeKind::Theta { .. } => { [INFO] [stdout] | ------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 103 | NodeKind::Const { .. } => ("lightgreen", "filled,rounded"), [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] 104 | NodeKind::Binary { .. } | NodeKind::Unary { .. } => ("lightyellow", "filled,rounded"), [INFO] [stdout] | ------------------------------------------------ matches some of the same values [INFO] [stdout] 105 | NodeKind::Call { .. } => ("orange", "filled,rounded"), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => ("white", "rounded"), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outer_state` [INFO] [stdout] --> src/rvsdg/lower.rs:816:13 [INFO] [stdout] | [INFO] [stdout] 816 | let outer_state = self.current_state; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outer_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captured` [INFO] [stdout] --> src/rvsdg/optimize.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | captured, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `captured: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/rvsdg/optimize.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | condition, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `condition: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_values` [INFO] [stdout] --> src/rvsdg/optimize.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | initial_values, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try ignoring the field: `initial_values: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call_conv` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | call_conv: CallConv, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_call_conv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:459:17 [INFO] [stdout] | [INFO] [stdout] 459 | state, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `state: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:779:17 [INFO] [stdout] | [INFO] [stdout] 779 | ty, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_id` [INFO] [stdout] --> src/struct_layout/mod.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | TypeKind::Enum(enum_id) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/type_checker/mod.rs:2238:13 [INFO] [stdout] | [INFO] [stdout] 2238 | let result = TypeCheckTestCase::from_source( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_n_token` is never used [INFO] [stdout] --> src/ast/mod.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Ast { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn peek_n_token(&self, amount: usize) -> Option<&Token> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StructFieldAddr` is never constructed [INFO] [stdout] --> src/rvsdg/mod.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 383 | pub(crate) enum NodeKeyKind { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 394 | StructFieldAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeKeyKind` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fb` and `region_id` are never read [INFO] [stdout] --> src/rvsdg/builder.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct RegionBuilder<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 57 | fb: &'a mut FunctionBuilder<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 58 | region_id: RegionId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_function` is never read [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct RvsdgToCranelift<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | current_function: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_map` is never read [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct FunctionCompiler<'a, 'b> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | block_map: FxHashMap>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_struct_id_from_ptr` is never used [INFO] [stdout] --> src/rvsdg/to_cranelift.rs:811:8 [INFO] [stdout] | [INFO] [stdout] 232 | impl<'a, 'b> FunctionCompiler<'a, 'b> { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 811 | fn get_struct_id_from_ptr(&self, ptr_value_id: ValueId) -> color_eyre::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ast` and `arena` are never read [INFO] [stdout] --> src/type_checker/mod.rs:812:9 [INFO] [stdout] | [INFO] [stdout] 810 | struct TypeCheckResult { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 811 | errors: Vec, [INFO] [stdout] 812 | ast: Ast, [INFO] [stdout] | ^^^ [INFO] [stdout] 813 | arena: TypeArena, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/rvsdg/display.rs:289:17 [INFO] [stdout] | [INFO] [stdout] 289 | / writeln!( [INFO] [stdout] 290 | | out, [INFO] [stdout] 291 | | "region_result:{} (value: {})", [INFO] [stdout] 292 | | region_str, [INFO] [stdout] 293 | | value_name(func, value.node, value.output_index as usize), [INFO] [stdout] 294 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 289 | let _ = writeln!( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.75s [INFO] running `Command { std: "docker" "inspect" "e165e1ca514b4f42dacd17e355276afcee31311855874acfb068ceeadfdfe4d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e165e1ca514b4f42dacd17e355276afcee31311855874acfb068ceeadfdfe4d3", kill_on_drop: false }` [INFO] [stdout] e165e1ca514b4f42dacd17e355276afcee31311855874acfb068ceeadfdfe4d3