[INFO] cloning repository https://github.com/baevm/monkey-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/baevm/monkey-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaevm%2Fmonkey-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaevm%2Fmonkey-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99bdd3d82a0a622994ac328bb7fe6d7171e7dac1 [INFO] checking baevm/monkey-rust/99bdd3d82a0a622994ac328bb7fe6d7171e7dac1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbaevm%2Fmonkey-rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/baevm/monkey-rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/baevm/monkey-rust [INFO] finished tweaking git repo https://github.com/baevm/monkey-rust [INFO] tweaked toml for git repo https://github.com/baevm/monkey-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/baevm/monkey-rust 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72afe392193155bb694334cc097f9a480e22ac185ee0add3457b0a7b784ab71f [INFO] running `Command { std: "docker" "start" "-a" "72afe392193155bb694334cc097f9a480e22ac185ee0add3457b0a7b784ab71f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72afe392193155bb694334cc097f9a480e22ac185ee0add3457b0a7b784ab71f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72afe392193155bb694334cc097f9a480e22ac185ee0add3457b0a7b784ab71f", kill_on_drop: false }` [INFO] [stdout] 72afe392193155bb694334cc097f9a480e22ac185ee0add3457b0a7b784ab71f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90d1ad088ead091016163fb6d8adc364c66b506fb4a0f87db374ee72b17cea28 [INFO] running `Command { std: "docker" "start" "-a" "90d1ad088ead091016163fb6d8adc364c66b506fb4a0f87db374ee72b17cea28", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking monkey-lang-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/repl/repl.rs (1 fix) [INFO] [stderr] Fixed src/parser/parser.rs (2 fixes) [INFO] [stdout] warning: variant `Call` is never constructed [INFO] [stdout] --> src/parser/parser.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 18 | enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Call, // foo_function() [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/token/token.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Kind { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 49 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/lexer/lexer.rs (2 fixes) [INFO] [stderr] Fixed src/ast/ast.rs (2 fixes) [INFO] [stdout] warning: variants `Identifier`, `IntegerLiteral`, `PrefixExpression`, and `InfixExpression` are never constructed [INFO] [stdout] --> src/ast/expression.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Identifier(Identifier), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | IntegerLiteral(IntegerLiteral), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 9 | PrefixExpression(PrefixExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | InfixExpression(InfixExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast/expression.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct IntegerLiteral { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 55 | pub token: Token, // token.Number [INFO] [stdout] 56 | pub value: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntegerLiteral` 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 `LetStatement`, `ReturnStatement`, and `ExpressionStatement` are never constructed [INFO] [stdout] --> src/ast/statement.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 7 | LetStatement(LetStatement), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | ReturnStatement(ReturnStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | ExpressionStatement(ExpressionStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/parser.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Precedence` is never used [INFO] [stdout] --> src/parser/parser.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum Precedence { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_precedence_for_token` is never used [INFO] [stdout] --> src/parser/parser.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Precedence { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 29 | fn get_precedence_for_token(kind: Kind) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/parser.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 45 | pub fn new(lexer: Lexer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn parse_program(&mut self) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn next_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn parse_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn parse_expression(&mut self, precedence: Precedence) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_parsed_prefix_expression(&mut self, kind: Kind) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn get_parsed_infix_expression(&mut self, kind: Kind, left: Expression) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn parse_let_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | fn parse_return_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn parse_expression_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn parse_prefix_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn parse_infix_expression(&mut self, left: Expression) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn expect_peek(&mut self, expected: Kind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn is_curr_token(&self, expected: Kind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | fn is_peek_token(&self, expected: Kind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | fn peek_error(&mut self, token: Kind) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn errors(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn curr_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/token/token.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Kind { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 49 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking monkey-lang-rust v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: variants `Identifier`, `IntegerLiteral`, `PrefixExpression`, and `InfixExpression` are never constructed [INFO] [stdout] --> src/ast/expression.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Identifier(Identifier), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | IntegerLiteral(IntegerLiteral), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 9 | PrefixExpression(PrefixExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | InfixExpression(InfixExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast/expression.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct IntegerLiteral { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 55 | pub token: Token, // token.Number [INFO] [stdout] 56 | pub value: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntegerLiteral` 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 `LetStatement`, `ReturnStatement`, and `ExpressionStatement` are never constructed [INFO] [stdout] --> src/ast/statement.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 7 | LetStatement(LetStatement), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | ReturnStatement(ReturnStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | ExpressionStatement(ExpressionStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/parser.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Precedence` is never used [INFO] [stdout] --> src/parser/parser.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | enum Precedence { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_precedence_for_token` is never used [INFO] [stdout] --> src/parser/parser.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Precedence { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 29 | fn get_precedence_for_token(kind: Kind) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/parser.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 45 | pub fn new(lexer: Lexer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn parse_program(&mut self) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn next_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn parse_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn parse_expression(&mut self, precedence: Precedence) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_parsed_prefix_expression(&mut self, kind: Kind) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn get_parsed_infix_expression(&mut self, kind: Kind, left: Expression) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn parse_let_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | fn parse_return_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn parse_expression_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn parse_prefix_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn parse_infix_expression(&mut self, left: Expression) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn expect_peek(&mut self, expected: Kind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn is_curr_token(&self, expected: Kind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | fn is_peek_token(&self, expected: Kind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | fn peek_error(&mut self, token: Kind) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn errors(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn peek_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn curr_precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/token/token.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Kind { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 49 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Statement` [INFO] [stdout] --> src/ast/ast.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | let stmt = Statement::LetStatement(LetStatement { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Statement` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Statement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LetStatement` in this scope [INFO] [stdout] --> src/ast/ast.rs:41:44 [INFO] [stdout] | [INFO] [stdout] 41 | let stmt = Statement::LetStatement(LetStatement { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::LetStatement; [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Statement::LetStatement; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/ast/ast.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Kind` [INFO] [stdout] --> src/ast/ast.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | kind: Kind::Let, [INFO] [stdout] | ^^^^ use of undeclared type `Kind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Identifier` in this scope [INFO] [stdout] --> src/ast/ast.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | name: Identifier { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Expression::Identifier; [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Identifier; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/ast/ast.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Kind` [INFO] [stdout] --> src/ast/ast.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | kind: Kind::Ident, [INFO] [stdout] | ^^^^ use of undeclared type `Kind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Expression` [INFO] [stdout] --> src/ast/ast.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | value: Some(Expression::Identifier(Identifier { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Expression` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Expression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Identifier` in this scope [INFO] [stdout] --> src/ast/ast.rs:53:48 [INFO] [stdout] | [INFO] [stdout] 53 | value: Some(Expression::Identifier(Identifier { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Expression::Identifier; [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::Identifier; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Token` in this scope [INFO] [stdout] --> src/ast/ast.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | token: Token { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::token::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Kind` [INFO] [stdout] --> src/ast/ast.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | kind: Kind::Ident, [INFO] [stdout] | ^^^^ use of undeclared type `Kind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 38 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Program` in this scope [INFO] [stdout] --> src/ast/ast.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | let program = Program { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 38 + use crate::ast::ast::Program; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:220:14 [INFO] [stdout] | [INFO] [stdout] 220 | (token::Kind::Let, "let"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 220 - (token::Kind::Let, "let"), [INFO] [stdout] 220 + (Kind::Let, "let"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:221:14 [INFO] [stdout] | [INFO] [stdout] 221 | (token::Kind::Ident, "five"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 221 - (token::Kind::Ident, "five"), [INFO] [stdout] 221 + (Kind::Ident, "five"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:222:14 [INFO] [stdout] | [INFO] [stdout] 222 | (token::Kind::Assign, "="), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 222 - (token::Kind::Assign, "="), [INFO] [stdout] 222 + (Kind::Assign, "="), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | (token::Kind::Number, "5"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 223 - (token::Kind::Number, "5"), [INFO] [stdout] 223 + (Kind::Number, "5"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:224:14 [INFO] [stdout] | [INFO] [stdout] 224 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 224 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 224 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:225:14 [INFO] [stdout] | [INFO] [stdout] 225 | (token::Kind::Let, "let"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 225 - (token::Kind::Let, "let"), [INFO] [stdout] 225 + (Kind::Let, "let"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:226:14 [INFO] [stdout] | [INFO] [stdout] 226 | (token::Kind::Ident, "ten"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 226 - (token::Kind::Ident, "ten"), [INFO] [stdout] 226 + (Kind::Ident, "ten"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:227:14 [INFO] [stdout] | [INFO] [stdout] 227 | (token::Kind::Assign, "="), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 227 - (token::Kind::Assign, "="), [INFO] [stdout] 227 + (Kind::Assign, "="), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:228:14 [INFO] [stdout] | [INFO] [stdout] 228 | (token::Kind::Number, "10"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 228 - (token::Kind::Number, "10"), [INFO] [stdout] 228 + (Kind::Number, "10"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 229 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 229 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:230:14 [INFO] [stdout] | [INFO] [stdout] 230 | (token::Kind::Let, "let"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 230 - (token::Kind::Let, "let"), [INFO] [stdout] 230 + (Kind::Let, "let"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:231:14 [INFO] [stdout] | [INFO] [stdout] 231 | (token::Kind::Ident, "add"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 231 - (token::Kind::Ident, "add"), [INFO] [stdout] 231 + (Kind::Ident, "add"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:232:14 [INFO] [stdout] | [INFO] [stdout] 232 | (token::Kind::Assign, "="), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 232 - (token::Kind::Assign, "="), [INFO] [stdout] 232 + (Kind::Assign, "="), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | (token::Kind::Function, "function"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 233 - (token::Kind::Function, "function"), [INFO] [stdout] 233 + (Kind::Function, "function"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:234:14 [INFO] [stdout] | [INFO] [stdout] 234 | (token::Kind::Lparen, "("), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 234 - (token::Kind::Lparen, "("), [INFO] [stdout] 234 + (Kind::Lparen, "("), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:235:14 [INFO] [stdout] | [INFO] [stdout] 235 | (token::Kind::Ident, "x"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 235 - (token::Kind::Ident, "x"), [INFO] [stdout] 235 + (Kind::Ident, "x"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | (token::Kind::Comma, ","), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 236 - (token::Kind::Comma, ","), [INFO] [stdout] 236 + (Kind::Comma, ","), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:237:14 [INFO] [stdout] | [INFO] [stdout] 237 | (token::Kind::Ident, "y"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 237 - (token::Kind::Ident, "y"), [INFO] [stdout] 237 + (Kind::Ident, "y"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 238 | (token::Kind::Rparen, ")"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 238 - (token::Kind::Rparen, ")"), [INFO] [stdout] 238 + (Kind::Rparen, ")"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:239:14 [INFO] [stdout] | [INFO] [stdout] 239 | (token::Kind::Lbrace, "{"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 239 - (token::Kind::Lbrace, "{"), [INFO] [stdout] 239 + (Kind::Lbrace, "{"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:240:14 [INFO] [stdout] | [INFO] [stdout] 240 | (token::Kind::Return, "return"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 240 - (token::Kind::Return, "return"), [INFO] [stdout] 240 + (Kind::Return, "return"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:241:14 [INFO] [stdout] | [INFO] [stdout] 241 | (token::Kind::Ident, "x"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 241 - (token::Kind::Ident, "x"), [INFO] [stdout] 241 + (Kind::Ident, "x"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:242:14 [INFO] [stdout] | [INFO] [stdout] 242 | (token::Kind::Plus, "+"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 242 - (token::Kind::Plus, "+"), [INFO] [stdout] 242 + (Kind::Plus, "+"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:243:14 [INFO] [stdout] | [INFO] [stdout] 243 | (token::Kind::Ident, "y"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 243 - (token::Kind::Ident, "y"), [INFO] [stdout] 243 + (Kind::Ident, "y"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:244:14 [INFO] [stdout] | [INFO] [stdout] 244 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 244 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 244 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:245:14 [INFO] [stdout] | [INFO] [stdout] 245 | (token::Kind::Rbrace, "}"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 245 - (token::Kind::Rbrace, "}"), [INFO] [stdout] 245 + (Kind::Rbrace, "}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 246 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 246 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:247:14 [INFO] [stdout] | [INFO] [stdout] 247 | (token::Kind::Let, "let"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 247 - (token::Kind::Let, "let"), [INFO] [stdout] 247 + (Kind::Let, "let"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:248:14 [INFO] [stdout] | [INFO] [stdout] 248 | (token::Kind::Ident, "result"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 248 - (token::Kind::Ident, "result"), [INFO] [stdout] 248 + (Kind::Ident, "result"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:249:14 [INFO] [stdout] | [INFO] [stdout] 249 | (token::Kind::Assign, "="), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 249 - (token::Kind::Assign, "="), [INFO] [stdout] 249 + (Kind::Assign, "="), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:250:14 [INFO] [stdout] | [INFO] [stdout] 250 | (token::Kind::Ident, "add"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 250 - (token::Kind::Ident, "add"), [INFO] [stdout] 250 + (Kind::Ident, "add"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:251:14 [INFO] [stdout] | [INFO] [stdout] 251 | (token::Kind::Lparen, "("), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 251 - (token::Kind::Lparen, "("), [INFO] [stdout] 251 + (Kind::Lparen, "("), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 252 | (token::Kind::Ident, "five"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 252 - (token::Kind::Ident, "five"), [INFO] [stdout] 252 + (Kind::Ident, "five"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 253 | (token::Kind::Comma, ","), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 253 - (token::Kind::Comma, ","), [INFO] [stdout] 253 + (Kind::Comma, ","), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:254:14 [INFO] [stdout] | [INFO] [stdout] 254 | (token::Kind::Ident, "ten"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 254 - (token::Kind::Ident, "ten"), [INFO] [stdout] 254 + (Kind::Ident, "ten"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:255:14 [INFO] [stdout] | [INFO] [stdout] 255 | (token::Kind::Rparen, ")"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 255 - (token::Kind::Rparen, ")"), [INFO] [stdout] 255 + (Kind::Rparen, ")"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:256:14 [INFO] [stdout] | [INFO] [stdout] 256 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 256 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 256 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:257:14 [INFO] [stdout] | [INFO] [stdout] 257 | (token::Kind::Bang, "!"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 257 - (token::Kind::Bang, "!"), [INFO] [stdout] 257 + (Kind::Bang, "!"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | (token::Kind::Minus, "-"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 258 - (token::Kind::Minus, "-"), [INFO] [stdout] 258 + (Kind::Minus, "-"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:259:14 [INFO] [stdout] | [INFO] [stdout] 259 | (token::Kind::Slash, "/"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 259 - (token::Kind::Slash, "/"), [INFO] [stdout] 259 + (Kind::Slash, "/"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | (token::Kind::Asterisk, "*"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 260 - (token::Kind::Asterisk, "*"), [INFO] [stdout] 260 + (Kind::Asterisk, "*"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:261:14 [INFO] [stdout] | [INFO] [stdout] 261 | (token::Kind::Number, "5"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 261 - (token::Kind::Number, "5"), [INFO] [stdout] 261 + (Kind::Number, "5"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 262 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 262 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:263:14 [INFO] [stdout] | [INFO] [stdout] 263 | (token::Kind::Number, "5"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 263 - (token::Kind::Number, "5"), [INFO] [stdout] 263 + (Kind::Number, "5"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:264:14 [INFO] [stdout] | [INFO] [stdout] 264 | (token::Kind::Lt, "<"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 264 - (token::Kind::Lt, "<"), [INFO] [stdout] 264 + (Kind::Lt, "<"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | (token::Kind::Number, "10"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 265 - (token::Kind::Number, "10"), [INFO] [stdout] 265 + (Kind::Number, "10"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:266:14 [INFO] [stdout] | [INFO] [stdout] 266 | (token::Kind::Gt, ">"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 266 - (token::Kind::Gt, ">"), [INFO] [stdout] 266 + (Kind::Gt, ">"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:267:14 [INFO] [stdout] | [INFO] [stdout] 267 | (token::Kind::Number, "5"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 267 - (token::Kind::Number, "5"), [INFO] [stdout] 267 + (Kind::Number, "5"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:268:14 [INFO] [stdout] | [INFO] [stdout] 268 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 268 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 268 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | (token::Kind::If, "if"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 269 - (token::Kind::If, "if"), [INFO] [stdout] 269 + (Kind::If, "if"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | (token::Kind::Lparen, "("), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 270 - (token::Kind::Lparen, "("), [INFO] [stdout] 270 + (Kind::Lparen, "("), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 271 | (token::Kind::Number, "5"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 271 - (token::Kind::Number, "5"), [INFO] [stdout] 271 + (Kind::Number, "5"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:272:14 [INFO] [stdout] | [INFO] [stdout] 272 | (token::Kind::Lt, "<"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 272 - (token::Kind::Lt, "<"), [INFO] [stdout] 272 + (Kind::Lt, "<"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:273:14 [INFO] [stdout] | [INFO] [stdout] 273 | (token::Kind::Number, "10"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 273 - (token::Kind::Number, "10"), [INFO] [stdout] 273 + (Kind::Number, "10"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:274:14 [INFO] [stdout] | [INFO] [stdout] 274 | (token::Kind::Rparen, ")"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 274 - (token::Kind::Rparen, ")"), [INFO] [stdout] 274 + (Kind::Rparen, ")"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:275:14 [INFO] [stdout] | [INFO] [stdout] 275 | (token::Kind::Lbrace, "{"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 275 - (token::Kind::Lbrace, "{"), [INFO] [stdout] 275 + (Kind::Lbrace, "{"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:276:14 [INFO] [stdout] | [INFO] [stdout] 276 | (token::Kind::Return, "return"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 276 - (token::Kind::Return, "return"), [INFO] [stdout] 276 + (Kind::Return, "return"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:277:14 [INFO] [stdout] | [INFO] [stdout] 277 | (token::Kind::True, "true"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 277 - (token::Kind::True, "true"), [INFO] [stdout] 277 + (Kind::True, "true"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:278:14 [INFO] [stdout] | [INFO] [stdout] 278 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 278 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 278 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:279:14 [INFO] [stdout] | [INFO] [stdout] 279 | (token::Kind::Rbrace, "}"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 279 - (token::Kind::Rbrace, "}"), [INFO] [stdout] 279 + (Kind::Rbrace, "}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:280:14 [INFO] [stdout] | [INFO] [stdout] 280 | (token::Kind::Else, "else"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 280 - (token::Kind::Else, "else"), [INFO] [stdout] 280 + (Kind::Else, "else"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:281:14 [INFO] [stdout] | [INFO] [stdout] 281 | (token::Kind::Lbrace, "{"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 281 - (token::Kind::Lbrace, "{"), [INFO] [stdout] 281 + (Kind::Lbrace, "{"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:282:14 [INFO] [stdout] | [INFO] [stdout] 282 | (token::Kind::Return, "return"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 282 - (token::Kind::Return, "return"), [INFO] [stdout] 282 + (Kind::Return, "return"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:283:14 [INFO] [stdout] | [INFO] [stdout] 283 | (token::Kind::False, "false"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 283 - (token::Kind::False, "false"), [INFO] [stdout] 283 + (Kind::False, "false"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:284:14 [INFO] [stdout] | [INFO] [stdout] 284 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 284 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 284 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | (token::Kind::Rbrace, "}"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 285 - (token::Kind::Rbrace, "}"), [INFO] [stdout] 285 + (Kind::Rbrace, "}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:286:14 [INFO] [stdout] | [INFO] [stdout] 286 | (token::Kind::Number, "10"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 286 - (token::Kind::Number, "10"), [INFO] [stdout] 286 + (Kind::Number, "10"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:287:14 [INFO] [stdout] | [INFO] [stdout] 287 | (token::Kind::Eq, "=="), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 287 - (token::Kind::Eq, "=="), [INFO] [stdout] 287 + (Kind::Eq, "=="), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:288:14 [INFO] [stdout] | [INFO] [stdout] 288 | (token::Kind::Number, "10"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 288 - (token::Kind::Number, "10"), [INFO] [stdout] 288 + (Kind::Number, "10"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:289:14 [INFO] [stdout] | [INFO] [stdout] 289 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 289 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 289 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:290:14 [INFO] [stdout] | [INFO] [stdout] 290 | (token::Kind::Number, "10"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 290 - (token::Kind::Number, "10"), [INFO] [stdout] 290 + (Kind::Number, "10"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | (token::Kind::Neq, "!="), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 291 - (token::Kind::Neq, "!="), [INFO] [stdout] 291 + (Kind::Neq, "!="), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:292:14 [INFO] [stdout] | [INFO] [stdout] 292 | (token::Kind::Number, "9"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 292 - (token::Kind::Number, "9"), [INFO] [stdout] 292 + (Kind::Number, "9"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:293:14 [INFO] [stdout] | [INFO] [stdout] 293 | (token::Kind::Semicolon, ";"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 293 - (token::Kind::Semicolon, ";"), [INFO] [stdout] 293 + (Kind::Semicolon, ";"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/lexer/lexer.rs:294:14 [INFO] [stdout] | [INFO] [stdout] 294 | (token::Kind::Eof, ""), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::token::Kind; [INFO] [stdout] | [INFO] [stdout] help: if you import `Kind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 294 - (token::Kind::Eof, ""), [INFO] [stdout] 294 + (Kind::Eof, ""), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> src/lexer/lexer.rs:297:25 [INFO] [stdout] | [INFO] [stdout] 297 | let mut lexer = Lexer::new(input); [INFO] [stdout] | ^^^^^ use of undeclared type `Lexer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 194 + use crate::lexer::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `0` on type `&_` [INFO] [stdout] --> src/lexer/lexer.rs:303:22 [INFO] [stdout] | [INFO] [stdout] 303 | test.0, token.kind, [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 89 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey-lang-rust` (bin "monkey-lang-rust" test) due to 90 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "90d1ad088ead091016163fb6d8adc364c66b506fb4a0f87db374ee72b17cea28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90d1ad088ead091016163fb6d8adc364c66b506fb4a0f87db374ee72b17cea28", kill_on_drop: false }` [INFO] [stdout] 90d1ad088ead091016163fb6d8adc364c66b506fb4a0f87db374ee72b17cea28