[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#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsevereduck%2Fcdx" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/severeduck/cdx on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v1.10.2 [INFO] [stderr] Downloaded regex-automata v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c7eedc0d4efb6160a3e6900c5d62edd6e04f07c10c7d40b647018c4396b62bf [INFO] running `Command { std: "docker" "start" "-a" "3c7eedc0d4efb6160a3e6900c5d62edd6e04f07c10c7d40b647018c4396b62bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c7eedc0d4efb6160a3e6900c5d62edd6e04f07c10c7d40b647018c4396b62bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c7eedc0d4efb6160a3e6900c5d62edd6e04f07c10c7d40b647018c4396b62bf", kill_on_drop: false }` [INFO] [stdout] 3c7eedc0d4efb6160a3e6900c5d62edd6e04f07c10c7d40b647018c4396b62bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aad5e2d1aea6035503d36c751ba4e05fc5f08ea8b7e74505201dbe3256c4c351 [INFO] running `Command { std: "docker" "start" "-a" "aad5e2d1aea6035503d36c751ba4e05fc5f08ea8b7e74505201dbe3256c4c351", 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)]` (part of `#[warn(unused)]`) 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, body: 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Debug` is not implemented for `Parameter` [INFO] [stdout] --> src/parser.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | struct Parameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/vec/mod.rs:4047:0 [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 39 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "aad5e2d1aea6035503d36c751ba4e05fc5f08ea8b7e74505201dbe3256c4c351", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aad5e2d1aea6035503d36c751ba4e05fc5f08ea8b7e74505201dbe3256c4c351", kill_on_drop: false }` [INFO] [stdout] aad5e2d1aea6035503d36c751ba4e05fc5f08ea8b7e74505201dbe3256c4c351