[INFO] cloning repository https://github.com/zmarlon/maga [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zmarlon/maga" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzmarlon%2Fmaga", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzmarlon%2Fmaga'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e2f14c42b56e99a7f93c701974227bdb93179fc [INFO] checking zmarlon/maga against try#2278ef25f90817c20d6dd0d2da58a990eb6f53cb for pr-145108-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzmarlon%2Fmaga" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zmarlon/maga [INFO] finished tweaking git repo https://github.com/zmarlon/maga [INFO] tweaked toml for git repo https://github.com/zmarlon/maga written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zmarlon/maga on toolchain 2278ef25f90817c20d6dd0d2da58a990eb6f53cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zmarlon/maga 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" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos-derive v0.14.0 [INFO] [stderr] Downloaded llvm-sys v181.1.0 [INFO] [stderr] Downloaded logos-codegen v0.14.0 [INFO] [stderr] Downloaded logos v0.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 970e5834a17deec7b8948695d01e6f1866dc6baa02624b6f44e3b5616b2c3e63 [INFO] running `Command { std: "docker" "start" "-a" "970e5834a17deec7b8948695d01e6f1866dc6baa02624b6f44e3b5616b2c3e63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "970e5834a17deec7b8948695d01e6f1866dc6baa02624b6f44e3b5616b2c3e63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "970e5834a17deec7b8948695d01e6f1866dc6baa02624b6f44e3b5616b2c3e63", kill_on_drop: false }` [INFO] [stdout] 970e5834a17deec7b8948695d01e6f1866dc6baa02624b6f44e3b5616b2c3e63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2278ef25f90817c20d6dd0d2da58a990eb6f53cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3ad3c5df54361fc10fa6bf6469666928c592dae918880d506c939c161ce702e [INFO] running `Command { std: "docker" "start" "-a" "e3ad3c5df54361fc10fa6bf6469666928c592dae918880d506c939c161ce702e", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling logos-codegen v0.14.0 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Compiling llvm-sys v181.1.0 [INFO] [stderr] Compiling logos-derive v0.14.0 [INFO] [stderr] Checking logos v0.14.0 [INFO] [stderr] Checking maga v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Context` and `Module` [INFO] [stdout] --> src/main.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::generation::{CodeGenContext, Context, Module}; [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: `CodeGenContext` and `Module` [INFO] [stdout] --> src/generation/expressions/constant.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::generation::{CodeGenContext, CodeGenError, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/generation/expressions/constant.rs:3:66 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{ConstantExpression, ConstantExpressionValue, Function, Type}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/generation/type_registry.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LiteralType` [INFO] [stdout] --> src/parser/assignment.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{CompileError, FromTokenStream, LiteralType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LiteralType` [INFO] [stdout] --> src/parser/expression.rs:2:52 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::{CompileError, FromTokenStream, LiteralType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Element` [INFO] [stdout] --> src/parser/scope.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{CompileError, Element, FromTokenStream}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scope::*` [INFO] [stdout] --> src/parser/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use scope::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Module` [INFO] [stdout] --> src/main.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::generation::{CodeGenContext, Context, Module}; [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: `CodeGenContext` and `Module` [INFO] [stdout] --> src/generation/expressions/constant.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::generation::{CodeGenContext, CodeGenError, Module}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Function` [INFO] [stdout] --> src/generation/expressions/constant.rs:3:66 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{ConstantExpression, ConstantExpressionValue, Function, Type}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/generation/type_registry.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LiteralType` [INFO] [stdout] --> src/parser/assignment.rs:3:52 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{CompileError, FromTokenStream, LiteralType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LiteralType` [INFO] [stdout] --> src/parser/expression.rs:2:52 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::{CompileError, FromTokenStream, LiteralType}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Element` [INFO] [stdout] --> src/parser/scope.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parser::{CompileError, Element, FromTokenStream}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scope::*` [INFO] [stdout] --> src/parser/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use scope::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/generation/util.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 17 | static ref ADD_MAP: HashMap LLVMValueRef> = { [INFO] [stdout] | ---------------------------------------------------------------------------------------------- expected `HashMap ...>` because of return type [INFO] [stdout] ... [INFO] [stdout] 20 | map.insert("u8".to_owned(), add_int); [INFO] [stdout] | --- ------- this argument has type `fn(*mut LLVMBuilder, *mut LLVMValue, *mut LLVMValue, *const i8) -> *mut LLVMValue {add_int}`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `map` to have type `HashMap *mut LLVMValue {add_int}>` [INFO] [stdout] ... [INFO] [stdout] 23 | map [INFO] [stdout] | ^^^ expected fn pointer, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, fn(_, _, _, _) -> _>` [INFO] [stdout] found struct `HashMap<_, fn(_, _, _, _) -> _ {add_int}>` [INFO] [stdout] = note: fn items are distinct from fn pointers [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `add_int as fn(*mut LLVMBuilder, *mut LLVMValue, *mut LLVMValue, *const i8) -> *mut LLVMValue` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/maga-ea0cc5c6a7b83c42.long-type-16734084368639635366.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/generation/util.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 17 | static ref ADD_MAP: HashMap LLVMValueRef> = { [INFO] [stdout] | ---------------------------------------------------------------------------------------------- expected `HashMap ...>` because of return type [INFO] [stdout] ... [INFO] [stdout] 20 | map.insert("u8".to_owned(), add_int); [INFO] [stdout] | --- ------- this argument has type `fn(*mut LLVMBuilder, *mut LLVMValue, *mut LLVMValue, *const i8) -> *mut LLVMValue {add_int}`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `map` to have type `HashMap *mut LLVMValue {add_int}>` [INFO] [stdout] ... [INFO] [stdout] 23 | map [INFO] [stdout] | ^^^ expected fn pointer, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, fn(_, _, _, _) -> _>` [INFO] [stdout] found struct `HashMap<_, fn(_, _, _, _) -> _ {add_int}>` [INFO] [stdout] = note: fn items are distinct from fn pointers [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `add_int as fn(*mut LLVMBuilder, *mut LLVMValue, *mut LLVMValue, *const i8) -> *mut LLVMValue` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/maga-1e58755274626754.long-type-17615567261468802403.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/generation/expressions/binary.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | token => return Err(CodeGenError::UnsupportedOperator), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp` [INFO] [stdout] --> src/generation/expressions/mod.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | Expression::Call(exp) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_exp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/generation/function.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | let Some(body) = &function.body else { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/generation/function.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let entry = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stat` [INFO] [stdout] --> src/generation/statement.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | Statement::Return(stat) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stat` [INFO] [stdout] --> src/generation/statement.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | Statement::Declaration(stat) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/generation/statement.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | context: &mut CodeGenContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/generation/statement.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | module: &mut Module, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/generation/statement.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | function: &Function, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/generation/statement.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | block: LLVMBasicBlock, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/generation/statements/assignment.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | context: &mut CodeGenContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/generation/statements/assignment.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | module: &mut Module, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/generation/statements/assignment.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | function: &Function, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/generation/statements/assignment.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | block: LLVMBasicBlock, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/parser/expression.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | Token::Identifier(ident) => Self::parse_ident(tokens), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/function.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut r#type = Type::from_token_stream(tokens)?; [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: `parsing_state` [INFO] [stdout] --> src/parser/mod.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut parsing_state = ParsingState::Idle; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsing_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut parsing_state = ParsingState::Idle; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/generation/expressions/binary.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | token => return Err(CodeGenError::UnsupportedOperator), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exp` [INFO] [stdout] --> src/generation/expressions/mod.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | Expression::Call(exp) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_exp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/generation/function.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | let Some(body) = &function.body else { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/generation/function.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let entry = [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stat` [INFO] [stdout] --> src/generation/statement.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 15 | Statement::Return(stat) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stat` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `maga` (bin "maga") due to 1 previous error; 26 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `stat` [INFO] [stdout] --> src/generation/statement.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | Statement::Declaration(stat) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/generation/statement.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | context: &mut CodeGenContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/generation/statement.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | module: &mut Module, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/generation/statement.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | function: &Function, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/generation/statement.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | block: LLVMBasicBlock, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/generation/statements/assignment.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | context: &mut CodeGenContext, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/generation/statements/assignment.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | module: &mut Module, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> src/generation/statements/assignment.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | function: &Function, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/generation/statements/assignment.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | block: LLVMBasicBlock, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/parser/expression.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | Token::Identifier(ident) => Self::parse_ident(tokens), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/function.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut r#type = Type::from_token_stream(tokens)?; [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: `parsing_state` [INFO] [stdout] --> src/parser/mod.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut parsing_state = ParsingState::Idle; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsing_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut parsing_state = ParsingState::Idle; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `maga` (bin "maga" test) due to 1 previous error; 26 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e3ad3c5df54361fc10fa6bf6469666928c592dae918880d506c939c161ce702e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3ad3c5df54361fc10fa6bf6469666928c592dae918880d506c939c161ce702e", kill_on_drop: false }` [INFO] [stdout] e3ad3c5df54361fc10fa6bf6469666928c592dae918880d506c939c161ce702e