[INFO] cloning repository https://github.com/diggymo/rustack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diggymo/rustack" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiggymo%2Frustack", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiggymo%2Frustack'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7025dd9844e981f83b7a61f4d07418c166f3960c [INFO] checking diggymo/rustack against master#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiggymo%2Frustack" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/diggymo/rustack [INFO] finished tweaking git repo https://github.com/diggymo/rustack [INFO] tweaked toml for git repo https://github.com/diggymo/rustack written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/diggymo/rustack on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/diggymo/rustack already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-chrome v0.7.2 [INFO] [stderr] Downloaded test-log-macros v0.2.16 [INFO] [stderr] Downloaded test-log v0.2.16 [INFO] [stderr] Downloaded colorchoice v1.0.1 [INFO] [stderr] Downloaded anstyle-wincon v3.0.3 [INFO] [stderr] Downloaded is_terminal_polyfill v1.70.0 [INFO] [stderr] Downloaded anstyle-query v1.1.0 [INFO] [stderr] Downloaded anstyle-parse v0.2.4 [INFO] [stderr] Downloaded env_logger v0.11.3 [INFO] [stderr] Downloaded anstream v0.6.14 [INFO] [stderr] Downloaded serde_json v1.0.120 [INFO] [stderr] Downloaded syn v2.0.69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76ccdf5b31c3968c87514cb2a4d31fd95367b7b6ae8620e82c7ccd00be39630d [INFO] running `Command { std: "docker" "start" "-a" "76ccdf5b31c3968c87514cb2a4d31fd95367b7b6ae8620e82c7ccd00be39630d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76ccdf5b31c3968c87514cb2a4d31fd95367b7b6ae8620e82c7ccd00be39630d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76ccdf5b31c3968c87514cb2a4d31fd95367b7b6ae8620e82c7ccd00be39630d", kill_on_drop: false }` [INFO] [stdout] 76ccdf5b31c3968c87514cb2a4d31fd95367b7b6ae8620e82c7ccd00be39630d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1776ab09cd3d0fcee7a5301654d225abc085ada26a0d81786e8b4b2f65380e0a [INFO] running `Command { std: "docker" "start" "-a" "1776ab09cd3d0fcee7a5301654d225abc085ada26a0d81786e8b4b2f65380e0a", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Compiling syn v2.0.69 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling test-log-macros v0.2.16 [INFO] [stderr] Checking test-log v0.2.16 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking tracing-chrome v0.7.2 [INFO] [stderr] Checking rustack v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main_4.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main_4.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_chrome::ChromeLayerBuilder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing_chrome::ChromeLayerBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env_logger` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt` [INFO] [stdout] --> src/main.rs:619:5 [INFO] [stdout] | [INFO] [stdout] 619 | use tracing_subscriber::fmt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Registry` [INFO] [stdout] --> src/main.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [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/main_2.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | self.0 == other.0 [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] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 73 - self.0 == other.0 [INFO] [stdout] 73 + std::ptr::fn_addr_eq(self.0, other.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_chrome::ChromeLayerBuilder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing_chrome::ChromeLayerBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env_logger` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt` [INFO] [stdout] --> src/main.rs:619:5 [INFO] [stdout] | [INFO] [stdout] 619 | use tracing_subscriber::fmt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Registry` [INFO] [stdout] --> src/main.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 109 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 110 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 111 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 112 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 113 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [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/main_2.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | self.0 == other.0 [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] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 73 - self.0 == other.0 [INFO] [stdout] 73 + std::ptr::fn_addr_eq(self.0, other.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:771:16 [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:777:11 [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:782:10 [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main_4.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn get_fn(&self, name: &str) -> Option<&FnDef> { [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [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] 178 | pub fn get_fn(&self, name: &str) -> Option<&FnDef<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:324:22 [INFO] [stdout] | [INFO] [stdout] 324 | fn statements(input: &str) -> IResult<&str, Statements> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 324 | fn statements(input: &str) -> IResult<&str, Statements<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | fn statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 331 | fn statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | fn continue_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 342 | fn continue_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:347:27 [INFO] [stdout] | [INFO] [stdout] 347 | fn break_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 347 | fn break_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:353:28 [INFO] [stdout] | [INFO] [stdout] 353 | fn return_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 353 | fn return_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:364:25 [INFO] [stdout] | [INFO] [stdout] 364 | fn for_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 364 | fn for_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:387:28 [INFO] [stdout] | [INFO] [stdout] 387 | fn fn_def_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 387 | fn fn_def_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:416:19 [INFO] [stdout] | [INFO] [stdout] 416 | fn var_def(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 416 | fn var_def(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:429:22 [INFO] [stdout] | [INFO] [stdout] 429 | fn var_assign(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 429 | fn var_assign(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:441:26 [INFO] [stdout] | [INFO] [stdout] 441 | fn expr_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 441 | fn expr_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::ops::ControlFlow` that must be used [INFO] [stdout] --> src/main_4.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 462 | eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 462 | let _ = eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:637:22 [INFO] [stdout] | [INFO] [stdout] 637 | fn value_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 637 | fn value_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:707:16 [INFO] [stdout] | [INFO] [stdout] 707 | fn expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 707 | fn expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:711:19 [INFO] [stdout] | [INFO] [stdout] 711 | fn if_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 711 | fn if_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:736:17 [INFO] [stdout] | [INFO] [stdout] 736 | fn cond_expr(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 736 | fn cond_expr(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:750:16 [INFO] [stdout] | [INFO] [stdout] 750 | fn term(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 750 | fn term(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:764:14 [INFO] [stdout] | [INFO] [stdout] 764 | fn factor(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 764 | fn factor(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:767:17 [INFO] [stdout] | [INFO] [stdout] 767 | fn paren(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 767 | fn paren(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/main.rs:620:26 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:771:27 [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:777:22 [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 109 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 110 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 111 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 112 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 113 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:782:21 [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:803:21 [INFO] [stdout] | [INFO] [stdout] 803 | fn func_call(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 803 | fn func_call(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 218 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 219 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 220 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 221 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 222 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:428:17 [INFO] [stdout] | [INFO] [stdout] 428 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/main.rs:620:26 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 218 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 219 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 220 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 221 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 222 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:428:17 [INFO] [stdout] | [INFO] [stdout] 428 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:771:16 [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:777:11 [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:782:10 [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main_4.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex_eval` is never used [INFO] [stdout] --> src/main_4.rs:624:4 [INFO] [stdout] | [INFO] [stdout] 624 | fn ex_eval<'src>(input: &'src str, frame: &mut StackFrame<'src>) -> EvalResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn get_fn(&self, name: &str) -> Option<&FnDef> { [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [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] 178 | pub fn get_fn(&self, name: &str) -> Option<&FnDef<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:324:22 [INFO] [stdout] | [INFO] [stdout] 324 | fn statements(input: &str) -> IResult<&str, Statements> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 324 | fn statements(input: &str) -> IResult<&str, Statements<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | fn statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 331 | fn statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | fn continue_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 342 | fn continue_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:347:27 [INFO] [stdout] | [INFO] [stdout] 347 | fn break_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 347 | fn break_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:353:28 [INFO] [stdout] | [INFO] [stdout] 353 | fn return_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 353 | fn return_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:364:25 [INFO] [stdout] | [INFO] [stdout] 364 | fn for_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 364 | fn for_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:387:28 [INFO] [stdout] | [INFO] [stdout] 387 | fn fn_def_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 387 | fn fn_def_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:416:19 [INFO] [stdout] | [INFO] [stdout] 416 | fn var_def(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 416 | fn var_def(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:429:22 [INFO] [stdout] | [INFO] [stdout] 429 | fn var_assign(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 429 | fn var_assign(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:441:26 [INFO] [stdout] | [INFO] [stdout] 441 | fn expr_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 441 | fn expr_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `ControlFlow` that must be used [INFO] [stdout] --> src/main_4.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 462 | eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 462 | let _ = eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:637:22 [INFO] [stdout] | [INFO] [stdout] 637 | fn value_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 637 | fn value_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:707:16 [INFO] [stdout] | [INFO] [stdout] 707 | fn expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 707 | fn expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:711:19 [INFO] [stdout] | [INFO] [stdout] 711 | fn if_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 711 | fn if_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:736:17 [INFO] [stdout] | [INFO] [stdout] 736 | fn cond_expr(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 736 | fn cond_expr(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:750:16 [INFO] [stdout] | [INFO] [stdout] 750 | fn term(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 750 | fn term(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:764:14 [INFO] [stdout] | [INFO] [stdout] 764 | fn factor(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 764 | fn factor(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:767:17 [INFO] [stdout] | [INFO] [stdout] 767 | fn paren(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 767 | fn paren(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:771:27 [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:777:22 [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:782:21 [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main_4.rs:803:21 [INFO] [stdout] | [INFO] [stdout] 803 | fn func_call(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 803 | fn func_call(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:963:16 [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:969:11 [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:974:10 [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vars`, `funcs`, and `super_context` are never read [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TypeCheckContext<'src> { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 40 | vars: HashMap<&'src str, TypeDecl>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | funcs: HashMap<&'src str, FnDef<'src>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | super_context: Option<&'src TypeCheckContext<'src>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_var` and `get_fn` are never used [INFO] [stdout] --> src/main.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl<'src> TypeCheckContext<'src> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_var(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_fn(&self, name: &str) -> Option<&FnDef<'src>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl TypeCheckError { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 112 | fn new(msg: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tc_coerce_type` is never used [INFO] [stdout] --> src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn tc_coerce_type<'src>(value: &TypeDecl, target: &TypeDecl) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn get_fn(&self, name: &str) -> Option<&FnDef> { [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [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] 297 | pub fn get_fn(&self, name: &str) -> Option<&FnDef<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:456:22 [INFO] [stdout] | [INFO] [stdout] 456 | fn statements(input: &str) -> IResult<&str, Statements> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 456 | fn statements(input: &str) -> IResult<&str, Statements<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:464:21 [INFO] [stdout] | [INFO] [stdout] 464 | fn statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 464 | fn statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:476:30 [INFO] [stdout] | [INFO] [stdout] 476 | fn continue_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 476 | fn continue_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:483:27 [INFO] [stdout] | [INFO] [stdout] 483 | fn break_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 483 | fn break_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:490:28 [INFO] [stdout] | [INFO] [stdout] 490 | fn return_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 490 | fn return_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:502:25 [INFO] [stdout] | [INFO] [stdout] 502 | fn for_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 502 | fn for_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:526:28 [INFO] [stdout] | [INFO] [stdout] 526 | fn fn_def_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 526 | fn fn_def_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:570:19 [INFO] [stdout] | [INFO] [stdout] 570 | fn var_def(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 570 | fn var_def(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:600:22 [INFO] [stdout] | [INFO] [stdout] 600 | fn var_assign(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 600 | fn var_assign(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:613:26 [INFO] [stdout] | [INFO] [stdout] 613 | fn expr_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 613 | fn expr_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::ops::ControlFlow` that must be used [INFO] [stdout] --> src/main.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 642 | let _ = eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:829:22 [INFO] [stdout] | [INFO] [stdout] 829 | fn value_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 829 | fn value_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:899:16 [INFO] [stdout] | [INFO] [stdout] 899 | fn expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 899 | fn expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:903:19 [INFO] [stdout] | [INFO] [stdout] 903 | fn if_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 903 | fn if_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:963:16 [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:928:17 [INFO] [stdout] | [INFO] [stdout] 928 | fn cond_expr(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 928 | fn cond_expr(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:942:16 [INFO] [stdout] | [INFO] [stdout] 942 | fn term(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 942 | fn term(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:956:14 [INFO] [stdout] | [INFO] [stdout] 956 | fn factor(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 956 | fn factor(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:959:17 [INFO] [stdout] | [INFO] [stdout] 959 | fn paren(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 959 | fn paren(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:963:27 [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:969:22 [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:969:11 [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:974:21 [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:995:21 [INFO] [stdout] | [INFO] [stdout] 995 | fn func_call(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 995 | fn func_call(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:974:10 [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vars`, `funcs`, and `super_context` are never read [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TypeCheckContext<'src> { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 40 | vars: HashMap<&'src str, TypeDecl>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | funcs: HashMap<&'src str, FnDef<'src>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | super_context: Option<&'src TypeCheckContext<'src>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_var` and `get_fn` are never used [INFO] [stdout] --> src/main.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl<'src> TypeCheckContext<'src> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_var(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_fn(&self, name: &str) -> Option<&FnDef<'src>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl TypeCheckError { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 112 | fn new(msg: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tc_coerce_type` is never used [INFO] [stdout] --> src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn tc_coerce_type<'src>(value: &TypeDecl, target: &TypeDecl) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex_eval` is never used [INFO] [stdout] --> src/main.rs:816:4 [INFO] [stdout] | [INFO] [stdout] 816 | fn ex_eval<'src>(input: &'src str, frame: &mut StackFrame<'src>) -> EvalResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn get_fn(&self, name: &str) -> Option<&FnDef> { [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [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] 297 | pub fn get_fn(&self, name: &str) -> Option<&FnDef<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:456:22 [INFO] [stdout] | [INFO] [stdout] 456 | fn statements(input: &str) -> IResult<&str, Statements> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 456 | fn statements(input: &str) -> IResult<&str, Statements<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:464:21 [INFO] [stdout] | [INFO] [stdout] 464 | fn statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 464 | fn statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:476:30 [INFO] [stdout] | [INFO] [stdout] 476 | fn continue_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 476 | fn continue_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:483:27 [INFO] [stdout] | [INFO] [stdout] 483 | fn break_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 483 | fn break_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:490:28 [INFO] [stdout] | [INFO] [stdout] 490 | fn return_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 490 | fn return_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:502:25 [INFO] [stdout] | [INFO] [stdout] 502 | fn for_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 502 | fn for_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:526:28 [INFO] [stdout] | [INFO] [stdout] 526 | fn fn_def_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 526 | fn fn_def_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:570:19 [INFO] [stdout] | [INFO] [stdout] 570 | fn var_def(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 570 | fn var_def(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:600:22 [INFO] [stdout] | [INFO] [stdout] 600 | fn var_assign(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 600 | fn var_assign(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:613:26 [INFO] [stdout] | [INFO] [stdout] 613 | fn expr_statement(input: &str) -> IResult<&str, Statement> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 613 | fn expr_statement(input: &str) -> IResult<&str, Statement<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `ControlFlow` that must be used [INFO] [stdout] --> src/main.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 642 | let _ = eval_stmts(&parsed_statements, &mut stack_frame); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:829:22 [INFO] [stdout] | [INFO] [stdout] 829 | fn value_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 829 | fn value_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:899:16 [INFO] [stdout] | [INFO] [stdout] 899 | fn expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 899 | fn expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:903:19 [INFO] [stdout] | [INFO] [stdout] 903 | fn if_expr(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 903 | fn if_expr(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:928:17 [INFO] [stdout] | [INFO] [stdout] 928 | fn cond_expr(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 928 | fn cond_expr(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:942:16 [INFO] [stdout] | [INFO] [stdout] 942 | fn term(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 942 | fn term(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:956:14 [INFO] [stdout] | [INFO] [stdout] 956 | fn factor(i: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 956 | fn factor(i: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:959:17 [INFO] [stdout] | [INFO] [stdout] 959 | fn paren(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 959 | fn paren(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:963:27 [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:969:22 [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:974:21 [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:995:21 [INFO] [stdout] | [INFO] [stdout] 995 | fn func_call(input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 995 | fn func_call(input: &str) -> IResult<&str, Expression<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.29s [INFO] running `Command { std: "docker" "inspect" "1776ab09cd3d0fcee7a5301654d225abc085ada26a0d81786e8b4b2f65380e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1776ab09cd3d0fcee7a5301654d225abc085ada26a0d81786e8b4b2f65380e0a", kill_on_drop: false }` [INFO] [stdout] 1776ab09cd3d0fcee7a5301654d225abc085ada26a0d81786e8b4b2f65380e0a