[INFO] cloning repository https://github.com/praneetkandregula/crustacean_script [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/praneetkandregula/crustacean_script" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpraneetkandregula%2Fcrustacean_script", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpraneetkandregula%2Fcrustacean_script'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b31735f80a05459f90e265a2d511f04e2ca4664a [INFO] checking praneetkandregula/crustacean_script against try#4e55a504843955c97eb06907c71f6f3e99208021 for pr-146978 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpraneetkandregula%2Fcrustacean_script" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/praneetkandregula/crustacean_script [INFO] finished tweaking git repo https://github.com/praneetkandregula/crustacean_script [INFO] tweaked toml for git repo https://github.com/praneetkandregula/crustacean_script written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/praneetkandregula/crustacean_script on toolchain 4e55a504843955c97eb06907c71f6f3e99208021 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/praneetkandregula/crustacean_script 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" "+4e55a504843955c97eb06907c71f6f3e99208021" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking praneetkandregula/crustacean_script against try#4e55a504843955c97eb06907c71f6f3e99208021 for pr-146978 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpraneetkandregula%2Fcrustacean_script" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/praneetkandregula/crustacean_script [INFO] finished tweaking git repo https://github.com/praneetkandregula/crustacean_script [INFO] tweaked toml for git repo https://github.com/praneetkandregula/crustacean_script written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/praneetkandregula/crustacean_script on toolchain 4e55a504843955c97eb06907c71f6f3e99208021 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/praneetkandregula/crustacean_script 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" "+4e55a504843955c97eb06907c71f6f3e99208021" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos-derive v0.13.0 [INFO] [stderr] Downloaded logos-codegen v0.13.0 [INFO] [stderr] Downloaded logos v0.13.0 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 171300e752ad288efc554c2aef16b831830f329729fa1b101448fd825bc1678f [INFO] running `Command { std: "docker" "start" "-a" "171300e752ad288efc554c2aef16b831830f329729fa1b101448fd825bc1678f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "171300e752ad288efc554c2aef16b831830f329729fa1b101448fd825bc1678f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "171300e752ad288efc554c2aef16b831830f329729fa1b101448fd825bc1678f", kill_on_drop: false }` [INFO] [stdout] 171300e752ad288efc554c2aef16b831830f329729fa1b101448fd825bc1678f [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4e55a504843955c97eb06907c71f6f3e99208021" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d694d0ad13c7162f75586d330497eb1c541c1183e5099daa23b87f813b9bae2 [INFO] running `Command { std: "docker" "start" "-a" "1d694d0ad13c7162f75586d330497eb1c541c1183e5099daa23b87f813b9bae2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking crustacean_script v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find derive macro `Error` in this scope [INFO] [stdout] --> src/parser.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | #[derive(Debug, Error)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the derive macro `Logos` accepts the similarly named `error` attribute [INFO] [stdout] | [INFO] [stdout] 245 - #[derive(Debug, Error)] [INFO] [stdout] 245 + #[derive(Debug, error)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Error` in this scope [INFO] [stdout] --> src/parser.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | #[derive(Debug, Error)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the derive macro `Logos` accepts the similarly named `error` attribute [INFO] [stdout] | [INFO] [stdout] 245 - #[derive(Debug, Error)] [INFO] [stdout] 245 + #[derive(Debug, error)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/parser.rs:247:7 [INFO] [stdout] | [INFO] [stdout] 247 | #[error("Unexpected token {0:?}.")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `error` is an attribute that can be used by the derive macro `Logos`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 246 + #[derive(Logos)] [INFO] [stdout] 247 | pub enum ParseError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/parser.rs:247:7 [INFO] [stdout] | [INFO] [stdout] 247 | #[error("Unexpected token {0:?}.")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `error` is an attribute that can be used by the derive macro `Logos`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 246 + #[derive(Logos)] [INFO] [stdout] 247 | pub enum ParseError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `stdlib` in the crate root [INFO] [stdout] --> src/interpreter.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | interpreter.define_global_function("println", crate::stdlib::println); [INFO] [stdout] | ^^^^^^ could not find `stdlib` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `stdlib` in the crate root [INFO] [stdout] --> src/interpreter.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 11 | interpreter.define_global_function("println", crate::stdlib::println); [INFO] [stdout] | ^^^^^^ could not find `stdlib` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Iter` in this scope [INFO] [stdout] --> src/parser.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | tokens: Iter<'p, Token>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::binary_heap::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_map::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_set::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::hash_map::Iter; [INFO] [stdout] | [INFO] [stdout] = and 12 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Iter` in this scope [INFO] [stdout] --> src/parser.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | fn new(tokens: Iter<'p, Token>) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::binary_heap::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_map::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_set::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::hash_map::Iter; [INFO] [stdout] | [INFO] [stdout] = and 12 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Paramater` in this scope [INFO] [stdout] --> src/parser.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | let mut params: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Parameter { [INFO] [stdout] | -------------------- similarly named struct `Parameter` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 172 - let mut params: Vec = Vec::new(); [INFO] [stdout] 172 + let mut params: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 45 | impl<'p, Paramater> Parser<'p> { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Iter` in this scope [INFO] [stdout] --> src/parser.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | tokens: Iter<'p, Token>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::binary_heap::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_map::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_set::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::hash_map::Iter; [INFO] [stdout] | [INFO] [stdout] = and 12 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Iter` in this scope [INFO] [stdout] --> src/parser.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | fn new(tokens: Iter<'p, Token>) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::binary_heap::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_map::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::btree_set::Iter; [INFO] [stdout] | [INFO] [stdout] 1 + use std::collections::hash_map::Iter; [INFO] [stdout] | [INFO] [stdout] = and 12 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Paramater` in this scope [INFO] [stdout] --> src/parser.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | let mut params: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Parameter { [INFO] [stdout] | -------------------- similarly named struct `Parameter` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 172 - let mut params: Vec = Vec::new(); [INFO] [stdout] 172 + let mut params: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 45 | impl<'p, Paramater> Parser<'p> { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/parser.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | current: Token::Eof, [INFO] [stdout] | ^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | peek: Token::Eof, [INFO] [stdout] | ^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InterpolatedString` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | Token::InterpolatedString(s) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `InterpolatedString` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Bang` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | t @ Token::Minus | t @ Token::Bang => { [INFO] [stdout] | ^^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Bang` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InterpolatedString` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:71:51 [INFO] [stdout] | [INFO] [stdout] 71 | self.expect_token_and_read(Token::InterpolatedString("".to_string()))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `InterpolatedString` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `token` found for enum `ast::Op` in the current scope [INFO] [stdout] --> src/parser.rs:99:40 [INFO] [stdout] | [INFO] [stdout] 99 | Expression::Prefix(Op::token(t), self.parse_expression(Precedence::Prefix)?.boxed()) [INFO] [stdout] | ^^^^^ variant or associated item not found in `ast::Op` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | pub enum Op { [INFO] [stdout] | ----------- variant or associated item `token` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | current: Token::Eof, [INFO] [stdout] | ^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | peek: Token::Eof, [INFO] [stdout] | ^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] | ^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `precedence` [INFO] [stdout] --> src/parser.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `precedence` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 103 - while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] 103 + while !self.current_is(Token::Eof) && Precedence::token(self.current.clone()) { [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 103 - while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] 103 + while !self.current_is(Token::Eof) && Precedence::token(self.current.clone()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InterpolatedString` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | Token::InterpolatedString(s) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `InterpolatedString` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Bang` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | t @ Token::Minus | t @ Token::Bang => { [INFO] [stdout] | ^^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Bang` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InterpolatedString` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:71:51 [INFO] [stdout] | [INFO] [stdout] 71 | self.expect_token_and_read(Token::InterpolatedString("".to_string()))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `InterpolatedString` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse_infix_expression` found for mutable reference `&mut Parser<'p>` in the current scope [INFO] [stdout] --> src/parser.rs:106:51 [INFO] [stdout] | [INFO] [stdout] 106 | } else if let Some(expression) = self.parse_infix_expression(left.clone())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `parse_expression` with a similar name [INFO] [stdout] | [INFO] [stdout] 106 - } else if let Some(expression) = self.parse_infix_expression(left.clone())? { [INFO] [stdout] 106 + } else if let Some(expression) = self.parse_expression(left.clone())? { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `token` found for enum `ast::Op` in the current scope [INFO] [stdout] --> src/parser.rs:99:40 [INFO] [stdout] | [INFO] [stdout] 99 | Expression::Prefix(Op::token(t), self.parse_expression(Precedence::Prefix)?.boxed()) [INFO] [stdout] | ^^^^^ variant or associated item not found in `ast::Op` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | pub enum Op { [INFO] [stdout] | ----------- variant or associated item `token` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] | ^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `precedence` [INFO] [stdout] --> src/parser.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `precedence` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 103 - while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] 103 + while !self.current_is(Token::Eof) && Precedence::token(self.current.clone()) { [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 103 - while !self.current_is(Token::Eof) && precedence::token(self.current.clone()) { [INFO] [stdout] 103 + while !self.current_is(Token::Eof) && Precedence::token(self.current.clone()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `New` found for struct `Vec<_, _>` in the current scope [INFO] [stdout] --> src/parser.rs:118:30 [INFO] [stdout] | [INFO] [stdout] 118 | let mut block = Vec::New(); [INFO] [stdout] | ^^^ associated item not found in `Vec<_, _>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec<_, _>` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/4e55a504843955c97eb06907c71f6f3e99208021/library/alloc/src/vec/mod.rs:459:5 [INFO] [stdout] help: there is an associated function `new` with a similar name [INFO] [stdout] | [INFO] [stdout] 118 - let mut block = Vec::New(); [INFO] [stdout] 118 + let mut block = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:135:47 [INFO] [stdout] | [INFO] [stdout] 135 | if self.current_is(Token::Comma) { [INFO] [stdout] | ^^^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/parser.rs:150:67 [INFO] [stdout] | [INFO] [stdout] 150 | let name: Identifier = self.expect_identifier_and_read()?.into(); [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `Token` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `expect_identifier_and_read` in this scope [INFO] [stdout] --> src/parser.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | let name: Identifier = if with_identifier { expect_identifier_and_read()?.into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the method on `Self` [INFO] [stdout] | [INFO] [stdout] 166 | let name: Identifier = if with_identifier { self.expect_identifier_and_read()?.into() [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse_infix_expression` found for mutable reference `&mut Parser<'p>` in the current scope [INFO] [stdout] --> src/parser.rs:106:51 [INFO] [stdout] | [INFO] [stdout] 106 | } else if let Some(expression) = self.parse_infix_expression(left.clone())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `parse_expression` with a similar name [INFO] [stdout] | [INFO] [stdout] 106 - } else if let Some(expression) = self.parse_infix_expression(left.clone())? { [INFO] [stdout] 106 + } else if let Some(expression) = self.parse_expression(left.clone())? { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | if self.current_is(Token::Comma) { [INFO] [stdout] | ^^^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:176:51 [INFO] [stdout] | [INFO] [stdout] 176 | self.expect_token_and_read(Token::Comma)?; [INFO] [stdout] | ^^^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/parser.rs:178:68 [INFO] [stdout] | [INFO] [stdout] 178 | let param: String = self.expect_identifier_and_read()?.into(); [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `Token` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `New` found for struct `Vec<_, _>` in the current scope [INFO] [stdout] --> src/parser.rs:118:30 [INFO] [stdout] | [INFO] [stdout] 118 | let mut block = Vec::New(); [INFO] [stdout] | ^^^ associated item not found in `Vec<_, _>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec<_, _>` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/4e55a504843955c97eb06907c71f6f3e99208021/library/alloc/src/vec/mod.rs:459:5 [INFO] [stdout] help: there is an associated function `new` with a similar name [INFO] [stdout] | [INFO] [stdout] 118 - let mut block = Vec::New(); [INFO] [stdout] 118 + let mut block = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/parser.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | token.clone() [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:135:47 [INFO] [stdout] | [INFO] [stdout] 135 | if self.current_is(Token::Comma) { [INFO] [stdout] | ^^^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:232:20 [INFO] [stdout] | [INFO] [stdout] 232 | Token::Eof [INFO] [stdout] | ^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `Token` in the current scope [INFO] [stdout] --> src/parser.rs:237:35 [INFO] [stdout] | [INFO] [stdout] 237 | if self.current == Token::Eof { [INFO] [stdout] | ^^^ variant or associated item not found in `Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/parser.rs:150:67 [INFO] [stdout] | [INFO] [stdout] 150 | let name: Identifier = self.expect_identifier_and_read()?.into(); [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `token::Token` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `expect_identifier_and_read` in this scope [INFO] [stdout] --> src/parser.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | let name: Identifier = if with_identifier { expect_identifier_and_read()?.into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the method on `Self` [INFO] [stdout] | [INFO] [stdout] 166 | let name: Identifier = if with_identifier { self.expect_identifier_and_read()?.into() [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | if self.current_is(Token::Comma) { [INFO] [stdout] | ^^^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Comma` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:176:51 [INFO] [stdout] | [INFO] [stdout] 176 | self.expect_token_and_read(Token::Comma)?; [INFO] [stdout] | ^^^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Comma` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/parser.rs:178:68 [INFO] [stdout] | [INFO] [stdout] 178 | let param: String = self.expect_identifier_and_read()?.into(); [INFO] [stdout] | ^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `token::Token` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/parser.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | token.clone() [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:232:20 [INFO] [stdout] | [INFO] [stdout] 232 | Token::Eof [INFO] [stdout] | ^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Eof` found for enum `token::Token` in the current scope [INFO] [stdout] --> src/parser.rs:237:35 [INFO] [stdout] | [INFO] [stdout] 237 | if self.current == Token::Eof { [INFO] [stdout] | ^^^ variant or associated item not found in `token::Token` [INFO] [stdout] | [INFO] [stdout] ::: src/token.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Token { [INFO] [stdout] | -------------- variant or associated item `Eof` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `environment::Value::NativeFunction` has no field named `name` [INFO] [stdout] --> src/interpreter.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | name: name, [INFO] [stdout] | ^^^^ `environment::Value::NativeFunction` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `Option` cannot be dereferenced [INFO] [stdout] --> src/environment.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | *self.values.get(&name.into()).unwrap().clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: variant `environment::Value::NativeFunction` does not have a field named `name` [INFO] [stdout] --> src/environment.rs:42:37 [INFO] [stdout] | [INFO] [stdout] 42 | Value::NativeFunction { name, .. } => format!("<{}>", name), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | variant `environment::Value::NativeFunction` does not have this field [INFO] [stdout] | help: `environment::Value::NativeFunction` has a field named `callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:28 [INFO] [stdout] | [INFO] [stdout] 14 | let ast = parser::parse(tokens).unwrap(); [INFO] [stdout] | ------------- ^^^^^^ expected `Vec`, found `Vec>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/parser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn parse(tokens: Vec) -> Result { [INFO] [stdout] | ^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `environment::Value::NativeFunction` has no field named `name` [INFO] [stdout] --> src/interpreter.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | name: name, [INFO] [stdout] | ^^^^ `environment::Value::NativeFunction` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `Option` cannot be dereferenced [INFO] [stdout] --> src/environment.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | *self.values.get(&name.into()).unwrap().clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: variant `environment::Value::NativeFunction` does not have a field named `name` [INFO] [stdout] --> src/environment.rs:42:37 [INFO] [stdout] | [INFO] [stdout] 42 | Value::NativeFunction { name, .. } => format!("<{}>", name), [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | variant `environment::Value::NativeFunction` does not have this field [INFO] [stdout] | help: `environment::Value::NativeFunction` has a field named `callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:28 [INFO] [stdout] | [INFO] [stdout] 14 | let ast = parser::parse(tokens).unwrap(); [INFO] [stdout] | ------------- ^^^^^^ expected `Vec`, found `Vec>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/parser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn parse(tokens: Vec) -> Result { [INFO] [stdout] | ^^^^^ ------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0277, E0282, E0308, E0412, E0425, E0433, E0559, E0599... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crustacean_script` (bin "crustacean_script") due to 29 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0026, E0277, E0282, E0308, E0412, E0425, E0433, E0559, E0599... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crustacean_script` (bin "crustacean_script" test) due to 29 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1d694d0ad13c7162f75586d330497eb1c541c1183e5099daa23b87f813b9bae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d694d0ad13c7162f75586d330497eb1c541c1183e5099daa23b87f813b9bae2", kill_on_drop: false }` [INFO] [stdout] 1d694d0ad13c7162f75586d330497eb1c541c1183e5099daa23b87f813b9bae2