[INFO] fetching crate caldyn 0.4.3... [INFO] checking caldyn-0.4.3 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate caldyn 0.4.3 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate caldyn 0.4.3 [INFO] finished tweaking crates.io crate caldyn 0.4.3 [INFO] tweaked toml for crates.io crate caldyn 0.4.3 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate caldyn 0.4.3 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding rustyline v1.0.0 (available: v17.0.1) [INFO] [stderr] Adding shellexpand v1.1.1 (available: v3.1.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16e916becae9d678cd700793244eb9b4fc779524b1a0a882e90b0381ebfb5eea [INFO] running `Command { std: "docker" "start" "-a" "16e916becae9d678cd700793244eb9b4fc779524b1a0a882e90b0381ebfb5eea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16e916becae9d678cd700793244eb9b4fc779524b1a0a882e90b0381ebfb5eea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16e916becae9d678cd700793244eb9b4fc779524b1a0a882e90b0381ebfb5eea", kill_on_drop: false }` [INFO] [stdout] 16e916becae9d678cd700793244eb9b4fc779524b1a0a882e90b0381ebfb5eea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2c1e413e7a29a1559cb4ac7bd066b418358d900d9073153265cb0a23f6cba0f [INFO] running `Command { std: "docker" "start" "-a" "d2c1e413e7a29a1559cb4ac7bd066b418358d900d9073153265cb0a23f6cba0f", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking bitflags v0.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking encode_unicode v0.1.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking caldyn v0.4.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:66:45 [INFO] [stdout] | [INFO] [stdout] 66 | let args = Box::new(try!(Ast::from_tokens(tokens, " in function call"))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:77:42 [INFO] [stdout] | [INFO] [stdout] 77 | let right = Box::new(try!(Ast::from_tokens(tokens, " after operator"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | let left = Box::new(try!(Ast::from_tokens(tokens, " befor operator"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:103:49 [INFO] [stdout] | [INFO] [stdout] 103 | Ast::Add(ref left, ref right) => Ok(try!(left.eval(context)) + try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:103:76 [INFO] [stdout] | [INFO] [stdout] 103 | Ast::Add(ref left, ref right) => Ok(try!(left.eval(context)) + try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:104:49 [INFO] [stdout] | [INFO] [stdout] 104 | Ast::Sub(ref left, ref right) => Ok(try!(left.eval(context)) - try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:104:76 [INFO] [stdout] | [INFO] [stdout] 104 | Ast::Sub(ref left, ref right) => Ok(try!(left.eval(context)) - try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:105:49 [INFO] [stdout] | [INFO] [stdout] 105 | Ast::Mul(ref left, ref right) => Ok(try!(left.eval(context)) * try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:105:76 [INFO] [stdout] | [INFO] [stdout] 105 | Ast::Mul(ref left, ref right) => Ok(try!(left.eval(context)) * try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:106:49 [INFO] [stdout] | [INFO] [stdout] 106 | Ast::Div(ref left, ref right) => Ok(try!(left.eval(context)) / try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:106:76 [INFO] [stdout] | [INFO] [stdout] 106 | Ast::Div(ref left, ref right) => Ok(try!(left.eval(context)) / try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:107:49 [INFO] [stdout] | [INFO] [stdout] 107 | Ast::Exp(ref left, ref right) => Ok(try!(left.eval(context)).powf(try!(right.eval(context)))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:107:79 [INFO] [stdout] | [INFO] [stdout] 107 | Ast::Exp(ref left, ref right) => Ok(try!(left.eval(context)).powf(try!(right.eval(context)))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | Ast::Function(ref func, ref arg) => Ok(func(try!(arg.eval(context)))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:221:42 [INFO] [stdout] | [INFO] [stdout] 221 | 'tokens: while let Some(token) = try!(lexer.next_token()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:278:19 [INFO] [stdout] | [INFO] [stdout] 278 | let ast = try!(Ast::from_tokens(&mut output, "")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/context.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | query: Option Option + 'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | query: Option Option + 'a>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/expr.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 55 | Function(fn(f64) -> f64, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/expr.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | fn new(string: &str) -> Lexer { [INFO] [stdout] | ^^^^ ----- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 365 | fn new(string: &str) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking shellexpand v1.1.1 [INFO] [stderr] Checking rustyline v1.0.0 [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:66:45 [INFO] [stdout] | [INFO] [stdout] 66 | let args = Box::new(try!(Ast::from_tokens(tokens, " in function call"))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:77:42 [INFO] [stdout] | [INFO] [stdout] 77 | let right = Box::new(try!(Ast::from_tokens(tokens, " after operator"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:78:41 [INFO] [stdout] | [INFO] [stdout] 78 | let left = Box::new(try!(Ast::from_tokens(tokens, " befor operator"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:103:49 [INFO] [stdout] | [INFO] [stdout] 103 | Ast::Add(ref left, ref right) => Ok(try!(left.eval(context)) + try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:103:76 [INFO] [stdout] | [INFO] [stdout] 103 | Ast::Add(ref left, ref right) => Ok(try!(left.eval(context)) + try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:104:49 [INFO] [stdout] | [INFO] [stdout] 104 | Ast::Sub(ref left, ref right) => Ok(try!(left.eval(context)) - try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:104:76 [INFO] [stdout] | [INFO] [stdout] 104 | Ast::Sub(ref left, ref right) => Ok(try!(left.eval(context)) - try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:105:49 [INFO] [stdout] | [INFO] [stdout] 105 | Ast::Mul(ref left, ref right) => Ok(try!(left.eval(context)) * try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:105:76 [INFO] [stdout] | [INFO] [stdout] 105 | Ast::Mul(ref left, ref right) => Ok(try!(left.eval(context)) * try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:106:49 [INFO] [stdout] | [INFO] [stdout] 106 | Ast::Div(ref left, ref right) => Ok(try!(left.eval(context)) / try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:106:76 [INFO] [stdout] | [INFO] [stdout] 106 | Ast::Div(ref left, ref right) => Ok(try!(left.eval(context)) / try!(right.eval(context))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:107:49 [INFO] [stdout] | [INFO] [stdout] 107 | Ast::Exp(ref left, ref right) => Ok(try!(left.eval(context)).powf(try!(right.eval(context)))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:107:79 [INFO] [stdout] | [INFO] [stdout] 107 | Ast::Exp(ref left, ref right) => Ok(try!(left.eval(context)).powf(try!(right.eval(context)))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | Ast::Function(ref func, ref arg) => Ok(func(try!(arg.eval(context)))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:221:42 [INFO] [stdout] | [INFO] [stdout] 221 | 'tokens: while let Some(token) = try!(lexer.next_token()) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/expr.rs:278:19 [INFO] [stdout] | [INFO] [stdout] 278 | let ast = try!(Ast::from_tokens(&mut output, "")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/context.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | query: Option Option + 'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | query: Option Option + 'a>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/expr.rs:585:42 [INFO] [stdout] | [INFO] [stdout] 585 | assert_eq!(result.err().unwrap().description(), "name 'z' is not defined"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/expr.rs:587:42 [INFO] [stdout] | [INFO] [stdout] 587 | assert_eq!(result.err().unwrap().description(), "name 'a' is not defined"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/expr.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 55 | Function(fn(f64) -> f64, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/expr.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | fn new(string: &str) -> Lexer { [INFO] [stdout] | ^^^^ ----- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 365 | fn new(string: &str) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.65s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d2c1e413e7a29a1559cb4ac7bd066b418358d900d9073153265cb0a23f6cba0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2c1e413e7a29a1559cb4ac7bd066b418358d900d9073153265cb0a23f6cba0f", kill_on_drop: false }` [INFO] [stdout] d2c1e413e7a29a1559cb4ac7bd066b418358d900d9073153265cb0a23f6cba0f