[INFO] cloning repository https://github.com/szkabaroli/ark [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/szkabaroli/ark" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszkabaroli%2Fark", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszkabaroli%2Fark'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e124b5b0d8bd2340f9bd4b996b526102b591ed8 [INFO] testing szkabaroli/ark against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fszkabaroli%2Fark" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/szkabaroli/ark on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/szkabaroli/ark [INFO] finished tweaking git repo https://github.com/szkabaroli/ark [INFO] tweaked toml for git repo https://github.com/szkabaroli/ark written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/szkabaroli/ark 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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-frontend/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-ast-lowering/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-hir/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-parser/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-codegen-llvm/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-codegen-wasm/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/compiler/arkc-bytecode/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lsp-server v0.7.6 [INFO] [stderr] Downloaded llvm-sys v170.1.0 [INFO] [stderr] Downloaded wasm-encoder v0.226.0 [INFO] [stderr] Downloaded wasmparser v0.226.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20439cd82c924277d12d5d845e20fbacc4e339ee33960cbddf959092a37faacb [INFO] running `Command { std: "docker" "start" "-a" "20439cd82c924277d12d5d845e20fbacc4e339ee33960cbddf959092a37faacb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20439cd82c924277d12d5d845e20fbacc4e339ee33960cbddf959092a37faacb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20439cd82c924277d12d5d845e20fbacc4e339ee33960cbddf959092a37faacb", kill_on_drop: false }` [INFO] [stdout] 20439cd82c924277d12d5d845e20fbacc4e339ee33960cbddf959092a37faacb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbce1c74c10794db203c138f7b017a0ffa23f0d90dba5d02fe1207c2a19deff7 [INFO] running `Command { std: "docker" "start" "-a" "cbce1c74c10794db203c138f7b017a0ffa23f0d90dba5d02fe1207c2a19deff7", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-frontend/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-ast-lowering/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-hir/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-parser/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-codegen-llvm/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-codegen-wasm/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/compiler/arkc-bytecode/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling virtue v0.0.13 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Compiling parser v0.0.2 (/opt/rustwide/workdir/compiler/arkc-parser) [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> compiler/arkc-parser/src/ast/visit.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn walk_interface(v: &mut V, s: &InterfaceItem) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> compiler/arkc-parser/src/ast/visit.rs:100:46 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn walk_interface(v: &mut V, s: &InterfaceItem) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> compiler/arkc-parser/src/ast/visit.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn walk_global(v: &mut V, s: &GlobalItem) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> compiler/arkc-parser/src/ast/visit.rs:104:43 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn walk_global(v: &mut V, s: &GlobalItem) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> compiler/arkc-parser/src/ast/visit.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn walk_type(v: &mut V, t: &TypeData) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling bincode_derive v2.0.0-rc.3 [INFO] [stdout] warning: unused variable: `modifiers` [INFO] [stdout] --> compiler/arkc-parser/src/parser.rs:543:30 [INFO] [stdout] | [INFO] [stdout] 543 | fn parse_flow(&mut self, modifiers: Option) -> Arc { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifiers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifiers` [INFO] [stdout] --> compiler/arkc-parser/src/parser.rs:607:34 [INFO] [stdout] | [INFO] [stdout] 607 | fn parse_function(&mut self, modifiers: Option) -> Arc { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifiers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> compiler/arkc-parser/src/parser.rs:977:25 [INFO] [stdout] | [INFO] [stdout] 977 | let right = self.parse_flow_binary_expr(right_precedence); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stdout] warning: method `dump_expr_lit_bool` is never used [INFO] [stdout] --> compiler/arkc-parser/src/ast/dump.rs:496:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl AstDumper { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 496 | fn dump_expr_lit_bool(&mut self, lit: &ExprLitBoolType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FunctionOrStmt` is never used [INFO] [stdout] --> compiler/arkc-parser/src/parser.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | enum FunctionOrStmt { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_string_to_i64` is never used [INFO] [stdout] --> compiler/arkc-parser/src/parser.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn parse_string_to_i64(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling regex-lite v0.1.5 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling memchr v2.7.3 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling wasm-encoder v0.226.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling wasmparser v0.226.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling llvm-sys v170.1.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling clap_lex v0.7.1 [INFO] [stderr] Compiling inkwell v0.4.0 [INFO] [stderr] Compiling leb128fmt v0.1.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling clap_builder v4.5.7 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling clap_derive v4.5.5 [INFO] [stderr] Compiling inkwell_internals v0.9.0 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling clap v4.5.7 [INFO] [stderr] Compiling bincode v2.0.0-rc.3 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling lsp-types v0.94.1 [INFO] [stderr] Compiling lsp-server v0.7.6 [INFO] [stderr] Compiling arkc-hir v0.0.2 (/opt/rustwide/workdir/compiler/arkc-hir) [INFO] [stderr] Compiling arkc-bytecode v0.0.2 (/opt/rustwide/workdir/compiler/arkc-bytecode) [INFO] [stdout] warning: field `writer` is never read [INFO] [stdout] --> compiler/arkc-bytecode/src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BytecodeBuilder { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 6 | writer: BytecodeWriter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> compiler/arkc-bytecode/src/writer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct BytecodeWriter { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 2 | code: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decode` and `Encode` [INFO] [stdout] --> compiler/arkc-hir/src/hir_map.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use bincode::{Decode, Encode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> compiler/arkc-hir/src/hir/hir_node.rs:325:13 [INFO] [stdout] | [INFO] [stdout] 324 | PatternKind::Ident(ref ident) => Some(ident.name.clone()), [INFO] [stdout] | ----------------------------- matches all the relevant values [INFO] [stdout] 325 | _ => None, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> compiler/arkc-hir/src/hir/visit.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn walk_fn_decl(v: &mut V, f: &FnDeclaration) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> compiler/arkc-hir/src/hir/visit.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn walk_fn_decl(v: &mut V, f: &FnDeclaration) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> compiler/arkc-hir/src/hir/visit.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | ExprKind::Path(ref path) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> compiler/arkc-hir/src/hir/visit.rs:192:27 [INFO] [stdout] | [INFO] [stdout] 192 | ExprKind::Dot(ref value) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sid` [INFO] [stdout] --> compiler/arkc-hir/src/ty.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 45 | Type::Struct(sid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> compiler/arkc-hir/src/hir/hir_node.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 78 | impl VarAccess { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | fn empty() -> VarAccess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hir_map` and `spans` are never read [INFO] [stdout] --> compiler/arkc-hir/src/hir/module.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Module { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 32 | #[serde(skip)] [INFO] [stdout] 33 | pub(crate) hir_map: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | #[serde(skip)] [INFO] [stdout] 35 | pub(crate) spans: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Module` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ast` is never read [INFO] [stdout] --> compiler/arkc-hir/src/parsety.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ParsedType { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | #[serde(skip_deserializing, skip_serializing)] [INFO] [stdout] 11 | ast: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParsedType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling arkc-ast-lowering v0.0.2 (/opt/rustwide/workdir/compiler/arkc-ast-lowering) [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> compiler/arkc-ast-lowering/src/lowering.rs:87:38 [INFO] [stdout] | [INFO] [stdout] 87 | ast::TypeData::Unknown { id, span } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> compiler/arkc-ast-lowering/src/lowering.rs:87:42 [INFO] [stdout] | [INFO] [stdout] 87 | ast::TypeData::Unknown { id, span } => todo!(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling arkc-frontend v0.0.2 (/opt/rustwide/workdir/compiler/arkc-frontend) [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> compiler/arkc-frontend/src/compilation/modules.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{OnceCell, RefCell}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hir::HirId` and `ty` [INFO] [stdout] --> compiler/arkc-frontend/src/sema.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use arkc_hir::{hir::HirId, ty}; [INFO] [stdout] | ^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::SourceFileId` [INFO] [stdout] --> compiler/arkc-frontend/src/error/diag.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use parser::SourceFileId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::SourceFileId` [INFO] [stdout] --> compiler/arkc-frontend/src/error/msg.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use parser::SourceFileId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diag::Diagnostic` [INFO] [stdout] --> compiler/arkc-frontend/src/error.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use diag::Diagnostic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> compiler/arkc-frontend/src/fndefcheck.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> compiler/arkc-frontend/src/program_parser.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> compiler/arkc-frontend/src/program_parser.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> ProgramParser<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 21 | pub fn new(sa: &'a mut Sema) -> ProgramParser { [INFO] [stdout] | ^^^^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow` and `cell::RefCell` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, cell::RefCell, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> compiler/arkc-frontend/src/stdlib_lookup.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | hir::{self, HirId}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sema` [INFO] [stdout] --> compiler/arkc-frontend/src/access.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{compilation::ModuleId, Sema}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sema` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:1:80 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{error::ErrorMessage, operator_registry::Operator, sym::SymbolKind, Sema}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arkc_hir::hir::FnDefinition` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use arkc_hir::hir::FnDefinition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 86 | panic!("{:?}", msg); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 87 | // sa.report(node.span, msg); [INFO] [stdout] 88 | Type::Error [INFO] [stdout] | ^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 94 | panic!("{:?}", msg); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 95 | // sa.report(node.span, msg); [INFO] [stdout] 96 | Type::Error [INFO] [stdout] | ^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 138 | panic!("{:?}", msg); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 139 | //sa.report(basic.span, msg); [INFO] [stdout] 140 | Err(()) [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 268 | panic!("{:?}", msg); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 271 | ty::Type::Error [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 98 | panic!("error: {:?}", msg); [INFO] [stdout] | -------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 102 | ty::Type::Error [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 125 | panic!("{:?}", ErrorMessage::UnknownIdentifier(id.name.clone())); [INFO] [stdout] | ---------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 131 | ty::Type::Error [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 134 | panic!("{:?}", ErrorMessage::ValueExpected); [INFO] [stdout] | ------------------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 137 | ty::Type::Error [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/literals.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 50 | panic!("{:?}", ErrorMessage::UnknownSuffix); [INFO] [stdout] | ------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 51 | // sa.report(file, span, ErrorMessage::UnknownSuffix); [INFO] [stdout] 52 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/literals.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 96 | panic!("{:?}", ErrorMessage::NumberLimitOverflow); [INFO] [stdout] | ------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 97 | //sa.report(file, e.span, ErrorMessage::NumberLimitOverflow); [INFO] [stdout] 98 | return (ty, 0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/literals.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 160 | panic!("{:?}", ErrorMessage::UnknownSuffix); [INFO] [stdout] | ------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 161 | //sa.report(span, ErrorMessage::UnknownSuffix); [INFO] [stdout] 162 | ty::Type::Primitive(ty::PrimitiveType::Float64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/stmt.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 36 | panic!("{:?}", ErrorMessage::VarNeedsTypeOrExpression); [INFO] [stdout] | ------------------------------------------------------ any code following this expression is unreachable [INFO] [stdout] 37 | //ck.sa.report( s.span, ErrorMessage::VarNeedsTypeOrExpression); [INFO] [stdout] 38 | return; [INFO] [stdout] | ^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> compiler/arkc-frontend/src/strudefcheck.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> compiler/arkc-frontend/src/fndefcheck.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let mut param_types: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> compiler/arkc-frontend/src/fndefcheck.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | func: &hir::FnDeclaration, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_id` [INFO] [stdout] --> compiler/arkc-frontend/src/program_parser.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | module_id: ModuleId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basic` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | basic: &hir::BasicType, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_basic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | sa: &Sema, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_id` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | module_id: ModuleId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basic` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | basic: &hir::BasicType, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_basic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `allow_self` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | allow_self: AllowSelf, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allow_self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | sa: &Sema, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alias_map` [INFO] [stdout] --> compiler/arkc-frontend/src/readty.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | alias_map: AliasReplacement, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alias_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> compiler/arkc-frontend/src/access.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn func_accessible_from(file: &hir::File, func_id: hir::HirId, module_id: ModuleId) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_id` [INFO] [stdout] --> compiler/arkc-frontend/src/access.rs:5:47 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn func_accessible_from(file: &hir::File, func_id: hir::HirId, module_id: ModuleId) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_id` [INFO] [stdout] --> compiler/arkc-frontend/src/access.rs:5:68 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn func_accessible_from(file: &hir::File, func_id: hir::HirId, module_id: ModuleId) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr_dot` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | } else if let Some(expr_dot) = expr.callee.to_dot() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expr_dot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let ty = check_expr(ck, &arg.expr, Box::new(ty::Type::Any)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let msg = ErrorMessage::ExpectedSomeIdentifier; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `struct_id` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:152:33 [INFO] [stdout] | [INFO] [stdout] 152 | Some(SymbolKind::Struct(struct_id)) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_struct_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | e: &hir::FnCall, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | arguments: CallArguments, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `struct_id` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:406:33 [INFO] [stdout] | [INFO] [stdout] 406 | Some(SymbolKind::Struct(struct_id)) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_struct_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_ty` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/call.rs:392:5 [INFO] [stdout] | [INFO] [stdout] 392 | expected_ty: Box, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_ty` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | expected_ty: Box, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:153:27 [INFO] [stdout] | [INFO] [stdout] 153 | let (ty, int, float) = check_lit_int(value, false, expected_ty); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:160:22 [INFO] [stdout] | [INFO] [stdout] 160 | let (ty, value) = check_lit_float(lit.hir_id, value, false); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:165:32 [INFO] [stdout] | [INFO] [stdout] 165 | hir::LiteralKind::Bool(value) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_ty` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | expected_ty: Box, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/expr.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | e: &hir::BinOp, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 272 | hir::IdentType::Var(..) => ident_type, [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] 273 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:284:5 [INFO] [stdout] | [INFO] [stdout] 284 | callee: &FnDeclaration, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:316:25 [INFO] [stdout] | [INFO] [stdout] 316 | if let Some(ref name) = arg.name { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variadic_param` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | if let Some(variadic_param) = variadic_param { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variadic_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:357:17 [INFO] [stdout] | [INFO] [stdout] 357 | for arg in &args.arguments[no_regular_params..] { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ck` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:305:5 [INFO] [stdout] | [INFO] [stdout] 305 | ck: &TypeCheck, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_params` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:309:5 [INFO] [stdout] | [INFO] [stdout] 309 | type_params: &ty::TypeArray, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `self_ty` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | self_ty: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extra_specialization` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | mut extra_specialization: S, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extra_specialization` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 311 | mut extra_specialization: S, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit_id` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/literals.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | lit_id: HirId, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lit_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err_pos` [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | Err(err_pos) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_err_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | let (mut types, mut analysis_map) = { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> compiler/arkc-frontend/src/lib.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn emit_ast(sa: &Sema, filter: &str) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> compiler/arkc-frontend/src/lib.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn emit_ast(sa: &Sema, filter: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_pattern_match` is never used [INFO] [stdout] --> compiler/arkc-frontend/src/lib.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn function_pattern_match(name: &str, pattern: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `module_id` is never read [INFO] [stdout] --> compiler/arkc-frontend/src/resolve.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 81 | struct TopLevelDeclaration<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 82 | sa: &'a mut Sema, [INFO] [stdout] 83 | module_id: ModuleId, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `param_types` is never read [INFO] [stdout] --> compiler/arkc-frontend/src/typecheck/function.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct TypeCheck<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 144 | pub param_types: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling arkc-codegen-llvm v0.0.2 (/opt/rustwide/workdir/compiler/arkc-codegen-llvm) [INFO] [stdout] warning: unused import: `arkc_frontend::compilation::Compilation` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use arkc_frontend::compilation::Compilation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::ast` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use parser::ast; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `inkwell::passes::PassManager` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use inkwell::passes::PassManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyValue` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | use inkwell::values::{AnyValue, BasicValue, BasicValueEnum, FunctionValue, InstructionOpcode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hir::File` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::hir::File; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimization_level` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let optimization_level = to_optimization_level(optimization_argument); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimization_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_level` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let size_level = to_size_level(optimization_argument); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | hir::ElemKind::Extern(p) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:176:39 [INFO] [stdout] | [INFO] [stdout] 176 | hir::ElemKind::Struct(s) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f32_type` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | let f32_type = self.context.f32_type(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_f32_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `arkc_hir::hir::ExprKind::Path(_)` and `arkc_hir::hir::ExprKind::Bin(_, _, _)` not covered [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:314:18 [INFO] [stdout] | [INFO] [stdout] 314 | Ok(match *expr.kind { [INFO] [stdout] | ^^^^^^^^^^ patterns `arkc_hir::hir::ExprKind::Path(_)` and `arkc_hir::hir::ExprKind::Bin(_, _, _)` not covered [INFO] [stdout] | [INFO] [stdout] note: `arkc_hir::hir::ExprKind` defined here [INFO] [stdout] --> /opt/rustwide/workdir/compiler/arkc-hir/src/hir/hir_node.rs:410:1 [INFO] [stdout] | [INFO] [stdout] 410 | pub enum ExprKind { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | Path(ExprPath), [INFO] [stdout] | ---- not covered [INFO] [stdout] 418 | Bin(BinOp, Expr, Expr), [INFO] [stdout] | --- not covered [INFO] [stdout] = note: the matched value is of type `arkc_hir::hir::ExprKind` [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms [INFO] [stdout] | [INFO] [stdout] 361 ~ hir::ExprKind::Ident(ref ident) => self.codegen_identifier(ident, builder)?, [INFO] [stdout] 362 ~ arkc_hir::hir::ExprKind::Path(_) | arkc_hir::hir::ExprKind::Bin(_, _, _) => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fn_value` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:409:17 [INFO] [stdout] | [INFO] [stdout] 409 | let fn_value = self.module.add_function(&name, fn_type, None); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fn_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:512:13 [INFO] [stdout] | [INFO] [stdout] 471 | hir::PatternKind::Ident(ref id) => { [INFO] [stdout] | ------------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 512 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 519 | builder: &Builder, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:584:13 [INFO] [stdout] | [INFO] [stdout] 552 | hir::IdentType::Var(var_id) => { [INFO] [stdout] | --------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 584 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:597:28 [INFO] [stdout] | [INFO] [stdout] 597 | fn codegen_call(&self, call: &hir::FnCall, builder: &Builder) -> Result, ()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `builder` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:597:48 [INFO] [stdout] | [INFO] [stdout] 597 | fn codegen_call(&self, call: &hir::FnCall, builder: &Builder) -> Result, ()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:679:13 [INFO] [stdout] | [INFO] [stdout] 679 | let value = { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hir` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:669:32 [INFO] [stdout] | [INFO] [stdout] 669 | fn codegen_main(&mut self, hir: &hir::FnDeclaration) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `optimization_level` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:718:13 [INFO] [stdout] | [INFO] [stdout] 718 | let optimization_level = to_optimization_level(optimization_argument); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_optimization_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_level` [INFO] [stdout] --> compiler/arkc-codegen-llvm/src/lib.rs:719:13 [INFO] [stdout] | [INFO] [stdout] 719 | let size_level = to_size_level(optimization_argument); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `arkc-codegen-llvm` (lib) due to 1 previous error; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "cbce1c74c10794db203c138f7b017a0ffa23f0d90dba5d02fe1207c2a19deff7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbce1c74c10794db203c138f7b017a0ffa23f0d90dba5d02fe1207c2a19deff7", kill_on_drop: false }` [INFO] [stdout] cbce1c74c10794db203c138f7b017a0ffa23f0d90dba5d02fe1207c2a19deff7