[INFO] cloning repository https://github.com/severeduck/cdx [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/severeduck/cdx" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevereduck%2Fcdx", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevereduck%2Fcdx'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08623d23101e121dcc2fa8f8c23997b603581116 [INFO] testing severeduck/cdx against master#ff2c56344c764af598ad33027e9c7a48881808ef for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevereduck%2Fcdx" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/severeduck/cdx on toolchain ff2c56344c764af598ad33027e9c7a48881808ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/severeduck/cdx [INFO] finished tweaking git repo https://github.com/severeduck/cdx [INFO] tweaked toml for git repo https://github.com/severeduck/cdx written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/severeduck/cdx 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" "+ff2c56344c764af598ad33027e9c7a48881808ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing severeduck/cdx against try#5e4273472e1b2f223618a9b3def795f6224f241d for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevereduck%2Fcdx" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/severeduck/cdx on toolchain 5e4273472e1b2f223618a9b3def795f6224f241d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/severeduck/cdx [INFO] finished tweaking git repo https://github.com/severeduck/cdx [INFO] tweaked toml for git repo https://github.com/severeduck/cdx written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/severeduck/cdx 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" "+5e4273472e1b2f223618a9b3def795f6224f241d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing severeduck/cdx against try#5e4273472e1b2f223618a9b3def795f6224f241d for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevereduck%2Fcdx" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/severeduck/cdx on toolchain 5e4273472e1b2f223618a9b3def795f6224f241d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/severeduck/cdx [INFO] finished tweaking git repo https://github.com/severeduck/cdx [INFO] tweaked toml for git repo https://github.com/severeduck/cdx written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/severeduck/cdx 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" "+5e4273472e1b2f223618a9b3def795f6224f241d" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 135abbfd348df6456eb2dee07d8a6630c8ab8e5882b123a99efb6484ed852632 [INFO] running `Command { std: "docker" "start" "-a" "135abbfd348df6456eb2dee07d8a6630c8ab8e5882b123a99efb6484ed852632", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "135abbfd348df6456eb2dee07d8a6630c8ab8e5882b123a99efb6484ed852632", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "135abbfd348df6456eb2dee07d8a6630c8ab8e5882b123a99efb6484ed852632", kill_on_drop: false }` [INFO] [stdout] 135abbfd348df6456eb2dee07d8a6630c8ab8e5882b123a99efb6484ed852632 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eac1a46dae7afb572e4abf9eeb3d28c27da63cbb11c31dc0e6c7bac9be1dc989 [INFO] running `Command { std: "docker" "start" "-a" "eac1a46dae7afb572e4abf9eeb3d28c27da63cbb11c31dc0e6c7bac9be1dc989", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling cdx_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/lexer.rs:67:68 [INFO] [stdout] | [INFO] [stdout] 67 | if let Some(token) = self.token_patterns.iter().find_map(|(type, pattern)| { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 67 | if let Some(token) = self.token_patterns.iter().find_map(|(r#type, pattern)| { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found keyword `type` [INFO] [stdout] --> src/lexer.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 68 | pattern.find(&self.source_code).map(|mat| Token { [INFO] [stdout] | ----- while parsing this struct [INFO] [stdout] 69 | token_type: type.clone(), [INFO] [stdout] | ^^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | Some(ref token) if token.type == token_type => { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | match token.type { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 71 | match token.r#type { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | match token.type { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 97 | match token.r#type { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:99:42 [INFO] [stdout] | [INFO] [stdout] 99 | let operator = token.type; [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 99 | let operator = token.r#type; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:116:26 [INFO] [stdout] | [INFO] [stdout] 116 | Some(Token { type: TokenType::Number, value }) => { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 116 | Some(Token { r#type: TokenType::Number, value }) => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | Some(Token { type: TokenType::Identifier, value }) => { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 120 | Some(Token { r#type: TokenType::Identifier, value }) => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:133:26 [INFO] [stdout] | [INFO] [stdout] 133 | Some(Token { type: TokenType::Identifier, value }) => { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 133 | Some(Token { r#type: TokenType::Identifier, value }) => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:75:88 [INFO] [stdout] | [INFO] [stdout] 75 | let type_annotation = if matches!(self.current_token, Some(Token { type: TokenType::Colon, .. })) { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 75 | let type_annotation = if matches!(self.current_token, Some(Token { r#type: TokenType::Colon, .. })) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:82:66 [INFO] [stdout] | [INFO] [stdout] 82 | if matches!(self.current_token, Some(Token { type: TokenType::Comma, .. })) { [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `type` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 82 | if matches!(self.current_token, Some(Token { r#type: TokenType::Comma, .. })) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `type` [INFO] [stdout] --> src/parser.rs:88:81 [INFO] [stdout] | [INFO] [stdout] 88 | _ => return Err(format!("Expected parameter, found {:?}", token.type)), [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::ast` [INFO] [stdout] --> src/semantic_analyzer.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast::{AstNode}; [INFO] [stdout] | ^^^ could not find `ast` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error` [INFO] [stdout] --> src/semantic_analyzer.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::error::{YourErrorType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AstNode` in this scope [INFO] [stdout] --> src/codegen.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn generate(&self, ast: &AstNode) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: enum `crate::parser::AstNode` exists but is inaccessible [INFO] [stdout] --> src/parser.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | enum AstNode { [INFO] [stdout] | ^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/semantic_analyzer.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lexer::{Token}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Semicolon` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:38:81 [INFO] [stdout] | [INFO] [stdout] 38 | if matches!(self.current_token, Some(Token { token_type: TokenType::Semicolon, .. })) { [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Semicolon` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Pipe` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:50:38 [INFO] [stdout] | [INFO] [stdout] 50 | self.expect_token(TokenType::Pipe)?; // Assuming '|' is used to denote the start of lambda parameters [INFO] [stdout] | ^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Pipe` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Pipe` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:52:38 [INFO] [stdout] | [INFO] [stdout] 52 | self.expect_token(TokenType::Pipe)?; // Assuming '|' is used to denote the end of lambda parameters [INFO] [stdout] | ^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Pipe` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:54:52 [INFO] [stdout] | [INFO] [stdout] 54 | Ok(AstNode::LambdaExpression { parameters, body }) // Return a new AST node for the lambda [INFO] [stdout] | ^^^^ expected `Box`, found `AstNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found enum `AstNode` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 54 | Ok(AstNode::LambdaExpression { parameters, Box::new(body) }) // Return a new AST node for the lambda [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `r#type` on type `&Token` [INFO] [stdout] --> src/parser.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | Some(ref token) if token.type == token_type => { [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `r#type` on type `&Token` [INFO] [stdout] --> src/parser.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | match token.type { [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `value` of struct `Token` is private [INFO] [stdout] --> src/parser.rs:73:44 [INFO] [stdout] | [INFO] [stdout] 73 | let param_name = token.value.clone(); [INFO] [stdout] | ^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Colon` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:75:105 [INFO] [stdout] | [INFO] [stdout] 75 | let type_annotation = if matches!(self.current_token, Some(Token { type: TokenType::Colon, .. })) { [INFO] [stdout] | ^^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Colon` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `Token` does not have a field named `r#type` [INFO] [stdout] --> src/parser.rs:75:88 [INFO] [stdout] | [INFO] [stdout] 75 | let type_annotation = if matches!(self.current_token, Some(Token { type: TokenType::Colon, .. })) { [INFO] [stdout] | ^^^^ struct `Token` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:82:83 [INFO] [stdout] | [INFO] [stdout] 82 | if matches!(self.current_token, Some(Token { type: TokenType::Comma, .. })) { [INFO] [stdout] | ^^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `Token` does not have a field named `r#type` [INFO] [stdout] --> src/parser.rs:82:66 [INFO] [stdout] | [INFO] [stdout] 82 | if matches!(self.current_token, Some(Token { type: TokenType::Comma, .. })) { [INFO] [stdout] | ^^^^ struct `Token` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `r#type` on type `&Token` [INFO] [stdout] --> src/parser.rs:88:81 [INFO] [stdout] | [INFO] [stdout] 88 | _ => return Err(format!("Expected parameter, found {:?}", token.type)), [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `r#type` on type `&Token` [INFO] [stdout] --> src/parser.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | match token.type { [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Plus` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | TokenType::Plus | TokenType::Minus => { [INFO] [stdout] | ^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Plus` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Minus` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/parser.rs:98:46 [INFO] [stdout] | [INFO] [stdout] 98 | TokenType::Plus | TokenType::Minus => { [INFO] [stdout] | ^^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `Minus` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `r#type` on type `&Token` [INFO] [stdout] --> src/parser.rs:99:42 [INFO] [stdout] | [INFO] [stdout] 99 | let operator = token.type; [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `BinaryOperation` found for enum `AstNode` [INFO] [stdout] --> src/parser.rs:102:36 [INFO] [stdout] | [INFO] [stdout] 102 | lhs = AstNode::BinaryOperation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ variant not found in `AstNode` [INFO] [stdout] ... [INFO] [stdout] 150 | enum AstNode { [INFO] [stdout] | ------------ variant `BinaryOperation` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `Token` does not have a field named `r#type` [INFO] [stdout] --> src/parser.rs:116:26 [INFO] [stdout] | [INFO] [stdout] 116 | Some(Token { type: TokenType::Number, value }) => { [INFO] [stdout] | ^^^^ struct `Token` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: pattern requires `..` due to inaccessible fields [INFO] [stdout] --> src/parser.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 116 | Some(Token { type: TokenType::Number, value }) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: ignore the inaccessible and unused fields [INFO] [stdout] | [INFO] [stdout] 116 | Some(Token { type: TokenType::Number, value, .. }) => { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `Token` does not have a field named `r#type` [INFO] [stdout] --> src/parser.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | Some(Token { type: TokenType::Identifier, value }) => { [INFO] [stdout] | ^^^^ struct `Token` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: pattern requires `..` due to inaccessible fields [INFO] [stdout] --> src/parser.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | Some(Token { type: TokenType::Identifier, value }) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: ignore the inaccessible and unused fields [INFO] [stdout] | [INFO] [stdout] 120 | Some(Token { type: TokenType::Identifier, value, .. }) => { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: struct `Token` does not have a field named `r#type` [INFO] [stdout] --> src/parser.rs:133:26 [INFO] [stdout] | [INFO] [stdout] 133 | Some(Token { type: TokenType::Identifier, value }) => { [INFO] [stdout] | ^^^^ struct `Token` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: pattern requires `..` due to inaccessible fields [INFO] [stdout] --> src/parser.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | Some(Token { type: TokenType::Identifier, value }) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: ignore the inaccessible and unused fields [INFO] [stdout] | [INFO] [stdout] 133 | Some(Token { type: TokenType::Identifier, value, .. }) => { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Parameter` doesn't implement `Debug` [INFO] [stdout] --> src/parser.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 149 | #[derive(Debug)] // Add this line [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 152 | parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `Parameter` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Parameter` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Parameter` or manually `impl Debug for Parameter` [INFO] [stdout] = help: the trait `Debug` is implemented for `Vec` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0277, E0308, E0412, E0432, E0599, E0609, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cdx_compiler` (bin "cdx_compiler") due to 40 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "eac1a46dae7afb572e4abf9eeb3d28c27da63cbb11c31dc0e6c7bac9be1dc989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eac1a46dae7afb572e4abf9eeb3d28c27da63cbb11c31dc0e6c7bac9be1dc989", kill_on_drop: false }` [INFO] [stdout] eac1a46dae7afb572e4abf9eeb3d28c27da63cbb11c31dc0e6c7bac9be1dc989