[INFO] cloning repository https://github.com/awesomecuber/monkey [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/awesomecuber/monkey" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawesomecuber%2Fmonkey", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawesomecuber%2Fmonkey'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0cec0b9e229fe818eed250c1099ce8c3b66a9eea [INFO] checking awesomecuber/monkey against try#e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 for pr-144386 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawesomecuber%2Fmonkey" "/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/awesomecuber/monkey [INFO] finished tweaking git repo https://github.com/awesomecuber/monkey [INFO] tweaked toml for git repo https://github.com/awesomecuber/monkey written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/awesomecuber/monkey on toolchain e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/awesomecuber/monkey 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" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking awesomecuber/monkey against try#e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 for pr-144386 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawesomecuber%2Fmonkey" "/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/awesomecuber/monkey [INFO] finished tweaking git repo https://github.com/awesomecuber/monkey [INFO] tweaked toml for git repo https://github.com/awesomecuber/monkey written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/awesomecuber/monkey on toolchain e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/awesomecuber/monkey 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" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89d535acac7ea9cdccde83171a07ecc8fb6854b946f55cf68e35beb63a26336a [INFO] running `Command { std: "docker" "start" "-a" "89d535acac7ea9cdccde83171a07ecc8fb6854b946f55cf68e35beb63a26336a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89d535acac7ea9cdccde83171a07ecc8fb6854b946f55cf68e35beb63a26336a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89d535acac7ea9cdccde83171a07ecc8fb6854b946f55cf68e35beb63a26336a", kill_on_drop: false }` [INFO] [stdout] 89d535acac7ea9cdccde83171a07ecc8fb6854b946f55cf68e35beb63a26336a [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 421a800637765a5cb03fee097d80f03cb8d12405d7a09df1ff260d0b7d8a3d29 [INFO] running `Command { std: "docker" "start" "-a" "421a800637765a5cb03fee097d80f03cb8d12405d7a09df1ff260d0b7d8a3d29", kill_on_drop: false }` [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking gimli v0.27.2 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking miniz_oxide v0.6.2 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking object v0.30.3 [INFO] [stderr] Checking tracing-subscriber v0.3.16 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking addr2line v0.19.0 [INFO] [stderr] Checking color-eyre v0.6.2 [INFO] [stderr] Checking monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::lexer` [INFO] [stdout] --> src/parser.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | lexer::Lexer, [INFO] [stdout] | ^^^^^ could not find `lexer` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0261]: use of undeclared lifetime name `'a` [INFO] [stdout] --> src/parser.rs:247:54 [INFO] [stdout] | [INFO] [stdout] 247 | fn expect(&mut self, want: TokenType) -> Result<&'a [u8]> { [INFO] [stdout] | ^^ undeclared lifetime [INFO] [stdout] | [INFO] [stdout] help: consider introducing lifetime `'a` here [INFO] [stdout] | [INFO] [stdout] 247 | fn expect<'a>(&mut self, want: TokenType) -> Result<&'a [u8]> { [INFO] [stdout] | ++++ [INFO] [stdout] help: consider introducing lifetime `'a` here [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> Parser { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TokenType` in this scope [INFO] [stdout] --> src/parser.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | fn expect(&mut self, want: TokenType) -> Result<&'a [u8]> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0261]: use of undeclared lifetime name `'a` [INFO] [stdout] --> src/parser.rs:247:54 [INFO] [stdout] | [INFO] [stdout] 247 | fn expect(&mut self, want: TokenType) -> Result<&'a [u8]> { [INFO] [stdout] | ^^ undeclared lifetime [INFO] [stdout] | [INFO] [stdout] help: consider introducing lifetime `'a` here [INFO] [stdout] | [INFO] [stdout] 247 | fn expect<'a>(&mut self, want: TokenType) -> Result<&'a [u8]> { [INFO] [stdout] | ++++ [INFO] [stdout] help: consider introducing lifetime `'a` here [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> Parser { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TokenType` in this scope [INFO] [stdout] --> src/parser.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | fn expect(&mut self, want: TokenType) -> Result<&'a [u8]> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/ast.rs:157:38 [INFO] [stdout] | [INFO] [stdout] 157 | _ => return Err(eyre!("[{value}] is not an infix operator")), [INFO] [stdout] | -^^^^^- [INFO] [stdout] | || [INFO] [stdout] | |`Token` cannot be formatted with the default formatter [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Token` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::private::format_args` which comes from the expansion of the macro `eyre` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | self.expect(TokenType::Let)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | let name = self.expect(TokenType::Ident)?.into(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | self.expect(TokenType::Assign)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | let _ = self.expect(TokenType::Semicolon); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | self.expect(TokenType::Return)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | let _ = self.expect(TokenType::Semicolon); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = self.expect(TokenType::Semicolon); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | Some(&t) => match t.token_type { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/parser.rs:81:64 [INFO] [stdout] | [INFO] [stdout] 81 | _ => Err(eyre!("No prefix parse function for [{t}] found")), [INFO] [stdout] | -^- [INFO] [stdout] | || [INFO] [stdout] | |`Token` cannot be formatted with the default formatter [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Token` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::private::format_args` which comes from the expansion of the macro `eyre` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | if infix_token.token_type == TokenType::LParen { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:91:42 [INFO] [stdout] | [INFO] [stdout] 91 | if infix_token.token_type == TokenType::LParen { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | let ident = self.expect(TokenType::Ident)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:114:31 [INFO] [stdout] | [INFO] [stdout] 114 | let num = self.expect(TokenType::Int)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | .token_type [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | self.expect(TokenType::If)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | let alternative = match self.expect(TokenType::Else) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | self.expect(TokenType::Function)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | self.expect(TokenType::LBrace)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | if token.token_type == TokenType::RBrace { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:174:36 [INFO] [stdout] | [INFO] [stdout] 174 | if token.token_type == TokenType::RBrace { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | self.expect(TokenType::RBrace)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:186:24 [INFO] [stdout] | [INFO] [stdout] 186 | if self.expect(TokenType::RParen).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/ast.rs:157:38 [INFO] [stdout] | [INFO] [stdout] 157 | _ => return Err(eyre!("[{value}] is not an infix operator")), [INFO] [stdout] | -^^^^^- [INFO] [stdout] | || [INFO] [stdout] | |`Token` cannot be formatted with the default formatter [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Token` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::private::format_args` which comes from the expansion of the macro `eyre` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:193:27 [INFO] [stdout] | [INFO] [stdout] 193 | while self.expect(TokenType::Comma).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | self.expect(TokenType::Let)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | let name = self.expect(TokenType::Ident)?.into(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | self.expect(TokenType::Assign)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | let _ = self.expect(TokenType::Semicolon); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | self.expect(TokenType::Return)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | let _ = self.expect(TokenType::Semicolon); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = self.expect(TokenType::Semicolon); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:197:21 [INFO] [stdout] | [INFO] [stdout] 197 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:207:21 [INFO] [stdout] | [INFO] [stdout] 207 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | if self.expect(TokenType::RParen).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:215:27 [INFO] [stdout] | [INFO] [stdout] 215 | while self.expect(TokenType::Comma).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | Some(&t) => match t.token_type { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Token` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/parser.rs:81:64 [INFO] [stdout] | [INFO] [stdout] 81 | _ => Err(eyre!("No prefix parse function for [{t}] found")), [INFO] [stdout] | -^- [INFO] [stdout] | || [INFO] [stdout] | |`Token` cannot be formatted with the default formatter [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Token` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::private::format_args` which comes from the expansion of the macro `eyre` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | if infix_token.token_type == TokenType::LParen { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:224:47 [INFO] [stdout] | [INFO] [stdout] 224 | let op = match self.l.next().unwrap().token_type { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:91:42 [INFO] [stdout] | [INFO] [stdout] 91 | if infix_token.token_type == TokenType::LParen { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | if t.token_type == TokenType::Semicolon { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:241:32 [INFO] [stdout] | [INFO] [stdout] 241 | if t.token_type == TokenType::Semicolon { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:249:27 [INFO] [stdout] | [INFO] [stdout] 249 | Some(&t) if t.token_type == want => { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `literal` on type `Token` [INFO] [stdout] --> src/parser.rs:251:22 [INFO] [stdout] | [INFO] [stdout] 251 | Ok(t.literal) [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:253:68 [INFO] [stdout] | [INFO] [stdout] 253 | Some(&t) => Err(eyre!("Wanted {want:?}, found {:?}", t.token_type)), [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | let ident = self.expect(TokenType::Ident)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:114:31 [INFO] [stdout] | [INFO] [stdout] 114 | let num = self.expect(TokenType::Int)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | .token_type [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | self.expect(TokenType::If)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | let alternative = match self.expect(TokenType::Else) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | self.expect(TokenType::Function)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | self.expect(TokenType::LBrace)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:174:22 [INFO] [stdout] | [INFO] [stdout] 174 | if token.token_type == TokenType::RBrace { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:174:36 [INFO] [stdout] | [INFO] [stdout] 174 | if token.token_type == TokenType::RBrace { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | self.expect(TokenType::RBrace)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:186:24 [INFO] [stdout] | [INFO] [stdout] 186 | if self.expect(TokenType::RParen).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:193:27 [INFO] [stdout] | [INFO] [stdout] 193 | while self.expect(TokenType::Comma).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:197:21 [INFO] [stdout] | [INFO] [stdout] 197 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:207:21 [INFO] [stdout] | [INFO] [stdout] 207 | self.expect(TokenType::LParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | if self.expect(TokenType::RParen).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:215:27 [INFO] [stdout] | [INFO] [stdout] 215 | while self.expect(TokenType::Comma).is_ok() { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | self.expect(TokenType::RParen)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:224:47 [INFO] [stdout] | [INFO] [stdout] 224 | let op = match self.l.next().unwrap().token_type { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 241 | if t.token_type == TokenType::Semicolon { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:241:32 [INFO] [stdout] | [INFO] [stdout] 241 | if t.token_type == TokenType::Semicolon { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:249:27 [INFO] [stdout] | [INFO] [stdout] 249 | Some(&t) if t.token_type == want => { [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `literal` on type `Token` [INFO] [stdout] --> src/parser.rs:251:22 [INFO] [stdout] | [INFO] [stdout] 251 | Ok(t.literal) [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_type` on type `Token` [INFO] [stdout] --> src/parser.rs:253:68 [INFO] [stdout] | [INFO] [stdout] 253 | Some(&t) => Err(eyre!("Wanted {want:?}, found {:?}", t.token_type)), [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/parser.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | while let Some(&first_token) = parser.l.peek() { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `first_token` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 18 - while let Some(&first_token) = parser.l.peek() { [INFO] [stdout] 18 + while let Some(first_token) = parser.l.peek() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/parser.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | while let Some(&first_token) = parser.l.peek() { [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `first_token` has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 18 - while let Some(&first_token) = parser.l.peek() { [INFO] [stdout] 18 + while let Some(first_token) = parser.l.peek() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | TokenType::Function => self.parse_function_expression(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | TokenType::Bang => PrefixOperator::Not, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | TokenType::Minus => PrefixOperator::Negate, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | TokenType::Minus | TokenType::Bang => self.parse_prefix_expr(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | TokenType::Minus | TokenType::Bang => self.parse_prefix_expr(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | TokenType::False => Ok(Expression::Boolean(false)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | TokenType::True => Ok(Expression::Boolean(true)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | TokenType::Ident => self.parse_identifier(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | TokenType::Int => self.parse_integer(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | TokenType::True | TokenType::False => self.parse_boolean(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | TokenType::True | TokenType::False => self.parse_boolean(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | TokenType::LParen => self.parse_grouped_expression(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | TokenType::If => self.parse_if_expression(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0261, E0277, E0412, E0433, E0507, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0261`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | TokenType::Function => self.parse_function_expression(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | TokenType::Bang => PrefixOperator::Not, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | TokenType::Minus => PrefixOperator::Negate, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | TokenType::Minus | TokenType::Bang => self.parse_prefix_expr(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | TokenType::Minus | TokenType::Bang => self.parse_prefix_expr(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | TokenType::False => Ok(Expression::Boolean(false)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | TokenType::True => Ok(Expression::Boolean(true)), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | TokenType::Ident => self.parse_identifier(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | TokenType::Int => self.parse_integer(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | TokenType::True | TokenType::False => self.parse_boolean(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | TokenType::True | TokenType::False => self.parse_boolean(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | TokenType::LParen => self.parse_grouped_expression(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TokenType` [INFO] [stdout] --> src/parser.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | TokenType::If => self.parse_if_expression(), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0261, E0277, E0412, E0432, E0433, E0507, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0261`. [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey` (bin "monkey") due to 56 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `monkey` (bin "monkey" test) due to 57 previous errors [INFO] running `Command { std: "docker" "inspect" "421a800637765a5cb03fee097d80f03cb8d12405d7a09df1ff260d0b7d8a3d29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "421a800637765a5cb03fee097d80f03cb8d12405d7a09df1ff260d0b7d8a3d29", kill_on_drop: false }` [INFO] [stdout] 421a800637765a5cb03fee097d80f03cb8d12405d7a09df1ff260d0b7d8a3d29