[INFO] cloning repository https://github.com/jawm/protolang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jawm/protolang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjawm%2Fprotolang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjawm%2Fprotolang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 529add6bdffa68d173674f024985a3650da11ee7 [INFO] checking jawm/protolang against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjawm%2Fprotolang" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jawm/protolang on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jawm/protolang [INFO] finished tweaking git repo https://github.com/jawm/protolang [INFO] tweaked toml for git repo https://github.com/jawm/protolang written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/jawm/protolang already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-1/source/src/main.rs [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest_generator v2.1.0 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.47 [INFO] [stderr] Downloaded pest v2.1.1 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.47 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.47 [INFO] [stderr] Downloaded bumpalo v2.4.3 [INFO] [stderr] Downloaded wasm-bindgen v0.2.47 [INFO] [stderr] Downloaded sha-1 v0.8.1 [INFO] [stderr] Downloaded pest_meta v2.1.1 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.47 [INFO] [stderr] Downloaded libc v0.2.55 [INFO] [stderr] Downloaded js-sys v0.3.24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac1db53b9f1d0001449e8c1b8451606c0ee299a13df5245193d5f6b276c3ad3c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ac1db53b9f1d0001449e8c1b8451606c0ee299a13df5245193d5f6b276c3ad3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac1db53b9f1d0001449e8c1b8451606c0ee299a13df5245193d5f6b276c3ad3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac1db53b9f1d0001449e8c1b8451606c0ee299a13df5245193d5f6b276c3ad3c", kill_on_drop: false }` [INFO] [stdout] ac1db53b9f1d0001449e8c1b8451606c0ee299a13df5245193d5f6b276c3ad3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7a013d60165cee8ff6e3aa39727d6c56b718a3461a8288cfbcef5085d9bc2e1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e7a013d60165cee8ff6e3aa39727d6c56b718a3461a8288cfbcef5085d9bc2e1", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/src/main.rs [INFO] [stderr] Compiling syn v0.15.36 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.47 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling bumpalo v2.4.3 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling libc v0.2.55 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling maplit v1.0.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.47 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Checking pest v2.1.1 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Compiling pest_meta v2.1.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.47 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.47 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.47 [INFO] [stderr] Checking js-sys v0.3.24 [INFO] [stderr] Checking compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Error = ExprError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / fn from_error(v: Self::Error) -> Self { [INFO] [stdout] 46 | | match v { [INFO] [stdout] 47 | | ExprError::ControlFlow(c) => ExprResult::ControlFlow(c), [INFO] [stdout] 48 | | ExprError::Err(e) => ExprResult::Err(e) [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 53 | | ExprResult::Value(v) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Error = ExprError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / fn from_error(v: Self::Error) -> Self { [INFO] [stdout] 46 | | match v { [INFO] [stdout] 47 | | ExprError::ControlFlow(c) => ExprResult::ControlFlow(c), [INFO] [stdout] 48 | | ExprError::Err(e) => ExprResult::Err(e) [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 53 | | ExprResult::Value(v) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/main.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Value` [INFO] [stdout] --> src/errors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/errors.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/ast/expression.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{Binary, Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::UnaryOperation` [INFO] [stdout] --> src/ast/printer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::expression::UnaryOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> src/lex/lex.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::tokens::Token` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use lex::tokens::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::Lexer` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use lex::Lexer; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType`, `Token` [INFO] [stdout] --> src/parse/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/parse/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Peekable` [INFO] [stdout] --> src/parse/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::core::hint::unreachable_unchecked` [INFO] [stdout] --> src/parse/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use wasm_bindgen::__rt::core::hint::unreachable_unchecked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::std::process::exit` [INFO] [stdout] --> src/parse/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use wasm_bindgen::__rt::std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::Error` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::errors::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::ExpressionVisitor` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::ast::expression::ExpressionVisitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `Ref` [INFO] [stdout] --> src/interpreter/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::{Cell, Ref, RefCell}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/interpreter/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::{Binary, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/interpreter/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | Callable(Rc), [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Callable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | output: &'a mut std::io::Write, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Error = ExprError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / fn from_error(v: Self::Error) -> Self { [INFO] [stdout] 46 | | match v { [INFO] [stdout] 47 | | ExprError::ControlFlow(c) => ExprResult::ControlFlow(c), [INFO] [stdout] 48 | | ExprError::Err(e) => ExprResult::Err(e) [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 53 | | ExprResult::Value(v) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/main.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Value` [INFO] [stdout] --> src/errors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/errors.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/ast/expression.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{Binary, Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::UnaryOperation` [INFO] [stdout] --> src/ast/printer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::expression::UnaryOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> src/lex/lex.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::tokens::Token` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use lex::tokens::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::Lexer` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use lex::Lexer; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType`, `Token` [INFO] [stdout] --> src/parse/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/parse/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Peekable` [INFO] [stdout] --> src/parse/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::core::hint::unreachable_unchecked` [INFO] [stdout] --> src/parse/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use wasm_bindgen::__rt::core::hint::unreachable_unchecked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::std::process::exit` [INFO] [stdout] --> src/parse/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use wasm_bindgen::__rt::std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::Error` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::errors::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::ExpressionVisitor` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::ast::expression::ExpressionVisitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `Ref` [INFO] [stdout] --> src/interpreter/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::{Cell, Ref, RefCell}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/interpreter/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::{Binary, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/interpreter/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | Callable(Rc), [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Callable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | output: &'a mut std::io::Write, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Add, Div, Mul, Sub, Try}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | type Ok = Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | impl Try for ExprResult { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | type Error = ExprError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / fn from_error(v: Self::Error) -> Self { [INFO] [stdout] 46 | | match v { [INFO] [stdout] 47 | | ExprError::ControlFlow(c) => ExprResult::ControlFlow(c), [INFO] [stdout] 48 | | ExprError::Err(e) => ExprResult::Err(e) [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `Try` [INFO] [stdout] --> src/interpreter/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 53 | | ExprResult::Value(v) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ not a member of trait `Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/main.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Value` [INFO] [stdout] --> src/errors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/errors.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/ast/expression.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{Binary, Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::UnaryOperation` [INFO] [stdout] --> src/ast/printer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::expression::UnaryOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> src/lex/lex.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::tokens::Token` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use lex::tokens::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::Lexer` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use lex::Lexer; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType`, `Token` [INFO] [stdout] --> src/parse/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/parse/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Add, Div, Mul, Sub, Try}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Peekable` [INFO] [stdout] --> src/parse/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::core::hint::unreachable_unchecked` [INFO] [stdout] --> src/parse/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use wasm_bindgen::__rt::core::hint::unreachable_unchecked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | type Ok = Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::std::process::exit` [INFO] [stdout] --> src/parse/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use wasm_bindgen::__rt::std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | impl Try for ExprResult { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::Error` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::errors::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::ExpressionVisitor` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::ast::expression::ExpressionVisitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `Ref` [INFO] [stdout] --> src/interpreter/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::{Cell, Ref, RefCell}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/interpreter/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::{Binary, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/interpreter/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | Callable(Rc), [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Callable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | output: &'a mut std::io::Write, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:37:52 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn from_error(v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0407, E0437, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stderr] error: could not compile `compiler` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:37:52 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn from_error(v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/main.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::{BufRead, BufReader, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::Value` [INFO] [stdout] --> src/errors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::interpreter::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Token` [INFO] [stdout] --> src/errors.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/ast/expression.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{Binary, Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::UnaryOperation` [INFO] [stdout] --> src/ast/printer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::expression::UnaryOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow::Borrow` [INFO] [stdout] --> src/lex/lex.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use core::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::tokens::Token` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use lex::tokens::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lex::Lexer` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use lex::Lexer; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenType`, `Token` [INFO] [stdout] --> src/parse/mod.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lex::tokens::{Token, TokenType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/parse/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Peekable` [INFO] [stdout] --> src/parse/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::core::hint::unreachable_unchecked` [INFO] [stdout] --> src/parse/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use wasm_bindgen::__rt::core::hint::unreachable_unchecked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::__rt::std::process::exit` [INFO] [stdout] --> src/parse/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use wasm_bindgen::__rt::std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0407, E0437, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::Error` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::errors::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::expression::ExpressionVisitor` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::ast::expression::ExpressionVisitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `Ref` [INFO] [stdout] --> src/interpreter/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::{Cell, Ref, RefCell}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Binary` [INFO] [stdout] --> src/interpreter/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::{Binary, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/interpreter/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | Callable(Rc), [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Callable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | output: &'a mut std::io::Write, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Add, Div, Mul, Sub, Try}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | type Ok = Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | impl Try for ExprResult { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | use std::ops::{Add, Div, Mul, Sub, Try}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | type Ok = Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | impl Try for ExprResult { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:37:52 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn from_error(v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:37:52 [INFO] [stdout] | [INFO] [stdout] 37 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/interpreter/mod.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn from_error(v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/interpreter/mod.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #42327 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0407, E0437, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0407, E0437, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e7a013d60165cee8ff6e3aa39727d6c56b718a3461a8288cfbcef5085d9bc2e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7a013d60165cee8ff6e3aa39727d6c56b718a3461a8288cfbcef5085d9bc2e1", kill_on_drop: false }` [INFO] [stdout] e7a013d60165cee8ff6e3aa39727d6c56b718a3461a8288cfbcef5085d9bc2e1