[INFO] cloning repository https://github.com/softwaresale/a-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/softwaresale/a-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoftwaresale%2Fa-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoftwaresale%2Fa-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b06a5a4e253fa21e062cdcac506059e42874c7cb [INFO] building softwaresale/a-lang against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoftwaresale%2Fa-lang" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/softwaresale/a-lang on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/softwaresale/a-lang [INFO] finished tweaking git repo https://github.com/softwaresale/a-lang [INFO] tweaked toml for git repo https://github.com/softwaresale/a-lang written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/softwaresale/a-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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1446d5f6ab3f436d6e1353cd6992c8b19d89845d97317d643e9a915d211b1f9 [INFO] running `Command { std: "docker" "start" "-a" "c1446d5f6ab3f436d6e1353cd6992c8b19d89845d97317d643e9a915d211b1f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1446d5f6ab3f436d6e1353cd6992c8b19d89845d97317d643e9a915d211b1f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1446d5f6ab3f436d6e1353cd6992c8b19d89845d97317d643e9a915d211b1f9", kill_on_drop: false }` [INFO] [stdout] c1446d5f6ab3f436d6e1353cd6992c8b19d89845d97317d643e9a915d211b1f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e74a75c7c669bb03452330e623d9e7b40375a08a04a971d4cd0f7b831f98c71 [INFO] running `Command { std: "docker" "start" "-a" "0e74a75c7c669bb03452330e623d9e7b40375a08a04a971d4cd0f7b831f98c71", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling clap_lex v0.6.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling anstream v0.6.5 [INFO] [stderr] Compiling clap_builder v4.4.11 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling clap v4.4.11 [INFO] [stderr] Compiling a-lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `lift_types` [INFO] [stdout] --> src/analysis.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod lift_types; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `lift_types`, create file "src/analysis/lift_types.rs" or "src/analysis/lift_types/mod.rs" [INFO] [stdout] = note: if there is a `mod lift_types` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `type_infer` [INFO] [stdout] --> src/analysis.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod type_infer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `type_infer`, create file "src/analysis/type_infer.rs" or "src/analysis/type_infer/mod.rs" [INFO] [stdout] = note: if there is a `mod type_infer` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `type_infer` [INFO] [stdout] --> src/analysis.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod type_infer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `type_infer`, create file "src/analysis/type_infer.rs" or "src/analysis/type_infer/mod.rs" [INFO] [stdout] = note: if there is a `mod type_infer` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `type_infer` is defined multiple times [INFO] [stdout] --> src/analysis.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod type_infer; [INFO] [stdout] | --------------- previous definition of the module `type_infer` here [INFO] [stdout] ... [INFO] [stdout] 7 | mod type_infer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `type_infer` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `type_infer` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `type_check` is defined multiple times [INFO] [stdout] --> src/analysis.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 6 | mod type_check; [INFO] [stdout] | --------------- previous definition of the module `type_check` here [INFO] [stdout] 7 | mod type_infer; [INFO] [stdout] 8 | mod type_check; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `type_check` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `type_check` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `token` is private [INFO] [stdout] --> src/operators.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::token::{Token, TokenKind}; [INFO] [stdout] | ^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `token` is defined here [INFO] [stdout] --> src/frontend.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod token; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `token` is private [INFO] [stdout] --> src/operators.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frontend::token::{Token, TokenKind}; [INFO] [stdout] | ^^^^^ --------- enum `TokenKind` is not publicly re-exported [INFO] [stdout] | | [INFO] [stdout] | private module [INFO] [stdout] | [INFO] [stdout] note: the module `token` is defined here [INFO] [stdout] --> src/frontend.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod token; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive` and `Range` [INFO] [stdout] --> src/frontend/input.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SourceLocation` and `SourceRange` [INFO] [stdout] --> src/frontend/input.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::frontend::location::{SourceLocation, SourceRange}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExitStatus` [INFO] [stdout] --> src/main.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use std::process::{ExitCode, ExitStatus}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&_` [INFO] [stdout] --> src/frontend/parser/expr.rs:75:49 [INFO] [stdout] | [INFO] [stdout] 75 | if !lookahead.as_ref().is_some_and(|op| op.precedence() >= min_prec) { [INFO] [stdout] | ^^ ---------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the type for type parameter `T` is specified [INFO] [stdout] | [INFO] [stdout] 75 | if !lookahead.as_ref().is_some_and(|op: &T| op.precedence() >= min_prec) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&_` [INFO] [stdout] --> src/frontend/parser/expr.rs:88:50 [INFO] [stdout] | [INFO] [stdout] 88 | while inner_op.as_ref().is_some_and(|inner_op| inner_op.precedence() > op.precedence()) { [INFO] [stdout] | ^^^^^^^^ ---------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the type for type parameter `T` is specified [INFO] [stdout] | [INFO] [stdout] 88 | while inner_op.as_ref().is_some_and(|inner_op: &T| inner_op.precedence() > op.precedence()) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | fn visit_compilation_unit(&self, node: CompilationUnitNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | fn visit_compilation_unit(&self, node: CompilationUnitNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | fn visit_function_declaration(&self, node: FunctionDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:23:73 [INFO] [stdout] | [INFO] [stdout] 23 | fn visit_function_declaration(&self, node: FunctionDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:27:40 [INFO] [stdout] | [INFO] [stdout] 27 | fn visit_object_declaration(&self, node: ObjectDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:27:69 [INFO] [stdout] | [INFO] [stdout] 27 | fn visit_object_declaration(&self, node: ObjectDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | fn visit_field_declaration(&self, node: FieldDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:31:67 [INFO] [stdout] | [INFO] [stdout] 31 | fn visit_field_declaration(&self, node: FieldDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:35:38 [INFO] [stdout] | [INFO] [stdout] 35 | fn visit_composition_spec(&self, node: CompositionSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:35:65 [INFO] [stdout] | [INFO] [stdout] 35 | fn visit_composition_spec(&self, node: CompositionSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:39:42 [INFO] [stdout] | [INFO] [stdout] 39 | fn visit_variable_declaration(&self, node: VariableDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:39:73 [INFO] [stdout] | [INFO] [stdout] 39 | fn visit_variable_declaration(&self, node: VariableDeclarationNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | fn visit_param(&self, node: ParamNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | fn visit_param(&self, node: ParamNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmts` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | fn visit_block(&self, stmts: Vec>, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stmts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | fn visit_block(&self, stmts: Vec>, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn visit_assignment(&self, node: AssignmentNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:51:54 [INFO] [stdout] | [INFO] [stdout] 51 | fn visit_assignment(&self, node: AssignmentNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | fn visit_unary_op(&self, node: UnaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:55:49 [INFO] [stdout] | [INFO] [stdout] 55 | fn visit_unary_op(&self, node: UnaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | fn visit_binary_op(&self, node: BinaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:59:51 [INFO] [stdout] | [INFO] [stdout] 59 | fn visit_binary_op(&self, node: BinaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | fn visit_cond_expr(&self, node: CondExprNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:63:51 [INFO] [stdout] | [INFO] [stdout] 63 | fn visit_cond_expr(&self, node: CondExprNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:108:49 [INFO] [stdout] | [INFO] [stdout] 108 | fn visit_identifier(&self, node: IdentNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:116:44 [INFO] [stdout] | [INFO] [stdout] 116 | fn visit_literal(&self, node: LitNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:169:34 [INFO] [stdout] | [INFO] [stdout] 169 | fn visit_array_access(&self, node: ArrayAccessNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:169:57 [INFO] [stdout] | [INFO] [stdout] 169 | fn visit_array_access(&self, node: ArrayAccessNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | fn visit_type_spec(&self, node: TypeSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/hir/ast_lower.rs:173:51 [INFO] [stdout] | [INFO] [stdout] 173 | fn visit_type_spec(&self, node: TypeSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of partially moved value: `node` [INFO] [stdout] --> src/analysis/type_lifting.rs:37:71 [INFO] [stdout] | [INFO] [stdout] 35 | let name = node.name.into_ident().ident; [INFO] [stdout] | ------------ `*node.name` partially moved due to this method call [INFO] [stdout] 36 | [INFO] [stdout] 37 | let function_type = self.extractor.visit_function_declaration(node, ())?; [INFO] [stdout] | ^^^^ value used here after partial move [INFO] [stdout] | [INFO] [stdout] note: `Ast::into_ident` takes ownership of the receiver `self`, which moves `*node.name` [INFO] [stdout] --> src/frontend/ast.rs:242:23 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn into_ident(self) -> IdentNode { [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: partial move occurs because `*node.name` has type `Ast`, which does not implement the `Copy` trait [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 35 | let name = ::clone(&node.name).into_ident().ident; [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:14:38 [INFO] [stdout] | [INFO] [stdout] 14 | fn visit_compilation_unit(&self, node: CompilationUnitNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:14:65 [INFO] [stdout] | [INFO] [stdout] 14 | fn visit_compilation_unit(&self, node: CompilationUnitNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `*node.name` [INFO] [stdout] --> src/analysis/type_extract.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | let param_name = node.name.into_ident(); [INFO] [stdout] | ^^^^^^^^^ ------------ `*node.name` moved due to this method call, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: `Ast::into_ident` takes ownership of the receiver `self`, which moves `*node.name` [INFO] [stdout] --> src/frontend/ast.rs:242:23 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn into_ident(self) -> IdentNode { [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: move occurs because `*node.name` has type `Ast`, which does not implement the `Copy` trait [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 22 | let param_name = ::clone(&node.name).into_ident(); [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:57:38 [INFO] [stdout] | [INFO] [stdout] 57 | fn visit_composition_spec(&self, node: CompositionSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:57:65 [INFO] [stdout] | [INFO] [stdout] 57 | fn visit_composition_spec(&self, node: CompositionSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/analysis/type_extract.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut stmts = stmts; [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: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | fn visit_unary_op(&self, node: UnaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:83:49 [INFO] [stdout] | [INFO] [stdout] 83 | fn visit_unary_op(&self, node: UnaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | fn visit_binary_op(&self, node: BinaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:87:51 [INFO] [stdout] | [INFO] [stdout] 87 | fn visit_binary_op(&self, node: BinaryOpNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:98:27 [INFO] [stdout] | [INFO] [stdout] 98 | fn visit_while(&self, node: WhileNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:98:44 [INFO] [stdout] | [INFO] [stdout] 98 | fn visit_while(&self, node: WhileNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | fn visit_identifier(&self, node: IdentNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:104:49 [INFO] [stdout] | [INFO] [stdout] 104 | fn visit_identifier(&self, node: IdentNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:109:44 [INFO] [stdout] | [INFO] [stdout] 109 | fn visit_literal(&self, node: LitNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/analysis/type_extract.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | fn visit_fun_call(&self, node: FunCallNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | fn visit_fun_call(&self, node: FunCallNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/analysis/type_extract.rs:138:51 [INFO] [stdout] | [INFO] [stdout] 138 | fn visit_type_spec(&self, node: TypeSpecNode, ctx: Self::CtxT) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> src/analysis.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn analyze_ast(ast: Ast) -> Hir { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `symbol.tp` which is behind a shared reference [INFO] [stdout] --> src/symtab.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | .map(|symbol| symbol.tp) [INFO] [stdout] | ^^^^^^^^^ move occurs because `symbol.tp` has type `Type`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 63 | .map(|symbol| symbol.tp.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0382, E0428, E0507, E0583, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `a-lang` (bin "a-lang") due to 12 previous errors; 51 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0e74a75c7c669bb03452330e623d9e7b40375a08a04a971d4cd0f7b831f98c71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e74a75c7c669bb03452330e623d9e7b40375a08a04a971d4cd0f7b831f98c71", kill_on_drop: false }` [INFO] [stdout] 0e74a75c7c669bb03452330e623d9e7b40375a08a04a971d4cd0f7b831f98c71