[INFO] cloning repository https://github.com/JosephPrichard/Equinox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JosephPrichard/Equinox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephPrichard%2FEquinox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephPrichard%2FEquinox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6674f476b26ac412fd00e4c3cace85c5ecc4d3aa [INFO] checking JosephPrichard/Equinox/6674f476b26ac412fd00e4c3cace85c5ecc4d3aa against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJosephPrichard%2FEquinox" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JosephPrichard/Equinox 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/JosephPrichard/Equinox [INFO] finished tweaking git repo https://github.com/JosephPrichard/Equinox [INFO] tweaked toml for git repo https://github.com/JosephPrichard/Equinox written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JosephPrichard/Equinox 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] [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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9fb940338e3cb89b2353e8b728d88742abac77b395cf3812ac6a704f24bb9be [INFO] running `Command { std: "docker" "start" "-a" "d9fb940338e3cb89b2353e8b728d88742abac77b395cf3812ac6a704f24bb9be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9fb940338e3cb89b2353e8b728d88742abac77b395cf3812ac6a704f24bb9be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9fb940338e3cb89b2353e8b728d88742abac77b395cf3812ac6a704f24bb9be", kill_on_drop: false }` [INFO] [stdout] d9fb940338e3cb89b2353e8b728d88742abac77b395cf3812ac6a704f24bb9be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3105f5f9f1f0f9e85c29020537782c1954239e8d7936927e204ea033ac908346 [INFO] running `Command { std: "docker" "start" "-a" "3105f5f9f1f0f9e85c29020537782c1954239e8d7936927e204ea033ac908346", 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 howdy v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lexer.rs (3 fixes) [INFO] [stderr] Fixed src/parser.rs (7 fixes) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interpreter.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | Node::Variable(v) => panic!("Variable access not yet implemented"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | fn new(tokens: VecDeque) -> Parser { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn peek_token(&self) -> Option<&TokenContext> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn consume_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn next_token(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn advance_token(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn expect_token(&mut self, expected: Token) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn parse_program(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn parse_import(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn parse_def_func(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn parse_type_pairs(&mut self, term: Token) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn parse_ret_type(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn parse_type(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn parse_fn_type(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn parse_def_type(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn parse_def_struct(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RunErr` is never used [INFO] [stdout] --> src/interpreter.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum RunErr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `undefined` is never used [INFO] [stdout] --> src/interpreter.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl RunErr { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 13 | fn undefined(iden: &str) -> RunErr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StackFrame` is never used [INFO] [stdout] --> src/interpreter.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | type StackFrame = Vec<(String, Const)>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Environment` is never constructed [INFO] [stdout] --> src/interpreter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `pop`, `top`, `write`, and `read` are never used [INFO] [stdout] --> src/interpreter.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Environment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 25 | pub fn push(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn top(&mut self) -> &mut StackFrame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn write(&mut self, iden: &str, constant: Const) -> Result<(), RunErr> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn read(&mut self, iden: &str) -> Result<&Const, RunErr> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ExprResult` is never used [INFO] [stdout] --> src/interpreter.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub type ExprResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_node` is never used [INFO] [stdout] --> src/interpreter.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn eval_node(node: &Node) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_binary_expr` is never used [INFO] [stdout] --> src/interpreter.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn eval_binary_expr(node: &BinopNode) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_unary_expr` is never used [INFO] [stdout] --> src/interpreter.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn eval_unary_expr(node: &UnopNode) -> ExprResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_func` is never used [INFO] [stdout] --> src/interpreter.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn eval_func(func: &FuncNode) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/node.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | DefFunc(DefFuncNode), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | DefStruct(DefStructNode), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | DefTypeAlias(DefTypeAliasNode), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | Import(ImportNode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Constant(Const), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | Variable(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | Binop(BinopNode), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Unop(UnopNode), [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | CallFunc(FuncNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | If(IfNode), [INFO] [stdout] | ^^ [INFO] [stdout] 17 | Else(Vec), [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Guard(GuardNode), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | While(WhileNode), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | For(ForNode), [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | Assign(String, Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | Return(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | Func(FuncNode), [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | Struct(StructNode), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Array(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Tuple(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | Range(i32, i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | Lambda(LambdaNode) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Array`, `Fn`, and `Iden` are never constructed [INFO] [stdout] --> src/node.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum TypeNode { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 35 | Array(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Fn(Vec, Option>), [INFO] [stdout] | ^^ [INFO] [stdout] 37 | Iden(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, `Bool`, `Char`, and `String` are never constructed [INFO] [stdout] --> src/node.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 122 | pub enum Const { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 123 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 124 | Float(f64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 126 | Char(char), [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Const` 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: multiple variants are never constructed [INFO] [stdout] --> src/node.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum Bop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 132 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] 134 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 135 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 136 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 137 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 138 | Neq, [INFO] [stdout] | ^^^ [INFO] [stdout] 139 | Leq, [INFO] [stdout] | ^^^ [INFO] [stdout] 140 | Geq, [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | Lt, [INFO] [stdout] | ^^ [INFO] [stdout] 142 | Gt, [INFO] [stdout] | ^^ [INFO] [stdout] 143 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Not` and `Minus` are never constructed [INFO] [stdout] --> src/node.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 148 | pub enum Uop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 149 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] 150 | Minus [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Uop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 33 | IntLit(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | FloatLit(f64), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | CharLit(char), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | StrLit(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | LParen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 38 | RParen, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | LBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 40 | RBracket, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 41 | LBrace, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | RBrace, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | Declare, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | Assign, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 47 | AssignOp(Aop), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | Operator(Op), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | Iden(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | True, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | False, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 52 | Fn, [INFO] [stdout] | ^^ [INFO] [stdout] 53 | Struct, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 54 | Type, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 59 | For, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | In, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | Import, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 63 | Arrow, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lexer.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum Op { [INFO] [stdout] | -- variants in this enum [INFO] [stdout] 68 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] 70 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 73 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 74 | Neq, [INFO] [stdout] | ^^^ [INFO] [stdout] 75 | Leq, [INFO] [stdout] | ^^^ [INFO] [stdout] 76 | Geq, [INFO] [stdout] | ^^^ [INFO] [stdout] 77 | Lt, [INFO] [stdout] | ^^ [INFO] [stdout] 78 | Gt, [INFO] [stdout] | ^^ [INFO] [stdout] 79 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 80 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 81 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Plus`, `Exp`, `Minus`, `Multiply`, and `Divide` are never constructed [INFO] [stdout] --> src/lexer.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum Aop { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 86 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 87 | Exp, [INFO] [stdout] | ^^^ [INFO] [stdout] 88 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 89 | Multiply, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 90 | Divide, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Aop` 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 `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl Lexer { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 144 | pub fn new(reader: BufReader) -> Lexer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn read(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn peek(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn consume(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn skip_spaces(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn match_escseq(c: char, term: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn match_control(&mut self, c: char, lpos: Position) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn is_control(c: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn scan_text(&mut self, term: char) -> Result<(String, Position, Position), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn scan_char(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn scan_string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | fn scan_number(&mut self, c: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn scan_keyword(&mut self, c: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | fn scan_special(&mut self, c: char) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn read_token(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | pub fn read_tokens(&mut self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lex_tokens` is never used [INFO] [stdout] --> src/lexer.rs:403:8 [INFO] [stdout] | [INFO] [stdout] 403 | fn lex_tokens(reader: BufReader) -> VecDeque { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BufReader` [INFO] [stdout] --> src/parser.rs:219:22 [INFO] [stdout] | [INFO] [stdout] 219 | let reader = BufReader::new(Cursor::new(program)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BufReader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use std::io::BufReader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/parser.rs:219:37 [INFO] [stdout] | [INFO] [stdout] 219 | let reader = BufReader::new(Cursor::new(program)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 210 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 210 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 210 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 210 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lexer` [INFO] [stdout] --> src/parser.rs:220:22 [INFO] [stdout] | [INFO] [stdout] 220 | let tokens = Lexer::new(reader).read_tokens().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Lexer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Lexer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser.rs:223:28 [INFO] [stdout] | [INFO] [stdout] 223 | let actual_nodes = Parser::new(tokens).parse_program().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefStruct` in this scope [INFO] [stdout] --> src/parser.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | DefStruct(DefStructNode{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::DefStruct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DefStructNode` in this scope [INFO] [stdout] --> src/parser.rs:225:23 [INFO] [stdout] | [INFO] [stdout] 225 | DefStruct(DefStructNode{ [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::DefStructNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:228:39 [INFO] [stdout] | [INFO] [stdout] 228 | ("x".to_string(), TypeNode::Iden("int".to_string())), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:229:39 [INFO] [stdout] | [INFO] [stdout] 229 | ("y".to_string(), TypeNode::Iden("int".to_string())) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefFunc` in this scope [INFO] [stdout] --> src/parser.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | DefFunc(DefFuncNode { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::DefFunc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DefFuncNode` in this scope [INFO] [stdout] --> src/parser.rs:232:21 [INFO] [stdout] | [INFO] [stdout] 232 | DefFunc(DefFuncNode { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::DefFuncNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:235:40 [INFO] [stdout] | [INFO] [stdout] 235 | ("p1".to_string(), TypeNode::Iden("Point".to_string())), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:236:40 [INFO] [stdout] | [INFO] [stdout] 236 | ("p2".to_string(), TypeNode::Iden("Point".to_string())) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:238:27 [INFO] [stdout] | [INFO] [stdout] 238 | ret: Some(TypeNode::Array( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:239:30 [INFO] [stdout] | [INFO] [stdout] 239 | Box::new(TypeNode::Iden("Point".to_string())) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `While` in this scope [INFO] [stdout] --> src/parser.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | While(WhileNode{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Token::While; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::While; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WhileNode` in this scope [INFO] [stdout] --> src/parser.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | While(WhileNode{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::WhileNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Binop` in this scope [INFO] [stdout] --> src/parser.rs:251:32 [INFO] [stdout] | [INFO] [stdout] 251 | cond: Box::new(Binop(BinopNode { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Binop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BinopNode` in this scope [INFO] [stdout] --> src/parser.rs:251:38 [INFO] [stdout] | [INFO] [stdout] 251 | cond: Box::new(Binop(BinopNode { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::BinopNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bop` [INFO] [stdout] --> src/parser.rs:252:25 [INFO] [stdout] | [INFO] [stdout] 252 | op: Bop::Lt, [INFO] [stdout] | ^^^ use of undeclared type `Bop` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 252 | op: Box::Lt, [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Bop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:253:35 [INFO] [stdout] | [INFO] [stdout] 253 | lhs: Box::new(Variable("i".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:254:35 [INFO] [stdout] | [INFO] [stdout] 254 | rhs: Box::new(Variable("n".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Assign` in this scope [INFO] [stdout] --> src/parser.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 257 | Assign( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Token::Assign; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Assign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Binop` in this scope [INFO] [stdout] --> src/parser.rs:259:34 [INFO] [stdout] | [INFO] [stdout] 259 | Box::new(Binop(BinopNode { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Binop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BinopNode` in this scope [INFO] [stdout] --> src/parser.rs:259:40 [INFO] [stdout] | [INFO] [stdout] 259 | Box::new(Binop(BinopNode { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::BinopNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Multiply` in this scope [INFO] [stdout] --> src/parser.rs:260:33 [INFO] [stdout] | [INFO] [stdout] 260 | ... op: Multiply, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Aop::Multiply; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Op::Multiply; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Bop::Multiply; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:261:43 [INFO] [stdout] | [INFO] [stdout] 261 | ... lhs: Box::new(Variable("acc".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:262:43 [INFO] [stdout] | [INFO] [stdout] 262 | ... rhs: Box::new(Variable("x".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Assign` in this scope [INFO] [stdout] --> src/parser.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | Assign( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Token::Assign; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Assign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Binop` in this scope [INFO] [stdout] --> src/parser.rs:267:34 [INFO] [stdout] | [INFO] [stdout] 267 | Box::new(Binop(BinopNode { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Binop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BinopNode` in this scope [INFO] [stdout] --> src/parser.rs:267:40 [INFO] [stdout] | [INFO] [stdout] 267 | Box::new(Binop(BinopNode { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::BinopNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Plus` in this scope [INFO] [stdout] --> src/parser.rs:268:33 [INFO] [stdout] | [INFO] [stdout] 268 | ... op: Plus, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Aop::Plus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Op::Plus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Bop::Plus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:269:43 [INFO] [stdout] | [INFO] [stdout] 269 | ... lhs: Box::new(Variable("i".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:270:43 [INFO] [stdout] | [INFO] [stdout] 270 | ... rhs: Box::new(Variable("1".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefFunc` in this scope [INFO] [stdout] --> src/parser.rs:280:13 [INFO] [stdout] | [INFO] [stdout] 280 | DefFunc(DefFuncNode{ [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::DefFunc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DefFuncNode` in this scope [INFO] [stdout] --> src/parser.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | DefFunc(DefFuncNode{ [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::DefFuncNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:282:46 [INFO] [stdout] | [INFO] [stdout] 282 | args: vec![("n".to_string(), TypeNode::Iden("int".to_string()))], [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeNode` [INFO] [stdout] --> src/parser.rs:283:27 [INFO] [stdout] | [INFO] [stdout] 283 | ret: Some(TypeNode::Iden("int".to_string())), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TypeNode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::TypeNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Guard` in this scope [INFO] [stdout] --> src/parser.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | Guard(GuardNode{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Guard; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GuardNode` in this scope [INFO] [stdout] --> src/parser.rs:285:27 [INFO] [stdout] | [INFO] [stdout] 285 | Guard(GuardNode{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::GuardNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Binop` in this scope [INFO] [stdout] --> src/parser.rs:286:40 [INFO] [stdout] | [INFO] [stdout] 286 | cond: Box::new(Binop(BinopNode{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Binop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BinopNode` in this scope [INFO] [stdout] --> src/parser.rs:286:46 [INFO] [stdout] | [INFO] [stdout] 286 | cond: Box::new(Binop(BinopNode{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::BinopNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Leq` in this scope [INFO] [stdout] --> src/parser.rs:287:33 [INFO] [stdout] | [INFO] [stdout] 287 | ... op: Leq, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Op::Leq; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Bop::Leq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:288:43 [INFO] [stdout] | [INFO] [stdout] 288 | ... lhs: Box::new(Variable("n".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Constant` in this scope [INFO] [stdout] --> src/parser.rs:289:43 [INFO] [stdout] | [INFO] [stdout] 289 | ... rhs: Box::new(Constant(Int(0))), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Constant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Int` in this scope [INFO] [stdout] --> src/parser.rs:289:52 [INFO] [stdout] | [INFO] [stdout] 289 | ... rhs: Box::new(Constant(Int(0))), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Const::Int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Constant` in this scope [INFO] [stdout] --> src/parser.rs:291:40 [INFO] [stdout] | [INFO] [stdout] 291 | this: Box::new(Constant(Int(0))), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Constant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Int` in this scope [INFO] [stdout] --> src/parser.rs:291:49 [INFO] [stdout] | [INFO] [stdout] 291 | this: Box::new(Constant(Int(0))), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Const::Int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Return` in this scope [INFO] [stdout] --> src/parser.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | Return(Box::new(Binop(BinopNode{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Token::Return; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Return; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Binop` in this scope [INFO] [stdout] --> src/parser.rs:293:37 [INFO] [stdout] | [INFO] [stdout] 293 | Return(Box::new(Binop(BinopNode{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Binop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BinopNode` in this scope [INFO] [stdout] --> src/parser.rs:293:43 [INFO] [stdout] | [INFO] [stdout] 293 | Return(Box::new(Binop(BinopNode{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::BinopNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Plus` in this scope [INFO] [stdout] --> src/parser.rs:294:29 [INFO] [stdout] | [INFO] [stdout] 294 | op: Plus, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Aop::Plus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Op::Plus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Bop::Plus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Func` in this scope [INFO] [stdout] --> src/parser.rs:295:39 [INFO] [stdout] | [INFO] [stdout] 295 | lhs: Box::new(Func(FuncNode{ [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Func; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FuncNode` in this scope [INFO] [stdout] --> src/parser.rs:295:44 [INFO] [stdout] | [INFO] [stdout] 295 | lhs: Box::new(Func(FuncNode{ [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::FuncNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Binop` in this scope [INFO] [stdout] --> src/parser.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | ... Binop(BinopNode{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Binop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BinopNode` in this scope [INFO] [stdout] --> src/parser.rs:298:39 [INFO] [stdout] | [INFO] [stdout] 298 | ... Binop(BinopNode{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::BinopNode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Minus` in this scope [INFO] [stdout] --> src/parser.rs:299:41 [INFO] [stdout] | [INFO] [stdout] 299 | ... op: Minus, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Aop::Minus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::lexer::Op::Minus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Bop::Minus; [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Uop::Minus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Variable` in this scope [INFO] [stdout] --> src/parser.rs:300:51 [INFO] [stdout] | [INFO] [stdout] 300 | ... lhs: Box::new(Variable("n".to_string())), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Constant` in this scope [INFO] [stdout] --> src/parser.rs:301:51 [INFO] [stdout] | [INFO] [stdout] 301 | ... rhs: Box::new(Constant(Int(1))), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Constant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Int` in this scope [INFO] [stdout] --> src/parser.rs:301:60 [INFO] [stdout] | [INFO] [stdout] 301 | ... rhs: Box::new(Constant(Int(1))), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Const::Int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Constant` in this scope [INFO] [stdout] --> src/parser.rs:305:39 [INFO] [stdout] | [INFO] [stdout] 305 | rhs: Box::new(Constant(Int(1))), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Node::Constant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Int` in this scope [INFO] [stdout] --> src/parser.rs:305:48 [INFO] [stdout] | [INFO] [stdout] 305 | rhs: Box::new(Constant(Int(1))), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 210 + use crate::node::Const::Int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lexer.rs:417:37 [INFO] [stdout] | [INFO] [stdout] 417 | let reader = BufReader::new(Cursor::new(text.clone())); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lexer.rs:437:37 [INFO] [stdout] | [INFO] [stdout] 437 | let reader = BufReader::new(Cursor::new(program)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Declare` in this scope [INFO] [stdout] --> src/lexer.rs:441:13 [INFO] [stdout] | [INFO] [stdout] 441 | Declare, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Declare; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IntLit` in this scope [INFO] [stdout] --> src/lexer.rs:442:13 [INFO] [stdout] | [INFO] [stdout] 442 | IntLit(0), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::IntLit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:443:13 [INFO] [stdout] | [INFO] [stdout] 443 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `While` in this scope [INFO] [stdout] --> src/lexer.rs:444:13 [INFO] [stdout] | [INFO] [stdout] 444 | While, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::While; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::Node::While; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:445:13 [INFO] [stdout] | [INFO] [stdout] 445 | Iden("i".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Operator` in this scope [INFO] [stdout] --> src/lexer.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | Operator(Op::Lt), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Operator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lexer.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | Operator(Op::Lt), [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Op; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 447 | Iden("n".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LBrace` in this scope [INFO] [stdout] --> src/lexer.rs:448:13 [INFO] [stdout] | [INFO] [stdout] 448 | LBrace, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::LBrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Assign` in this scope [INFO] [stdout] --> src/lexer.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | Assign, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Assign; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::Node::Assign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:451:13 [INFO] [stdout] | [INFO] [stdout] 451 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Operator` in this scope [INFO] [stdout] --> src/lexer.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | Operator(Op::Plus), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Operator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lexer.rs:452:22 [INFO] [stdout] | [INFO] [stdout] 452 | Operator(Op::Plus), [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Op; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IntLit` in this scope [INFO] [stdout] --> src/lexer.rs:453:13 [INFO] [stdout] | [INFO] [stdout] 453 | IntLit(2), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::IntLit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:454:13 [INFO] [stdout] | [INFO] [stdout] 454 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RBrace` in this scope [INFO] [stdout] --> src/lexer.rs:455:13 [INFO] [stdout] | [INFO] [stdout] 455 | RBrace, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::RBrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lexer.rs:471:37 [INFO] [stdout] | [INFO] [stdout] 471 | let reader = BufReader::new(Cursor::new(program)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found trait `Fn` [INFO] [stdout] --> src/lexer.rs:474:13 [INFO] [stdout] | [INFO] [stdout] 474 | Fn, [INFO] [stdout] | ^^ not a value [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Fn; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Fn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | Iden("concat_persons".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LParen` in this scope [INFO] [stdout] --> src/lexer.rs:476:13 [INFO] [stdout] | [INFO] [stdout] 476 | LParen, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::LParen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:477:13 [INFO] [stdout] | [INFO] [stdout] 477 | Iden("x1".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 478 | Iden("Person".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Comma` in this scope [INFO] [stdout] --> src/lexer.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | Comma, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Comma; [INFO] [stdout] | [INFO] [stdout] 398 + use std::ascii::Char::Comma; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:480:13 [INFO] [stdout] | [INFO] [stdout] 480 | Iden("x2".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | Iden("Person".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RParen` in this scope [INFO] [stdout] --> src/lexer.rs:482:13 [INFO] [stdout] | [INFO] [stdout] 482 | RParen, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::RParen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LBrace` in this scope [INFO] [stdout] --> src/lexer.rs:483:13 [INFO] [stdout] | [INFO] [stdout] 483 | LBrace, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::LBrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:484:13 [INFO] [stdout] | [INFO] [stdout] 484 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Declare` in this scope [INFO] [stdout] --> src/lexer.rs:485:13 [INFO] [stdout] | [INFO] [stdout] 485 | Declare, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Declare; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `StrLit` in this scope [INFO] [stdout] --> src/lexer.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | StrLit("Names:".to_string()), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::StrLit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:487:13 [INFO] [stdout] | [INFO] [stdout] 487 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:488:13 [INFO] [stdout] | [INFO] [stdout] 488 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Assign` in this scope [INFO] [stdout] --> src/lexer.rs:489:13 [INFO] [stdout] | [INFO] [stdout] 489 | Assign, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Assign; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::Node::Assign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | Iden("x1".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dot` in this scope [INFO] [stdout] --> src/lexer.rs:491:13 [INFO] [stdout] | [INFO] [stdout] 491 | Dot, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Dot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:492:13 [INFO] [stdout] | [INFO] [stdout] 492 | Iden("name".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Operator` in this scope [INFO] [stdout] --> src/lexer.rs:493:13 [INFO] [stdout] | [INFO] [stdout] 493 | Operator(Op::Plus), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Operator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lexer.rs:493:22 [INFO] [stdout] | [INFO] [stdout] 493 | Operator(Op::Plus), [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Op; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:494:13 [INFO] [stdout] | [INFO] [stdout] 494 | Iden("x2".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dot` in this scope [INFO] [stdout] --> src/lexer.rs:495:13 [INFO] [stdout] | [INFO] [stdout] 495 | Dot, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Dot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:496:13 [INFO] [stdout] | [INFO] [stdout] 496 | Iden("name".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:497:13 [INFO] [stdout] | [INFO] [stdout] 497 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Return` in this scope [INFO] [stdout] --> src/lexer.rs:498:13 [INFO] [stdout] | [INFO] [stdout] 498 | Return, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Return; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::Node::Return; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:500:13 [INFO] [stdout] | [INFO] [stdout] 500 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RBrace` in this scope [INFO] [stdout] --> src/lexer.rs:501:13 [INFO] [stdout] | [INFO] [stdout] 501 | RBrace, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::RBrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lexer.rs:514:37 [INFO] [stdout] | [INFO] [stdout] 514 | let reader = BufReader::new(Cursor::new(program)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:517:13 [INFO] [stdout] | [INFO] [stdout] 517 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Declare` in this scope [INFO] [stdout] --> src/lexer.rs:518:13 [INFO] [stdout] | [INFO] [stdout] 518 | Declare, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Declare; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `StrLit` in this scope [INFO] [stdout] --> src/lexer.rs:519:13 [INFO] [stdout] | [INFO] [stdout] 519 | StrLit(" \n \t \\ ".to_string()), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::StrLit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:520:13 [INFO] [stdout] | [INFO] [stdout] 520 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:521:13 [INFO] [stdout] | [INFO] [stdout] 521 | Iden("y".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Declare` in this scope [INFO] [stdout] --> src/lexer.rs:522:13 [INFO] [stdout] | [INFO] [stdout] 522 | Declare, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Declare; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CharLit` in this scope [INFO] [stdout] --> src/lexer.rs:523:13 [INFO] [stdout] | [INFO] [stdout] 523 | CharLit('\n'), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::CharLit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SemiColon` in this scope [INFO] [stdout] --> src/lexer.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | SemiColon, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::SemiColon; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lexer.rs:538:37 [INFO] [stdout] | [INFO] [stdout] 538 | let reader = BufReader::new(Cursor::new(program)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cursor` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 398 + use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Struct` in this scope [INFO] [stdout] --> src/lexer.rs:541:13 [INFO] [stdout] | [INFO] [stdout] 541 | Struct, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Struct; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::Node::Struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:542:13 [INFO] [stdout] | [INFO] [stdout] 542 | Iden("Point".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LBrace` in this scope [INFO] [stdout] --> src/lexer.rs:543:13 [INFO] [stdout] | [INFO] [stdout] 543 | LBrace, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::LBrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:544:13 [INFO] [stdout] | [INFO] [stdout] 544 | Iden("x".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:545:13 [INFO] [stdout] | [INFO] [stdout] 545 | Iden("int".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Comma` in this scope [INFO] [stdout] --> src/lexer.rs:546:13 [INFO] [stdout] | [INFO] [stdout] 546 | Comma, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Comma; [INFO] [stdout] | [INFO] [stdout] 398 + use std::ascii::Char::Comma; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | Iden("y".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:548:13 [INFO] [stdout] | [INFO] [stdout] 548 | Iden("int".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Comma` in this scope [INFO] [stdout] --> src/lexer.rs:549:13 [INFO] [stdout] | [INFO] [stdout] 549 | Comma, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Comma; [INFO] [stdout] | [INFO] [stdout] 398 + use std::ascii::Char::Comma; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RBrace` in this scope [INFO] [stdout] --> src/lexer.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | RBrace, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::RBrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `howdy` (bin "howdy" test) due to 145 previous errors; 1 warning emitted [INFO] [stdout] error[E0423]: expected value, found trait `Fn` [INFO] [stdout] --> src/lexer.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | Fn, [INFO] [stdout] | ^^ not a value [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Fn; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Fn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | Iden("concat_points".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LParen` in this scope [INFO] [stdout] --> src/lexer.rs:553:13 [INFO] [stdout] | [INFO] [stdout] 553 | LParen, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::LParen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:554:13 [INFO] [stdout] | [INFO] [stdout] 554 | Iden("p1".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:555:13 [INFO] [stdout] | [INFO] [stdout] 555 | Iden("Point".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Comma` in this scope [INFO] [stdout] --> src/lexer.rs:556:13 [INFO] [stdout] | [INFO] [stdout] 556 | Comma, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Comma; [INFO] [stdout] | [INFO] [stdout] 398 + use std::ascii::Char::Comma; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:557:13 [INFO] [stdout] | [INFO] [stdout] 557 | Iden("p2".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:558:13 [INFO] [stdout] | [INFO] [stdout] 558 | Iden("Point".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RParen` in this scope [INFO] [stdout] --> src/lexer.rs:559:13 [INFO] [stdout] | [INFO] [stdout] 559 | RParen, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::RParen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Arrow` in this scope [INFO] [stdout] --> src/lexer.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | Arrow, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Arrow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LBracket` in this scope [INFO] [stdout] --> src/lexer.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | LBracket, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::LBracket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RBracket` in this scope [INFO] [stdout] --> src/lexer.rs:562:13 [INFO] [stdout] | [INFO] [stdout] 562 | RBracket, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::RBracket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Iden` in this scope [INFO] [stdout] --> src/lexer.rs:563:13 [INFO] [stdout] | [INFO] [stdout] 563 | Iden("Point".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these tuple variants [INFO] [stdout] | [INFO] [stdout] 398 + use crate::lexer::Token::Iden; [INFO] [stdout] | [INFO] [stdout] 398 + use crate::node::TypeNode::Iden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/interpreter.rs:68:24 [INFO] [stdout] | [INFO] [stdout] 68 | Node::Variable(v) => panic!("Variable access not yet implemented"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 144 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0423, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3105f5f9f1f0f9e85c29020537782c1954239e8d7936927e204ea033ac908346", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3105f5f9f1f0f9e85c29020537782c1954239e8d7936927e204ea033ac908346", kill_on_drop: false }` [INFO] [stdout] 3105f5f9f1f0f9e85c29020537782c1954239e8d7936927e204ea033ac908346