[INFO] cloning repository https://github.com/CrazyAAMI/miniULE [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CrazyAAMI/miniULE" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrazyAAMI%2FminiULE", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrazyAAMI%2FminiULE'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d0eb1679dce89693d7f168e123de74c36c2db42 [INFO] building CrazyAAMI/miniULE against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrazyAAMI%2FminiULE" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CrazyAAMI/miniULE on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CrazyAAMI/miniULE [INFO] finished tweaking git repo https://github.com/CrazyAAMI/miniULE [INFO] tweaked toml for git repo https://github.com/CrazyAAMI/miniULE written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/CrazyAAMI/miniULE 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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd2bbb444bfc4a9b207fbca5de2deb2dd29a0d694d29bf2ecdc34239096d0146 [INFO] running `Command { std: "docker" "start" "-a" "cd2bbb444bfc4a9b207fbca5de2deb2dd29a0d694d29bf2ecdc34239096d0146", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd2bbb444bfc4a9b207fbca5de2deb2dd29a0d694d29bf2ecdc34239096d0146", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd2bbb444bfc4a9b207fbca5de2deb2dd29a0d694d29bf2ecdc34239096d0146", kill_on_drop: false }` [INFO] [stdout] cd2bbb444bfc4a9b207fbca5de2deb2dd29a0d694d29bf2ecdc34239096d0146 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c63592a49c5efae4e6999b58ba124269ff0f923cb3b0cd77c5746684e0e4541 [INFO] running `Command { std: "docker" "start" "-a" "4c63592a49c5efae4e6999b58ba124269ff0f923cb3b0cd77c5746684e0e4541", kill_on_drop: false }` [INFO] [stderr] Compiling miniULE v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `transforming` [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | mod transforming; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `transforming`, create file "src/transforming.rs" or "src/transforming/mod.rs" [INFO] [stdout] = note: if there is a `mod transforming` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `analyzing` [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | mod analyzing; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `analyzing`, create file "src/analyzing.rs" or "src/analyzing/mod.rs" [INFO] [stdout] = note: if there is a `mod analyzing` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `optimizing` [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod optimizing; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `optimizing`, create file "src/optimizing.rs" or "src/optimizing/mod.rs" [INFO] [stdout] = note: if there is a `mod optimizing` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AstParserError` [INFO] [stdout] --> src/main.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parsing::parser::{AstParser, AstParserError}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parsing::tokenizer::Tokenizer` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::parsing::tokenizer::Tokenizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::generating::ir::ExpressionIR` [INFO] [stdout] --> src/parsing/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::generating::ir::ExpressionIR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExpressionChainAst` [INFO] [stdout] --> src/parsing/parser.rs:6:78 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parsing::ast::{BodyAst, DataTypeAst, DataTypeKind, ExpressionAst, ExpressionChainAst, ForLoopAst, ForLoopMode, FuncCallAst, Fu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StructDefAst` [INFO] [stdout] --> src/parsing/static_analyzer.rs:2:184 [INFO] [stdout] | [INFO] [stdout] 2 | ...ator, ParameterAst, ProgramAst, StatementAst, StructDeclAst, StructDefAst, VariableDeclAst, VariableDefAst}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/generating/ir.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/generating/ir.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/generating/ir.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FuncDefAst` [INFO] [stdout] --> src/generating/ir.rs:9:56 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::parsing::ast::{DataTypeKind, ExpressionAst, FuncDefAst, Operator, ParameterAst}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuncCallAst` and `FuncDefAst` [INFO] [stdout] --> src/generating/transformer.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parsing::ast::{BodyAst, ExpressionAst, FuncCallAst, FuncDefAst, ProgramAst, StatementAst, VariableDeclAst, VariableDefAst}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parsing/static_analyzer.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 27 | match &self { [INFO] [stdout] | ----- this expression has type `&&AnalyzerTypeKind` [INFO] [stdout] 28 | AnalyzerErrorKind::TypeMismatch(expected, given) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AnalyzerTypeKind`, found `AnalyzerErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parsing/static_analyzer.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 27 | match &self { [INFO] [stdout] | ----- this expression has type `&&AnalyzerTypeKind` [INFO] [stdout] ... [INFO] [stdout] 31 | AnalyzerErrorKind::UnexpectedStatement(statement) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AnalyzerTypeKind`, found `AnalyzerErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parsing/static_analyzer.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | if let Ok(ExpressionAst::Identifier(name)) = &chain.chain.first() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------------- this expression has type `&Option<&ExpressionAst>` [INFO] [stdout] | | [INFO] [stdout] | expected `Option<&ExpressionAst>`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&ExpressionAst>` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&usize: Step` is not satisfied [INFO] [stdout] --> src/parsing/static_analyzer.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | for c in &1..&chain.chain.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Step` is not implemented for `&usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Step` is implemented for `usize` [INFO] [stdout] = note: required for `std::ops::Range<&usize>` to implement `Iterator` [INFO] [stdout] = note: required for `std::ops::Range<&usize>` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `undefined` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:222:56 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `undefined` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 222 | _ => return Err(AnalyzerErrorKind::undefined(&"i dont know", &"wtf")) [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 222 | _ => return Err(AnalyzerErrorKind::Undefined) [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parsing/static_analyzer.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 228 | if let Ok(last) = chain.chain.last() { [INFO] [stdout] | ^^^^^^^^ ------------------ this expression has type `Option<&ExpressionAst>` [INFO] [stdout] | | [INFO] [stdout] | expected `Option<&ExpressionAst>`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&ExpressionAst>` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parsing/static_analyzer.rs:229:16 [INFO] [stdout] | [INFO] [stdout] 229 | Ok(true) [INFO] [stdout] | -- ^^^^ expected `AnalyzerChainResult`, found `bool` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `bool` due to the type of the argument passed [INFO] [stdout] --> src/parsing/static_analyzer.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | Ok(true) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/9b5e8b16bd1c4acf4cf8e6880368314cf021a987/library/core/src/result.rs:532:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parsing/static_analyzer.rs:231:16 [INFO] [stdout] | [INFO] [stdout] 231 | Ok(false) [INFO] [stdout] | -- ^^^^^ expected `AnalyzerChainResult`, found `bool` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `bool` due to the type of the argument passed [INFO] [stdout] --> src/parsing/static_analyzer.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | Ok(false) [INFO] [stdout] | ^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/9b5e8b16bd1c4acf4cf8e6880368314cf021a987/library/core/src/result.rs:532:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `unknown_type` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:300:40 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `unknown_type` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 300 | Err(AnalyzerErrorKind::unknown_type()) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 300 | Err(AnalyzerErrorKind::UnknownType) [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `type_mismatch` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:318:59 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `type_mismatch` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 318 | return Err(AnalyzerErrorKind::type_mismatch(&kind.kind.to_string(), &given.kind.to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a method `type_id` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/9b5e8b16bd1c4acf4cf8e6880368314cf021a987/library/core/src/any.rs:134:5 [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 318 | return Err(AnalyzerErrorKind::TypeMismatch(&kind.kind.to_string(), &given.kind.to_string())); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `redefined_var_name` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:346:36 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `redefined_var_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 346 | Err(AnalyzerErrorKind::redefined_var_name(var_decl.name.as_str()))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 346 | Err(AnalyzerErrorKind::RedefinedVarName(var_decl.name.as_str()))?; [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `expression_not_writable` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:398:43 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `expression_not_writable` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 398 | return Err(AnalyzerErrorKind::expression_not_writable(&var_def.left)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `type_mismatch` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:423:36 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `type_mismatch` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 423 | Err(AnalyzerErrorKind::type_mismatch("Boolean", &evaluated_condition.kind.to_string())) [INFO] [stdout] | ^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a method `type_id` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/9b5e8b16bd1c4acf4cf8e6880368314cf021a987/library/core/src/any.rs:134:5 [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 423 | Err(AnalyzerErrorKind::TypeMismatch("Boolean", &evaluated_condition.kind.to_string())) [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `parameter_count_wrong` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:434:47 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `parameter_count_wrong` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 434 | return Err(AnalyzerErrorKind::parameter_count_wrong(called_func.ast.parameters.len())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 434 | return Err(AnalyzerErrorKind::ParameterCountWrong(called_func.ast.parameters.len())) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `parameter_expected` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:443:59 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `parameter_expected` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 443 | return Err(AnalyzerErrorKind::parameter_expected(¶m.name)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 443 | return Err(AnalyzerErrorKind::ParameterExpected(¶m.name)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `parameter_expected` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:449:51 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `parameter_expected` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 449 | return Err(AnalyzerErrorKind::parameter_expected(¶m.name)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 449 | return Err(AnalyzerErrorKind::ParameterExpected(¶m.name)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `function_not_found` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:457:43 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `function_not_found` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 457 | return Err(AnalyzerErrorKind::function_not_found(&func_call.name)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 457 | return Err(AnalyzerErrorKind::FunctionNotFound(&func_call.name)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `unexpected_statement` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:487:51 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `unexpected_statement` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 487 | return Err(AnalyzerErrorKind::unexpected_statement(item)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 487 | return Err(AnalyzerErrorKind::UnexpectedStatement(item)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `recursive_function_found` found for enum `AnalyzerErrorKind` in the current scope [INFO] [stdout] --> src/parsing/static_analyzer.rs:507:43 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AnalyzerErrorKind { [INFO] [stdout] | -------------------------- variant or associated item `recursive_function_found` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 507 | return Err(AnalyzerErrorKind::recursive_function_found(&func.name, stack.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnalyzerErrorKind` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 507 | return Err(AnalyzerErrorKind::RecursiveFunctionFound(&func.name, stack.clone())); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/generating/transformer.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 182 | fn handle_transform_left_assignment(expr: &ExpressionAst, ) -> AnalyzerChainResult { [INFO] [stdout] | ------------------- expected `AnalyzerChainResult` because of return type [INFO] [stdout] ... [INFO] [stdout] 185 | vec![] [INFO] [stdout] | ^^^^^^ expected `AnalyzerChainResult`, found `Vec<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `AnalyzerChainResult` [INFO] [stdout] found struct `Vec<_>` [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transform_right_assignment` found for mutable reference `&mut Transformer` in the current scope [INFO] [stdout] --> src/generating/transformer.rs:217:32 [INFO] [stdout] | [INFO] [stdout] 217 | items.append(&mut self.transform_right_assignment(&var_def.value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Transformer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `transform_right_assignment` found for mutable reference `&mut Transformer` in the current scope [INFO] [stdout] --> src/generating/transformer.rs:218:32 [INFO] [stdout] | [INFO] [stdout] 218 | items.append(&mut self.transform_right_assignment(&var_def.value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Transformer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut token = self.tokens.next().ok_or_else(|| AstParserError::unexpected_end_of_file(position))?.clone(); [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: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut token = self.tokens.next().ok_or_else(|| AstParserError::unexpected_end_of_file(position))?.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let mut token = self.tokens.next().ok_or_else(|| AstParserError::unexpected_end_of_file(position))?.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_index` [INFO] [stdout] --> src/parsing/parser.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | let start_index = self.tokens.get_current_token_index(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_index` [INFO] [stdout] --> src/parsing/parser.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | let current_index = self.tokens.get_current_token_index(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last` [INFO] [stdout] --> src/parsing/parser.rs:369:25 [INFO] [stdout] | [INFO] [stdout] 369 | if let Some(last) = chain.last() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ref` [INFO] [stdout] --> src/parsing/parser.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | let is_ref = self.expect_token_type(TokenType::And).is_ok(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | let mut var_type = self.try_parse_type()?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sta` [INFO] [stdout] --> src/parsing/parser.rs:456:46 [INFO] [stdout] | [INFO] [stdout] 456 | if let Ok(StatementAst::FunctionCall(sta)) = &statement { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/parsing/parser.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | let mut last_error = AstParserError::incompatible_statement(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:471:17 [INFO] [stdout] | [INFO] [stdout] 471 | let mut parsed = self.try_parse_var_decl().or_reset(self, current_pos) [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/parsing/parser.rs:545:23 [INFO] [stdout] | [INFO] [stdout] 545 | if let Ok(token) = self.expect_token_type(TokenType::Comma) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:560:17 [INFO] [stdout] | [INFO] [stdout] 560 | let mut param_type = self.try_parse_type()?; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:562:17 [INFO] [stdout] | [INFO] [stdout] 562 | let mut param_name = self.expect_token_type(TokenType::Identifier)?; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:650:13 [INFO] [stdout] | [INFO] [stdout] 650 | let mut func_ret_type = self.try_parse_type() [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:654:13 [INFO] [stdout] | [INFO] [stdout] 654 | let mut func_name = self.expect_token_type(TokenType::Identifier)?; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parsing/parser.rs:660:13 [INFO] [stdout] | [INFO] [stdout] 660 | let mut parameters = self.try_parse_func_decl_params() [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mode` is never read [INFO] [stdout] --> src/parsing/parser.rs:702:17 [INFO] [stdout] | [INFO] [stdout] 702 | let mut mode = ForLoopMode::To; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/parsing/static_analyzer.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn undefined(expected: &str, given: &str) -> AnalyzerErrorKind { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `given` [INFO] [stdout] --> src/parsing/static_analyzer.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn undefined(expected: &str, given: &str) -> AnalyzerErrorKind { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_given` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: internal compiler error: compiler/rustc_mir_build/src/builder/scope.rs:1724:17: cannot unwind from goto -> bb39 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at compiler/rustc_mir_build/src/builder/scope.rs:1724:17: [INFO] [stderr] Box [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7b9067981caa - ::fmt::h636462e57d5ef1e1 [INFO] [stderr] 1: 0x7b9068013cbc - core::fmt::write::h067060808ac50eb9 [INFO] [stderr] 2: 0x7b9068f28e11 - std::io::Write::write_fmt::h4674fa2ed7c0dfdd [INFO] [stderr] 3: 0x7b9067981b02 - std::sys::backtrace::BacktraceLock::print::h0c77148acfb0b5e9 [INFO] [stderr] 4: 0x7b9067983ffa - std::panicking::default_hook::{{closure}}::h30daa8e7c6ccb09d [INFO] [stderr] 5: 0x7b9067983e43 - std::panicking::default_hook::h25f21dc0f2064615 [INFO] [stderr] 6: 0x7b9066aeff28 - std[b36e883d67eb0403]::panicking::update_hook::>::{closure#0} [INFO] [stderr] 7: 0x7b90679847b8 - std::panicking::rust_panic_with_hook::hc98438687e833605 [INFO] [stderr] 8: 0x7b9066b2a341 - std[b36e883d67eb0403]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 9: 0x7b9066b1f526 - std[b36e883d67eb0403]::sys::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 10: 0x7b9066b1f50d - std[b36e883d67eb0403]::panicking::begin_panic:: [INFO] [stderr] 11: 0x7b9066b342a1 - ::emit_producing_guarantee [INFO] [stderr] 12: 0x7b9067084fdc - ::span_bug:: [INFO] [stderr] 13: 0x7b906710a897 - rustc_middle[8ad6e8ce52578819]::util::bug::opt_span_bug_fmt::::{closure#0} [INFO] [stderr] 14: 0x7b90670f006a - rustc_middle[8ad6e8ce52578819]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} [INFO] [stderr] 15: 0x7b90670efefb - rustc_middle[8ad6e8ce52578819]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> [INFO] [stderr] 16: 0x7b9065534437 - rustc_middle[8ad6e8ce52578819]::util::bug::span_bug_fmt:: [INFO] [stderr] 17: 0x7b90689d541b - ::build_unwind_tree [INFO] [stderr] 18: 0x7b90689cd7cd - rustc_mir_build[73684a27b88b946a]::builder::mir_build [INFO] [stderr] 19: 0x7b9068007714 - rustc_mir_transform[857cd804783fef4d]::mir_built [INFO] [stderr] 20: 0x7b90680076d7 - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 21: 0x7b90682953d1 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::, rustc_query_system[67781f9dc633c543]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 22: 0x7b9068294f8d - rustc_query_impl[1e55094a59e290f4]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 23: 0x7b9065067185 - rustc_mir_build[73684a27b88b946a]::check_unsafety::check_unsafety [INFO] [stderr] 24: 0x7b90688e98a7 - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 25: 0x7b90688e9b69 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::, rustc_query_system[67781f9dc633c543]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 26: 0x7b90688e97d1 - rustc_query_impl[1e55094a59e290f4]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 27: 0x7b906849bd32 - rustc_interface[b59e7ee7606ca029]::passes::run_required_analyses [INFO] [stderr] 28: 0x7b9068f2cc9e - rustc_interface[b59e7ee7606ca029]::passes::analysis [INFO] [stderr] 29: 0x7b9068f2cc6f - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 30: 0x7b9068f7b355 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 31: 0x7b9068f7b08e - rustc_query_impl[1e55094a59e290f4]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 32: 0x7b9068f701de - rustc_interface[b59e7ee7606ca029]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[be5855d19ccc8b6c]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} [INFO] [stderr] 33: 0x7b9068fdff51 - rustc_interface[b59e7ee7606ca029]::interface::run_compiler::<(), rustc_driver_impl[be5855d19ccc8b6c]::run_compiler::{closure#0}>::{closure#1} [INFO] [stderr] 34: 0x7b9068ef5087 - std[b36e883d67eb0403]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> [INFO] [stderr] 35: 0x7b9068ef551c - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[303105738bd0c2ae]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 36: 0x7b9068ef6aef - std::sys::pal::unix::thread::Thread::new::thread_start::ha554cc4ba6335b05 [INFO] [stderr] 37: 0x7b906326bac3 - [INFO] [stderr] 38: 0x7b90632fca04 - clone [INFO] [stderr] 39: 0x0 - [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: please make sure that you have updated to the latest nightly [INFO] [stderr] [INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2024-12-31T20_10_34-9.txt`: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] note: rustc 1.85.0-nightly (9b5e8b16b 2024-12-19) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] #0 [mir_built] building MIR for `parsing::static_analyzer::::do_types_match` [INFO] [stderr] #1 [check_unsafety] unsafety-checking `parsing::static_analyzer::::do_types_match` [INFO] [stderr] #2 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/parsing/static_analyzer.rs:359:31 [INFO] [stdout] | [INFO] [stdout] 359 | fn is_expression_writable(info: &mut AnalyzerInfo, expr: &ExpressionAst) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/parsing/static_analyzer.rs:462:22 [INFO] [stdout] | [INFO] [stdout] 462 | fn handle_return(info: &mut AnalyzerInfo, expr: &ExpressionAst) -> Result<(), AnalyzerErrorKind> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/parsing/static_analyzer.rs:462:47 [INFO] [stdout] | [INFO] [stdout] 462 | fn handle_return(info: &mut AnalyzerInfo, expr: &ExpressionAst) -> Result<(), AnalyzerErrorKind> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generating/generator.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut generator = CodeGenerator { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/generating/ir.rs:64:43 [INFO] [stdout] | [INFO] [stdout] 64 | ExpressionAst::FuncCall(name, params) => ExpressionIR::FuncCallExpression(name.clone(), vec![]), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/generating/ir.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | ExpressionAst::ArrayDef(array) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/generating/ir.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 136 | DataTypeKind::Struct(name) => DataFieldType::Integer, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `variable_decl` [INFO] [stdout] --> src/generating/transformer.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | fn transform_var_decl(&mut self, variable_decl: &VariableDeclAst) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variable_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_expr` [INFO] [stdout] --> src/generating/transformer.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut final_expr = expr; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/generating/transformer.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | for item in chain { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generating/transformer.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut final_expr = expr; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | let mut analyzer = Analyzer::analyze(ast.clone()); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let input = "entry{string test = \"\";}"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `miniULE` (bin "miniULE") due to 25 previous errors; 43 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4c63592a49c5efae4e6999b58ba124269ff0f923cb3b0cd77c5746684e0e4541", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c63592a49c5efae4e6999b58ba124269ff0f923cb3b0cd77c5746684e0e4541", kill_on_drop: false }` [INFO] [stdout] 4c63592a49c5efae4e6999b58ba124269ff0f923cb3b0cd77c5746684e0e4541