[INFO] fetching crate expr 0.0.1... [INFO] checking expr-0.0.1 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate expr 0.0.1 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate expr 0.0.1 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate expr 0.0.1 [INFO] finished tweaking crates.io crate expr 0.0.1 [INFO] tweaked toml for crates.io crate expr 0.0.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fb341723dcce4a880890088a8467bdbeb5b5cce0edaf8256f9aeed182fafe5e [INFO] running `Command { std: "docker" "start" "-a" "9fb341723dcce4a880890088a8467bdbeb5b5cce0edaf8256f9aeed182fafe5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fb341723dcce4a880890088a8467bdbeb5b5cce0edaf8256f9aeed182fafe5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fb341723dcce4a880890088a8467bdbeb5b5cce0edaf8256f9aeed182fafe5e", kill_on_drop: false }` [INFO] [stdout] 9fb341723dcce4a880890088a8467bdbeb5b5cce0edaf8256f9aeed182fafe5e [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c04438b4406780da24fa7fd7c08cc07d0ae8cd665d6329cfb99b98b08b61f5cd [INFO] running `Command { std: "docker" "start" "-a" "c04438b4406780da24fa7fd7c08cc07d0ae8cd665d6329cfb99b98b08b61f5cd", kill_on_drop: false }` [INFO] [stderr] Checking expr v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected expression, found `]` [INFO] [stdout] --> src/expr.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | if token[].contains(".") { [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `]` [INFO] [stdout] --> src/expr.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | if token[].contains(".") { [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/expr.rs:317:37 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn set_variables(&mut self, f: |&str| -> Val) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/expr.rs:317:37 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn set_variables(&mut self, f: |&str| -> Val) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `]` [INFO] [stdout] --> src/expr.rs:319:39 [INFO] [stdout] | [INFO] [stdout] 319 | self.variables[*idx] = Some(f(name[])); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `]` [INFO] [stdout] --> src/expr.rs:319:39 [INFO] [stdout] | [INFO] [stdout] 319 | self.variables[*idx] = Some(f(name[])); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex` [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex` [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex_macros` [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate regex_macros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex_macros` [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate regex_macros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::num::Int`, `std::num::Float` [INFO] [stdout] --> src/expr.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::{Int, Float}; [INFO] [stdout] | ^^^ ^^^^^ no `Float` in `num` [INFO] [stdout] | | [INFO] [stdout] | no `Int` in `num` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this variant instead: [INFO] [stdout] expr::Val::Int [INFO] [stdout] = help: consider importing this variant instead: [INFO] [stdout] expr::Val::Float [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `std::num::Int`, `std::num::Float` [INFO] [stdout] --> src/expr.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::{Int, Float}; [INFO] [stdout] | ^^^ ^^^^^ no `Float` in `num` [INFO] [stdout] | | [INFO] [stdout] | no `Int` in `num` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this variant instead: [INFO] [stdout] expr::Val::Int [INFO] [stdout] = help: consider importing this variant instead: [INFO] [stdout] expr::Val::Float [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `phase` in this scope [INFO] [stdout] --> src/lib.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[phase(plugin)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `phase` in this scope [INFO] [stdout] --> src/lib.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[phase(plugin)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[deriving(Clone, Show, PartialEq, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[deriving(Clone, Show, PartialEq, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[deriving(Clone, Show, Eq, PartialEq, Ord, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[deriving(Clone, Show, Eq, PartialEq, Ord, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:57:3 [INFO] [stdout] | [INFO] [stdout] 57 | #[deriving(Clone, Show, PartialEq, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:57:3 [INFO] [stdout] | [INFO] [stdout] 57 | #[deriving(Clone, Show, PartialEq, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 64 | #[deriving(Clone, Show, Eq, PartialEq, Ord, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/expr.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 64 | #[deriving(Clone, Show, Eq, PartialEq, Ord, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | Var(uint), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | Var(uint), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | function_name_map: HashMap, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ExprParser { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | function_name_map: HashMap, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ExprParser { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:288:37 [INFO] [stdout] | [INFO] [stdout] 288 | variable_name_map: HashMap, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:288:37 [INFO] [stdout] | [INFO] [stdout] 288 | variable_name_map: HashMap, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:377:50 [INFO] [stdout] | [INFO] [stdout] 377 | Op::Pow if b >= 0 => Some(Val::Int(a.pow(b as uint))), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/expr.rs:377:50 [INFO] [stdout] | [INFO] [stdout] 377 | Op::Pow if b >= 0 => Some(Val::Int(a.pow(b as uint))), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `phase` [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(phase)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `phase` [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(phase)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | *self == Op::Pow [INFO] [stdout] | ----- ^^ ------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | *self == Op::Pow [INFO] [stdout] | ----- ^^ ------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/expr.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | let next_token = expression[start..end]; [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 105 | let next_token = &expression[start..end]; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/expr.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | let next_token = expression[start..end]; [INFO] [stdout] | ^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 105 | let next_token = &expression[start..end]; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:107:61 [INFO] [stdout] | [INFO] [stdout] 107 | match self.parse_token(&mut expr, &mut op_stack, token, next_token) { [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `&str`, found `str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/expr.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | fn parse_token(&self, expr: &mut Expr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 135 | op_stack: &mut Vec, [INFO] [stdout] 136 | token: &str, next_token: &str) [INFO] [stdout] | ---------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 107 | match self.parse_token(&mut expr, &mut op_stack, token, &next_token) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:107:61 [INFO] [stdout] | [INFO] [stdout] 107 | match self.parse_token(&mut expr, &mut op_stack, token, next_token) { [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `&str`, found `str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/expr.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | fn parse_token(&self, expr: &mut Expr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 135 | op_stack: &mut Vec, [INFO] [stdout] 136 | token: &str, next_token: &str) [INFO] [stdout] | ---------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 107 | match self.parse_token(&mut expr, &mut op_stack, token, &next_token) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 102 | let mut token = ""; [INFO] [stdout] | -- expected due to this value [INFO] [stdout] ... [INFO] [stdout] 112 | token = next_token; [INFO] [stdout] | ^^^^^^^^^^ expected `&str`, found `str` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 112 | token = &next_token; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 102 | let mut token = ""; [INFO] [stdout] | -- expected due to this value [INFO] [stdout] ... [INFO] [stdout] 112 | token = next_token; [INFO] [stdout] | ^^^^^^^^^^ expected `&str`, found `str` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 112 | token = &next_token; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | if op == Op::Paren { return Err(Error::MismatchedParenthesis); } [INFO] [stdout] | -- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | if op == Op::Paren { return Err(Error::MismatchedParenthesis); } [INFO] [stdout] | -- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:241:59 [INFO] [stdout] | [INFO] [stdout] 241 | if op_stack.is_empty() || op_stack[op_stack.len() - 1] == Op::Paren { [INFO] [stdout] | ---------------------------- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | Some(op) => if op == Op::Paren { [INFO] [stdout] | -- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:241:59 [INFO] [stdout] | [INFO] [stdout] 241 | if op_stack.is_empty() || op_stack[op_stack.len() - 1] == Op::Paren { [INFO] [stdout] | ---------------------------- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:275:36 [INFO] [stdout] | [INFO] [stdout] 275 | if op_stack[op_stack.len() - 1] == Op::Paren { [INFO] [stdout] | ---------------------------- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | Some(op) => if op == Op::Paren { [INFO] [stdout] | -- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Op` [INFO] [stdout] --> src/expr.rs:275:36 [INFO] [stdout] | [INFO] [stdout] 275 | if op_stack[op_stack.len() - 1] == Op::Paren { [INFO] [stdout] | ---------------------------- ^^ --------- Op [INFO] [stdout] | | [INFO] [stdout] | Op [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `Op` [INFO] [stdout] --> src/expr.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | enum Op { [INFO] [stdout] | ^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `Op` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:331:63 [INFO] [stdout] | [INFO] [stdout] 331 | Token::Op(ref op) => if !Expr::operate(&mut eval_stack, op.clone()) { return None; }, // TODO: what [INFO] [stdout] | ------------- ^^^^^^^^^^ expected `Op`, found `&Op` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: `Op` does not implement `Clone`, so `&Op` was cloned instead [INFO] [stdout] --> src/expr.rs:331:63 [INFO] [stdout] | [INFO] [stdout] 331 | Token::Op(ref op) => if !Expr::operate(&mut eval_stack, op.clone()) { return None; }, // TODO: what [INFO] [stdout] | ^^ [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/expr.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 341 | fn operate(eval_stack: &mut Vec>, op: Op) -> bool { [INFO] [stdout] | ^^^^^^^ ------ [INFO] [stdout] help: consider annotating `Op` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(Clone)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:331:63 [INFO] [stdout] | [INFO] [stdout] 331 | Token::Op(ref op) => if !Expr::operate(&mut eval_stack, op.clone()) { return None; }, // TODO: what [INFO] [stdout] | ------------- ^^^^^^^^^^ expected `Op`, found `&Op` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: `Op` does not implement `Clone`, so `&Op` was cloned instead [INFO] [stdout] --> src/expr.rs:331:63 [INFO] [stdout] | [INFO] [stdout] 331 | Token::Op(ref op) => if !Expr::operate(&mut eval_stack, op.clone()) { return None; }, // TODO: what [INFO] [stdout] | ^^ [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/expr.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 341 | fn operate(eval_stack: &mut Vec>, op: Op) -> bool { [INFO] [stdout] | ^^^^^^^ ------ [INFO] [stdout] help: consider annotating `Op` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(Clone)] [INFO] [stdout] 36 | enum Op { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:332:44 [INFO] [stdout] | [INFO] [stdout] 332 | Token::Val(ref val) => eval_stack.push(val.clone()), [INFO] [stdout] | ---- ^^^^^^^^^^^ expected `Val`, found `&Val` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Val<_>` [INFO] [stdout] found reference `&Val<_>` [INFO] [stdout] note: `Val` does not implement `Clone`, so `&Val` was cloned instead [INFO] [stdout] --> src/expr.rs:332:44 [INFO] [stdout] | [INFO] [stdout] 332 | Token::Val(ref val) => eval_stack.push(val.clone()), [INFO] [stdout] | ^^^ [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/alloc/src/vec/mod.rs:1993:12 [INFO] [stdout] help: consider annotating `Val` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 7 + #[derive(Clone)] [INFO] [stdout] 8 | pub enum Val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/expr.rs:335:43 [INFO] [stdout] | [INFO] [stdout] 335 | Some(ref val) => eval_stack.push(val.clone()), [INFO] [stdout] | ^^^^^ cannot infer type for type parameter `T` declared on the enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:332:44 [INFO] [stdout] | [INFO] [stdout] 332 | Token::Val(ref val) => eval_stack.push(val.clone()), [INFO] [stdout] | ---- ^^^^^^^^^^^ expected `Val`, found `&Val` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Val<_>` [INFO] [stdout] found reference `&Val<_>` [INFO] [stdout] note: `Val` does not implement `Clone`, so `&Val` was cloned instead [INFO] [stdout] --> src/expr.rs:332:44 [INFO] [stdout] | [INFO] [stdout] 332 | Token::Val(ref val) => eval_stack.push(val.clone()), [INFO] [stdout] | ^^^ [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/alloc/src/vec/mod.rs:1993:12 [INFO] [stdout] help: consider annotating `Val` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 7 + #[derive(Clone)] [INFO] [stdout] 8 | pub enum Val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/expr.rs:335:43 [INFO] [stdout] | [INFO] [stdout] 335 | Some(ref val) => eval_stack.push(val.clone()), [INFO] [stdout] | ^^^^^ cannot infer type for type parameter `T` declared on the enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:426:36 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 426 | form = super::parse("2 + 3 * 4").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:429:47 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 429 | form = super::parse("( 23.5- (22+1))/0.25").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:432:32 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 432 | form = super::parse("4^3^2").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0369, E0412, E0432, E0463, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:435:33 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 435 | form = super::parse("19 % 3").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:444:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 444 | assert_eq!(res.unwrap().evaluate(), None); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `err` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:447:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 447 | assert_eq!(res.err().unwrap(), super::Error::UnknownToken("2d4".to_string())); [INFO] [stdout] | ^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `err` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:450:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 450 | assert_eq!(res.err().unwrap(), super::Error::MismatchedParenthesis); [INFO] [stdout] | ^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `err` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:453:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 453 | assert_eq!(res.err().unwrap(), super::Error::MismatchedParenthesis); [INFO] [stdout] | ^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `expr` (lib) due to 28 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:456:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 456 | assert_eq!(res.unwrap().evaluate(), None); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:459:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 459 | assert_eq!(res.unwrap().evaluate(), None); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `err` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:462:18 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 462 | assert_eq!(res.err().unwrap(), super::Error::UnknownToken("~".to_string())); [INFO] [stdout] | ^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:467:59 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 467 | let form = super::parse(r#" "eat" + " " + "hotdogs" "#).unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:470:45 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 470 | assert_eq!(super::parse(r#" "eat" * 6 "#).unwrap().evaluate(), None); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_err` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:472:36 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 472 | assert!(super::parse(r#" """ "#).is_err()); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:479:37 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 479 | form = super::parse("3 == 1 + 2").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:482:52 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 482 | form = super::parse(r#" "hotdog" != "hotdog" "#).unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:485:47 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 485 | form = super::parse("4 * 3 >= 12 && 4 > 3").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:488:42 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 488 | form = super::parse("2 < 2 || 2 <= 2").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:491:36 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 491 | form = super::parse("2==3||4>4").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:494:51 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 494 | form = super::parse("(2 == 1 * 2) * 3.1 + 4.2").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:500:48 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 500 | let mut form1 = super::parse("3 + fish * 2").unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Result, Error>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/expr.rs:505:63 [INFO] [stdout] | [INFO] [stdout] 285 | pub struct Expr { [INFO] [stdout] | ------------------ doesn't satisfy `Expr<()>: Sized` [INFO] [stdout] ... [INFO] [stdout] 505 | let mut form2 = super::parse(r#" once + upon + a + time "#).unwrap(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Result, Error>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Expr<()>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0308, E0369, E0412, E0432, E0463, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `expr` (lib test) due to 50 previous errors [INFO] running `Command { std: "docker" "inspect" "c04438b4406780da24fa7fd7c08cc07d0ae8cd665d6329cfb99b98b08b61f5cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c04438b4406780da24fa7fd7c08cc07d0ae8cd665d6329cfb99b98b08b61f5cd", kill_on_drop: false }` [INFO] [stdout] c04438b4406780da24fa7fd7c08cc07d0ae8cd665d6329cfb99b98b08b61f5cd