[INFO] cloning repository https://github.com/TyomoGit/my-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TyomoGit/my-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fmy-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fmy-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a15c5401a44637e70f765baa1cdcae5b61842e5 [INFO] checking TyomoGit/my-lang against try#c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f for 2025-12-16-next-solver-global [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fmy-lang" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TyomoGit/my-lang [INFO] finished tweaking git repo https://github.com/TyomoGit/my-lang [INFO] tweaked toml for git repo https://github.com/TyomoGit/my-lang written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TyomoGit/my-lang on toolchain c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TyomoGit/my-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" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-4-tc2/source/stdlib/Cargo.toml: `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition [INFO] [stderr] (in the `stdlib` library target) [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 [ERROR] error running command: no output for 300 seconds [INFO] checking TyomoGit/my-lang against try#c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f for 2025-12-16-next-solver-global [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fmy-lang" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TyomoGit/my-lang [INFO] finished tweaking git repo https://github.com/TyomoGit/my-lang [INFO] tweaked toml for git repo https://github.com/TyomoGit/my-lang written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TyomoGit/my-lang on toolchain c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TyomoGit/my-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" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-4-tc2/source/stdlib/Cargo.toml: `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition [INFO] [stderr] (in the `stdlib` library target) [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded inkwell_internals v0.9.0 [INFO] [stderr] Downloaded llvm-sys v170.1.0 [INFO] [stderr] Downloaded inkwell v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dbaf9de7eda39c7eba724e7096bc6e45a3a16bd76538f1b7610cee26fe3b102a [INFO] running `Command { std: "docker" "start" "-a" "dbaf9de7eda39c7eba724e7096bc6e45a3a16bd76538f1b7610cee26fe3b102a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbaf9de7eda39c7eba724e7096bc6e45a3a16bd76538f1b7610cee26fe3b102a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbaf9de7eda39c7eba724e7096bc6e45a3a16bd76538f1b7610cee26fe3b102a", kill_on_drop: false }` [INFO] [stdout] dbaf9de7eda39c7eba724e7096bc6e45a3a16bd76538f1b7610cee26fe3b102a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f2384da8314444b9e0d8fee72365508a3dd098d158d288467b8bfc649bd8133e [INFO] running `Command { std: "docker" "start" "-a" "f2384da8314444b9e0d8fee72365508a3dd098d158d288467b8bfc649bd8133e", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/stdlib/Cargo.toml: `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition [INFO] [stderr] (in the `stdlib` library target) [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling inkwell v0.4.0 [INFO] [stderr] Checking my-lang-parser v0.1.0 (/opt/rustwide/workdir/my-lang-parser) [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Compiling my-lang-llvm v0.1.0 (/opt/rustwide/workdir/my-lang-llvm) [INFO] [stdout] warning: unused import: `token::Token` [INFO] [stdout] --> my-lang-parser/src/ast.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{error::Position, token::Token}; [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 import: `token::Token` [INFO] [stdout] --> my-lang-parser/src/ast.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{error::Position, token::Token}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `has_error` is never read [INFO] [stdout] --> my-lang-parser/src/parser.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | has_error: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_next` is never used [INFO] [stdout] --> my-lang-parser/src/scanner.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Scanner { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn peek_next(&self) -> Option<&char> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `has_error` is never read [INFO] [stdout] --> my-lang-parser/src/parser.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | has_error: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_next` is never used [INFO] [stdout] --> my-lang-parser/src/scanner.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Scanner { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn peek_next(&self) -> Option<&char> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `token::Token` [INFO] [stdout] --> my-lang-parser/src/ast.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{error::Position, token::Token}; [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 import: `token::Token` [INFO] [stdout] --> my-lang-parser/src/ast.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{error::Position, token::Token}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Statements` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Statements = Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Decl { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Stmt { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `includes_semi` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl StmtKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 74 | pub fn includes_semi(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maybe_no_semicolon` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ExprKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 137 | pub fn maybe_no_semicolon(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RunTime` is never constructed [INFO] [stdout] --> my-lang-parser/src/error.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | RunTime, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `has_error` is never read [INFO] [stdout] --> my-lang-parser/src/parser.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | has_error: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedChar` is never constructed [INFO] [stdout] --> my-lang-parser/src/scanner.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum ScanErrorKind { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 40 | UnexpectedChar { found: char, expected: char }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_next` is never used [INFO] [stdout] --> my-lang-parser/src/scanner.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Scanner { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn peek_next(&self) -> Option<&char> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LeftBracket`, `RightBracket`, `Colon`, `Range`, `RangeInclusive`, and `Eof` are never constructed [INFO] [stdout] --> my-lang-parser/src/token.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum TokenKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 47 | LeftBracket, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 48 | RightBracket, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 74 | RangeInclusive, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 75 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Var` and `Class` are never constructed [INFO] [stdout] --> my-lang-parser/src/token.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub enum Keyword { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 135 | Var, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | Class, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Statements` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Statements = Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Decl { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Stmt { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `includes_semi` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl StmtKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 74 | pub fn includes_semi(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maybe_no_semicolon` is never used [INFO] [stdout] --> my-lang-parser/src/ast.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 136 | impl ExprKind { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 137 | pub fn maybe_no_semicolon(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RunTime` is never constructed [INFO] [stdout] --> my-lang-parser/src/error.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | RunTime, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `has_error` is never read [INFO] [stdout] --> my-lang-parser/src/parser.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | has_error: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedChar` is never constructed [INFO] [stdout] --> my-lang-parser/src/scanner.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum ScanErrorKind { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 40 | UnexpectedChar { found: char, expected: char }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `peek_next` is never used [INFO] [stdout] --> my-lang-parser/src/scanner.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl Scanner { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn peek_next(&self) -> Option<&char> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LeftBracket`, `RightBracket`, `Colon`, `Range`, `RangeInclusive`, and `Eof` are never constructed [INFO] [stdout] --> my-lang-parser/src/token.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum TokenKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 47 | LeftBracket, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 48 | RightBracket, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 74 | RangeInclusive, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 75 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Var` and `Class` are never constructed [INFO] [stdout] --> my-lang-parser/src/token.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub enum Keyword { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 135 | Var, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | Class, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking stdlib v0.1.0 (/opt/rustwide/workdir/stdlib) [INFO] [stderr] Compiling syn v2.0.67 [INFO] [stdout] warning: unused import: `CStr` [INFO] [stdout] --> stdlib/src/str.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::{c_char, CStr, CString}; [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 import: `CStr` [INFO] [stdout] --> stdlib/src/str.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::{c_char, CStr, CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling llvm-sys v170.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling inkwell_internals v0.9.0 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:123:75 [INFO] [stdout] | [INFO] [stdout] 123 | let BasicValueEnum::FloatValue(value) = self.compile_expr(number)? else { [INFO] [stdout] | ------------ ^^^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:131:73 [INFO] [stdout] | [INFO] [stdout] 131 | let BasicValueEnum::FloatValue(lhs) = self.compile_expr(lhs)? else { [INFO] [stdout] | ------------ ^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:123:75 [INFO] [stdout] | [INFO] [stdout] 123 | let BasicValueEnum::FloatValue(value) = self.compile_expr(number)? else { [INFO] [stdout] | ------------ ^^^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:134:73 [INFO] [stdout] | [INFO] [stdout] 134 | let BasicValueEnum::FloatValue(rhs) = self.compile_expr(rhs)? else { [INFO] [stdout] | ------------ ^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:79:74 [INFO] [stdout] | [INFO] [stdout] 79 | let BasicValueEnum::FloatValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 142 | ExprKind::Sub(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_sub), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:131:73 [INFO] [stdout] | [INFO] [stdout] 131 | let BasicValueEnum::FloatValue(lhs) = self.compile_expr(lhs)? else { [INFO] [stdout] | ------------ ^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 82 | let BasicValueEnum::FloatValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 142 | ExprKind::Sub(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_sub), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:134:73 [INFO] [stdout] | [INFO] [stdout] 134 | let BasicValueEnum::FloatValue(rhs) = self.compile_expr(rhs)? else { [INFO] [stdout] | ------------ ^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:79:74 [INFO] [stdout] | [INFO] [stdout] 79 | let BasicValueEnum::FloatValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 143 | ExprKind::Mul(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_mul), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:79:74 [INFO] [stdout] | [INFO] [stdout] 79 | let BasicValueEnum::FloatValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 142 | ExprKind::Sub(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_sub), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 82 | let BasicValueEnum::FloatValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 143 | ExprKind::Mul(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_mul), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 82 | let BasicValueEnum::FloatValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 142 | ExprKind::Sub(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_sub), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:79:74 [INFO] [stdout] | [INFO] [stdout] 79 | let BasicValueEnum::FloatValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 144 | ExprKind::Div(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_div), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 82 | let BasicValueEnum::FloatValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 144 | ExprKind::Div(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_div), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:79:74 [INFO] [stdout] | [INFO] [stdout] 79 | let BasicValueEnum::FloatValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 143 | ExprKind::Mul(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_mul), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 145 | ExprKind::Eq(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, EQ), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 82 | let BasicValueEnum::FloatValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 143 | ExprKind::Mul(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_mul), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 145 | ExprKind::Eq(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, EQ), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:79:74 [INFO] [stdout] | [INFO] [stdout] 79 | let BasicValueEnum::FloatValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 144 | ExprKind::Div(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_div), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 146 | ExprKind::Ne(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, NE), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 146 | ExprKind::Ne(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, NE), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 82 | let BasicValueEnum::FloatValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 144 | ExprKind::Div(lhs, rhs) => impl_binary_op_float!(lhs, rhs, build_float_div), [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_float` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 147 | ExprKind::Gt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 145 | ExprKind::Eq(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, EQ), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 147 | ExprKind::Gt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 145 | ExprKind::Eq(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, EQ), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 148 | ExprKind::Ge(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 148 | ExprKind::Ge(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 146 | ExprKind::Ne(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, NE), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 149 | ExprKind::Lt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 146 | ExprKind::Ne(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, NE), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 149 | ExprKind::Lt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 147 | ExprKind::Gt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 150 | ExprKind::Le(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 150 | ExprKind::Le(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 147 | ExprKind::Gt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 148 | ExprKind::Ge(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/main.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | compiler.compile(&ast); [INFO] [stdout] | ------- ^^^^ expected `&ExprKind`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn compile(&self, program: &Program) { [INFO] [stdout] | ^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 148 | ExprKind::Ge(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, UGE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 149 | ExprKind::Lt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 149 | ExprKind::Lt(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULT), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 92 | let BasicValueEnum::IntValue($lhs) = self.compile_expr($lhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 150 | ExprKind::Le(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:95:72 [INFO] [stdout] | [INFO] [stdout] 95 | let BasicValueEnum::IntValue($rhs) = self.compile_expr($rhs)? else { [INFO] [stdout] | ------------ ^^^^ expected `&ExprKind`, found `&Expr` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 150 | ExprKind::Le(lhs, rhs) => impl_binary_op_cmp!(lhs, rhs, ULE), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&my_lang_parser::ast::Expr` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_expr(&self, expr: &ExprKind) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ --------------- [INFO] [stdout] = note: this error originates in the macro `impl_binary_op_cmp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my-lang-llvm` (bin "my-lang-llvm") due to 22 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> my-lang-llvm/src/main.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | compiler.compile(&ast); [INFO] [stdout] | ------- ^^^^ expected `&ExprKind`, found `&Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&ExprKind` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: method defined here [INFO] [stdout] --> my-lang-llvm/src/compiler.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn compile(&self, program: &Program) { [INFO] [stdout] | ^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my-lang-llvm` (bin "my-lang-llvm" test) due to 22 previous errors [INFO] running `Command { std: "docker" "inspect" "f2384da8314444b9e0d8fee72365508a3dd098d158d288467b8bfc649bd8133e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2384da8314444b9e0d8fee72365508a3dd098d158d288467b8bfc649bd8133e", kill_on_drop: false }` [INFO] [stdout] f2384da8314444b9e0d8fee72365508a3dd098d158d288467b8bfc649bd8133e