[INFO] cloning repository https://github.com/mariusdr/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mariusdr/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariusdr%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariusdr%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 235e2406ec5a845c9e797cd2acb291c04673a881 [INFO] checking mariusdr/rlox against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariusdr%2Frlox" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mariusdr/rlox on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mariusdr/rlox [INFO] finished tweaking git repo https://github.com/mariusdr/rlox [INFO] tweaked toml for git repo https://github.com/mariusdr/rlox written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mariusdr/rlox 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 748f49c626b19a780f7f8a06ae8c2227615992895989ff7f9b9d0aa4be714994 [INFO] running `Command { std: "docker" "start" "-a" "748f49c626b19a780f7f8a06ae8c2227615992895989ff7f9b9d0aa4be714994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "748f49c626b19a780f7f8a06ae8c2227615992895989ff7f9b9d0aa4be714994", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "748f49c626b19a780f7f8a06ae8c2227615992895989ff7f9b9d0aa4be714994", kill_on_drop: false }` [INFO] [stdout] 748f49c626b19a780f7f8a06ae8c2227615992895989ff7f9b9d0aa4be714994 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a1890dc2b671d36ad39d803a39ffb0f30d3786091095337bebe9681b13b71c1 [INFO] running `Command { std: "docker" "start" "-a" "6a1890dc2b671d36ad39d803a39ffb0f30d3786091095337bebe9681b13b71c1", kill_on_drop: false }` [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/parser/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/parser/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/parser/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64` [INFO] [stdout] --> src/parser/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::Parser` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/parser/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/parser/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64` [INFO] [stdout] --> src/parser/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser::Parser` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use parser::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result` is never used [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn print_result(res: &Result) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_results` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn print_results(res: &Result, parser::ParserError>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_type` is never used [INFO] [stdout] --> src/lexer/token.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Token { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn match_type(&self, ttype: TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | write!(&mut buf, "An expression of type '{}' is a invalid assignment target.", expr_type(&expr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | write!(&mut errmsg, "TokenStream ended unexpextedly on Token '{}' while parsing primary expr.", self.previous); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | write!(f, "Stmt::Block: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | write!(f, "{}\n", s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "Stmt::If: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | write!(f, "-- condition --\n{}\n", self.condition()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | write!(f, "-- then --\n{}\n", self.then_branch()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | write!(f, "-- else --\n{}\n", stmt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | write!(f, "Stmt::While: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | write!(f, "-- condition --\n{}\n", self.condition()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | write!(f, "-- body --\n{}\n", self.body()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | write!(f, "Stmt::While: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | write!(f, "-- initializer --\n{}\n", i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | write!(f, "-- condition --\n{}\n", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | write!(f, "-- increment --\n{}\n", r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | write!(f, "-- body --\n{}\n", self.body()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result` is never used [INFO] [stdout] --> src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn print_result(res: &Result) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_results` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn print_results(res: &Result, parser::ParserError>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_type` is never used [INFO] [stdout] --> src/lexer/token.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Token { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn match_type(&self, ttype: TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | write!(&mut buf, "An expression of type '{}' is a invalid assignment target.", expr_type(&expr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | write!(&mut errmsg, "TokenStream ended unexpextedly on Token '{}' while parsing primary expr.", self.previous); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | write!(f, "Stmt::Block: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | write!(f, "{}\n", s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "Stmt::If: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | write!(f, "-- condition --\n{}\n", self.condition()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | write!(f, "-- then --\n{}\n", self.then_branch()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | write!(f, "-- else --\n{}\n", stmt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | write!(f, "Stmt::While: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | write!(f, "-- condition --\n{}\n", self.condition()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | write!(f, "-- body --\n{}\n", self.body()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | write!(f, "Stmt::While: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | write!(f, "-- initializer --\n{}\n", i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | write!(f, "-- condition --\n{}\n", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | write!(f, "-- increment --\n{}\n", r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | write!(f, "-- body --\n{}\n", self.body()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "6a1890dc2b671d36ad39d803a39ffb0f30d3786091095337bebe9681b13b71c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a1890dc2b671d36ad39d803a39ffb0f30d3786091095337bebe9681b13b71c1", kill_on_drop: false }` [INFO] [stdout] 6a1890dc2b671d36ad39d803a39ffb0f30d3786091095337bebe9681b13b71c1 [INFO] checking mariusdr/rlox against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariusdr%2Frlox" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mariusdr/rlox on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mariusdr/rlox [INFO] finished tweaking git repo https://github.com/mariusdr/rlox [INFO] tweaked toml for git repo https://github.com/mariusdr/rlox written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mariusdr/rlox 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18454b08f771483dff2772573ca1aac4753fcc1213914bd5d48f39ae7c3babb1 [INFO] running `Command { std: "docker" "start" "-a" "18454b08f771483dff2772573ca1aac4753fcc1213914bd5d48f39ae7c3babb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18454b08f771483dff2772573ca1aac4753fcc1213914bd5d48f39ae7c3babb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18454b08f771483dff2772573ca1aac4753fcc1213914bd5d48f39ae7c3babb1", kill_on_drop: false }` [INFO] [stdout] 18454b08f771483dff2772573ca1aac4753fcc1213914bd5d48f39ae7c3babb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8c07dceff902c525837656e0e5dfb9af3a867b979d0c387fa7f4ad5de013ebb [INFO] running `Command { std: "docker" "start" "-a" "b8c07dceff902c525837656e0e5dfb9af3a867b979d0c387fa7f4ad5de013ebb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking rlox v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/parser/mod.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (3 fixes) [INFO] [stderr] Fixed src/parser/tests.rs (1 fix) [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/parser/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/parser/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_result` is never used [INFO] [stdout] --> src/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn print_result(res: &Result) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_results` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn print_results(res: &Result, parser::ParserError>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `match_type` is never used [INFO] [stdout] --> src/lexer/token.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Token { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn match_type(&self, ttype: TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | write!(&mut buf, "An expression of type '{}' is a invalid assignment target.", expr_type(&expr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/mod.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | write!(&mut errmsg, "TokenStream ended unexpextedly on Token '{}' while parsing primary expr.", self.previous); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | write!(f, "Stmt::Block: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | write!(f, "{}\n", s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "Stmt::If: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | write!(f, "-- condition --\n{}\n", self.condition()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | write!(f, "-- then --\n{}\n", self.then_branch()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | write!(f, "-- else --\n{}\n", stmt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | write!(f, "Stmt::While: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | write!(f, "-- condition --\n{}\n", self.condition()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | write!(f, "-- body --\n{}\n", self.body()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | write!(f, "Stmt::While: -- start --\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | write!(f, "-- initializer --\n{}\n", i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | write!(f, "-- condition --\n{}\n", c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | write!(f, "-- increment --\n{}\n", r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser/display.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | write!(f, "-- body --\n{}\n", self.body()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | fn not_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_false_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let x = make_false_literal(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_false_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_unaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | make_unaryop(UnaryOpType::Not, x) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_unaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnaryOpType` [INFO] [stdout] --> src/parser/tests.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | make_unaryop(UnaryOpType::Not, x) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `UnaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::UnaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | fn not_stmt() -> Stmt { make_expr(not_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | fn not_stmt() -> Stmt { make_expr(not_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 11 | fn not_stmt() -> Stmt { and_expr(not_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | fn neg_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let x = make_num_literal("123"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_unaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | make_unaryop(UnaryOpType::Neg, x) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_unaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnaryOpType` [INFO] [stdout] --> src/parser/tests.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | make_unaryop(UnaryOpType::Neg, x) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `UnaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::UnaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | fn neg_stmt() -> Stmt { make_expr(neg_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | fn neg_stmt() -> Stmt { make_expr(neg_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 17 | fn neg_stmt() -> Stmt { and_expr(neg_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:22:26 [INFO] [stdout] | [INFO] [stdout] 22 | let mut parser = Parser::new(src); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | fn true_stmt() -> Stmt { make_expr(make_true_literal()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | fn true_stmt() -> Stmt { make_expr(make_true_literal()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 28 | fn true_stmt() -> Stmt { and_expr(make_true_literal()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_true_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | fn true_stmt() -> Stmt { make_expr(make_true_literal()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_true_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | fn false_stmt() -> Stmt { make_expr(make_false_literal()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | fn false_stmt() -> Stmt { make_expr(make_false_literal()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 29 | fn false_stmt() -> Stmt { and_expr(make_false_literal()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_false_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:29:41 [INFO] [stdout] | [INFO] [stdout] 29 | fn false_stmt() -> Stmt { make_expr(make_false_literal()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_false_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | fn nil_stmt() -> Stmt { make_expr(make_nil_literal()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | fn nil_stmt() -> Stmt { make_expr(make_nil_literal()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 30 | fn nil_stmt() -> Stmt { and_expr(make_nil_literal()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_nil_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 30 | fn nil_stmt() -> Stmt { make_expr(make_nil_literal()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_nil_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | fn int_stmt() -> Stmt { make_expr(make_num_literal("123.456")) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | fn int_stmt() -> Stmt { make_expr(make_num_literal("123.456")) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 31 | fn int_stmt() -> Stmt { and_expr(make_num_literal("123.456")) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | fn int_stmt() -> Stmt { make_expr(make_num_literal("123.456")) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | fn str_stmt() -> Stmt { make_expr(make_str_literal("foobar")) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | fn str_stmt() -> Stmt { make_expr(make_str_literal("foobar")) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 32 | fn str_stmt() -> Stmt { and_expr(make_str_literal("foobar")) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_str_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:32:39 [INFO] [stdout] | [INFO] [stdout] 32 | fn str_stmt() -> Stmt { make_expr(make_str_literal("foobar")) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_str_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | let mut parser = Parser::new(src); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | let mut parser = Parser::new(src); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | let mut parser = Parser::new(src); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | fn sum_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let num1 = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | let num2 = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | make_binaryop(BinaryOpType::Add, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | make_binaryop(BinaryOpType::Add, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | fn sum_stmt() -> Stmt { make_expr(sum_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | fn sum_stmt() -> Stmt { make_expr(sum_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 66 | fn sum_stmt() -> Stmt { and_expr(sum_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | fn sub_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | let num1 = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | let num2 = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | make_binaryop(BinaryOpType::Sub, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | make_binaryop(BinaryOpType::Sub, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | fn sub_stmt() -> Stmt { make_expr(sub_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn sub_stmt() -> Stmt { make_expr(sub_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 73 | fn sub_stmt() -> Stmt { and_expr(sub_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 75 | fn mult_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | let num1 = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | let num2 = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | make_binaryop(BinaryOpType::Mult, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | make_binaryop(BinaryOpType::Mult, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | fn mult_stmt() -> Stmt { make_expr(mult_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 80 | fn mult_stmt() -> Stmt { make_expr(mult_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 80 | fn mult_stmt() -> Stmt { and_expr(mult_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:82:22 [INFO] [stdout] | [INFO] [stdout] 82 | fn div_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:83:20 [INFO] [stdout] | [INFO] [stdout] 83 | let num1 = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 84 | let num2 = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | make_binaryop(BinaryOpType::Div, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | make_binaryop(BinaryOpType::Div, num1, num2) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | fn div_stmt() -> Stmt { make_expr(div_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | fn div_stmt() -> Stmt { make_expr(div_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 87 | fn div_stmt() -> Stmt { and_expr(div_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | fn gt_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let x = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | let y = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | make_binaryop(BinaryOpType::Greater, x, y) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:92:23 [INFO] [stdout] | [INFO] [stdout] 92 | make_binaryop(BinaryOpType::Greater, x, y) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | fn gt_stmt() -> Stmt { make_expr(gt_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | fn gt_stmt() -> Stmt { make_expr(gt_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 94 | fn gt_stmt() -> Stmt { and_expr(gt_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | fn lt_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let x = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let y = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | make_binaryop(BinaryOpType::Less, x, y) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | make_binaryop(BinaryOpType::Less, x, y) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | fn lt_stmt() -> Stmt { make_expr(lt_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:101:28 [INFO] [stdout] | [INFO] [stdout] 101 | fn lt_stmt() -> Stmt { make_expr(lt_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 101 | fn lt_stmt() -> Stmt { and_expr(lt_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | fn ge_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let x = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let y = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | make_binaryop(BinaryOpType::GreaterEqual, x, y) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | make_binaryop(BinaryOpType::GreaterEqual, x, y) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | fn ge_stmt() -> Stmt { make_expr(ge_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | fn ge_stmt() -> Stmt { make_expr(ge_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 108 | fn ge_stmt() -> Stmt { and_expr(ge_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | fn le_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let x = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let y = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | make_binaryop(BinaryOpType::LessEqual, x, y) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:113:23 [INFO] [stdout] | [INFO] [stdout] 113 | make_binaryop(BinaryOpType::LessEqual, x, y) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | fn le_stmt() -> Stmt { make_expr(le_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:115:28 [INFO] [stdout] | [INFO] [stdout] 115 | fn le_stmt() -> Stmt { make_expr(le_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 115 | fn le_stmt() -> Stmt { and_expr(le_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | fn eq_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let x = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | let y = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | make_binaryop(BinaryOpType::Equal, x, y) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | make_binaryop(BinaryOpType::Equal, x, y) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | fn eq_stmt() -> Stmt { make_expr(eq_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | fn eq_stmt() -> Stmt { make_expr(eq_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 122 | fn eq_stmt() -> Stmt { and_expr(eq_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | fn ne_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let x = make_num_literal("1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let y = make_num_literal("2"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | make_binaryop(BinaryOpType::NotEqual, x, y) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:127:23 [INFO] [stdout] | [INFO] [stdout] 127 | make_binaryop(BinaryOpType::NotEqual, x, y) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | fn ne_stmt() -> Stmt { make_expr(ne_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:129:28 [INFO] [stdout] | [INFO] [stdout] 129 | fn ne_stmt() -> Stmt { make_expr(ne_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 129 | fn ne_stmt() -> Stmt { and_expr(ne_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | let mut parser = Parser::new(src); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:154:19 [INFO] [stdout] | [INFO] [stdout] 154 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let s = make_expr( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 155 | let s = and_expr( [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | make_binaryop(BinaryOpType::Sub, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | make_binaryop(BinaryOpType::Sub, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | make_num_literal("1"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_unaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | make_unaryop(UnaryOpType::Neg, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_unaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnaryOpType` [INFO] [stdout] --> src/parser/tests.rs:158:30 [INFO] [stdout] | [INFO] [stdout] 158 | make_unaryop(UnaryOpType::Neg, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `UnaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::UnaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | make_num_literal("2")))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:166:26 [INFO] [stdout] | [INFO] [stdout] 166 | let mut parser = Parser::new(src); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | fn grp_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_grouping` in this scope [INFO] [stdout] --> src/parser/tests.rs:172:18 [INFO] [stdout] | [INFO] [stdout] 172 | let g1 = make_grouping(sum_expr()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_grouping; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_grouping` in this scope [INFO] [stdout] --> src/parser/tests.rs:173:18 [INFO] [stdout] | [INFO] [stdout] 173 | let g2 = make_grouping(sub_expr()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_grouping; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_grouping` in this scope [INFO] [stdout] --> src/parser/tests.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 174 | let g3 = make_grouping(mult_expr()); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_grouping; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let s = make_binaryop(BinaryOpType::Add, g2, g3); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:175:31 [INFO] [stdout] | [INFO] [stdout] 175 | let s = make_binaryop(BinaryOpType::Add, g2, g3); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_grouping` in this scope [INFO] [stdout] --> src/parser/tests.rs:176:18 [INFO] [stdout] | [INFO] [stdout] 176 | let g4 = make_grouping(s); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_grouping; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | make_binaryop(BinaryOpType::Sub, g1, g4) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | make_binaryop(BinaryOpType::Sub, g1, g4) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:179:22 [INFO] [stdout] | [INFO] [stdout] 179 | fn grp_stmt() -> Stmt { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | make_expr(grp_expr()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 180 | and_expr(grp_expr()) [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 186 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | fn vardecl_stmt() -> Stmt { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_vardecl` in this scope [INFO] [stdout] --> src/parser/tests.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | make_vardecl("x", Some(grp_expr())) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_vardecl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 197 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | fn varsum_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | make_binaryop(BinaryOpType::Add, make_variable("x"), make_variable("y")) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:202:23 [INFO] [stdout] | [INFO] [stdout] 202 | make_binaryop(BinaryOpType::Add, make_variable("x"), make_variable("y")) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:202:42 [INFO] [stdout] | [INFO] [stdout] 202 | make_binaryop(BinaryOpType::Add, make_variable("x"), make_variable("y")) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:202:62 [INFO] [stdout] | [INFO] [stdout] 202 | make_binaryop(BinaryOpType::Add, make_variable("x"), make_variable("y")) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | fn varsum_stmt() -> Stmt { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | make_expr(varsum_expr()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 205 | and_expr(varsum_expr()) [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:211:19 [INFO] [stdout] | [INFO] [stdout] 211 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let v = make_expr(make_variable("zoidberg")); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 212 | let v = and_expr(make_variable("zoidberg")); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:212:27 [INFO] [stdout] | [INFO] [stdout] 212 | let v = make_expr(make_variable("zoidberg")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:220:28 [INFO] [stdout] | [INFO] [stdout] 220 | fn varassign_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_assign` in this scope [INFO] [stdout] --> src/parser/tests.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | make_assign("x", grp_expr()) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_assign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:223:28 [INFO] [stdout] | [INFO] [stdout] 223 | fn varassign_stmt() -> Stmt { make_expr(varassign_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:223:35 [INFO] [stdout] | [INFO] [stdout] 223 | fn varassign_stmt() -> Stmt { make_expr(varassign_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 223 | fn varassign_stmt() -> Stmt { and_expr(varassign_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:228:19 [INFO] [stdout] | [INFO] [stdout] 228 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:235:19 [INFO] [stdout] | [INFO] [stdout] 235 | let res = Parser::new(src).parse(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:242:19 [INFO] [stdout] | [INFO] [stdout] 242 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_vardecl` in this scope [INFO] [stdout] --> src/parser/tests.rs:243:18 [INFO] [stdout] | [INFO] [stdout] 243 | let vd = make_vardecl("x", None); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_vardecl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | let res = Parser::new(src).parse(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:257:19 [INFO] [stdout] | [INFO] [stdout] 257 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_print` in this scope [INFO] [stdout] --> src/parser/tests.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let v = make_print(sum_expr()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_print; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:265:19 [INFO] [stdout] | [INFO] [stdout] 265 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:266:17 [INFO] [stdout] | [INFO] [stdout] 266 | let v = make_block(vec![sum_stmt(), sub_stmt(), mult_stmt()]); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:273:19 [INFO] [stdout] | [INFO] [stdout] 273 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | let v = make_block(vec![ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | make_block(vec![ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | make_block(vec![ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:289:19 [INFO] [stdout] | [INFO] [stdout] 289 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_if` in this scope [INFO] [stdout] --> src/parser/tests.rs:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | let v = make_if(eq_expr(), sum_stmt(), Some(sub_stmt())); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_if; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 297 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_if` in this scope [INFO] [stdout] --> src/parser/tests.rs:298:17 [INFO] [stdout] | [INFO] [stdout] 298 | let v = make_if(eq_expr(), sum_stmt(), None); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_if; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:305:19 [INFO] [stdout] | [INFO] [stdout] 305 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_if` in this scope [INFO] [stdout] --> src/parser/tests.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | let v = make_if(eq_expr(), make_block(vec![sum_stmt(), sub_stmt()]), None); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_if; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:306:36 [INFO] [stdout] | [INFO] [stdout] 306 | let v = make_if(eq_expr(), make_block(vec![sum_stmt(), sub_stmt()]), None); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:310:22 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_and` in this scope [INFO] [stdout] --> src/parser/tests.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | make_and(make_num_literal("1"), make_num_literal("0")) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_and; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:311:18 [INFO] [stdout] | [INFO] [stdout] 311 | make_and(make_num_literal("1"), make_num_literal("0")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:311:41 [INFO] [stdout] | [INFO] [stdout] 311 | make_and(make_num_literal("1"), make_num_literal("0")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:313:22 [INFO] [stdout] | [INFO] [stdout] 313 | fn and_stmt() -> Stmt { make_expr(and_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:313:29 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 313 | fn and_stmt() -> Stmt { make_expr(and_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 313 | fn and_stmt() -> Stmt { and_expr(and_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:315:21 [INFO] [stdout] | [INFO] [stdout] 315 | fn or_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_or` in this scope [INFO] [stdout] --> src/parser/tests.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | make_or(make_num_literal("1"), make_num_literal("0")) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_or; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | make_or(make_num_literal("1"), make_num_literal("0")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:316:40 [INFO] [stdout] | [INFO] [stdout] 316 | make_or(make_num_literal("1"), make_num_literal("0")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 318 | fn or_stmt() -> Stmt { make_expr(or_expr()) } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:318:28 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 318 | fn or_stmt() -> Stmt { make_expr(or_expr()) } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 318 | fn or_stmt() -> Stmt { and_expr(or_expr()) } [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:323:19 [INFO] [stdout] | [INFO] [stdout] 323 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:327:19 [INFO] [stdout] | [INFO] [stdout] 327 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 334 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_or` in this scope [INFO] [stdout] --> src/parser/tests.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let v = make_or(make_and(make_num_literal("1"), make_num_literal("1")), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_or; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_and` in this scope [INFO] [stdout] --> src/parser/tests.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | let v = make_or(make_and(make_num_literal("1"), make_num_literal("1")), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_and; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:335:34 [INFO] [stdout] | [INFO] [stdout] 335 | let v = make_or(make_and(make_num_literal("1"), make_num_literal("1")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:335:57 [INFO] [stdout] | [INFO] [stdout] 335 | let v = make_or(make_and(make_num_literal("1"), make_num_literal("1")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_and` in this scope [INFO] [stdout] --> src/parser/tests.rs:336:25 [INFO] [stdout] | [INFO] [stdout] 336 | make_and(make_num_literal("1"), make_num_literal("0"))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_and; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:336:34 [INFO] [stdout] | [INFO] [stdout] 336 | make_and(make_num_literal("1"), make_num_literal("0"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:336:57 [INFO] [stdout] | [INFO] [stdout] 336 | make_and(make_num_literal("1"), make_num_literal("0"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 337 | let v = make_expr(v); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 337 | let v = and_expr(v); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:344:19 [INFO] [stdout] | [INFO] [stdout] 344 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_while` in this scope [INFO] [stdout] --> src/parser/tests.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | let v = make_while(and_expr(), sum_stmt()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_while; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:349:23 [INFO] [stdout] | [INFO] [stdout] 349 | fn init_stmt() -> Stmt { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_vardecl` in this scope [INFO] [stdout] --> src/parser/tests.rs:350:9 [INFO] [stdout] | [INFO] [stdout] 350 | make_vardecl("i", Some(make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_vardecl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:350:32 [INFO] [stdout] | [INFO] [stdout] 350 | make_vardecl("i", Some(make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:353:23 [INFO] [stdout] | [INFO] [stdout] 353 | fn cond_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | make_binaryop(BinaryOpType::Less, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:354:23 [INFO] [stdout] | [INFO] [stdout] 354 | make_binaryop(BinaryOpType::Less, [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | make_variable("i"), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | make_num_literal("10")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 359 | fn incr_expr() -> Expr { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_assign` in this scope [INFO] [stdout] --> src/parser/tests.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | make_assign("i", make_binaryop(BinaryOpType::Add, make_variable("i"), make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_assign; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:360:26 [INFO] [stdout] | [INFO] [stdout] 360 | make_assign("i", make_binaryop(BinaryOpType::Add, make_variable("i"), make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:360:40 [INFO] [stdout] | [INFO] [stdout] 360 | make_assign("i", make_binaryop(BinaryOpType::Add, make_variable("i"), make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:360:59 [INFO] [stdout] | [INFO] [stdout] 360 | make_assign("i", make_binaryop(BinaryOpType::Add, make_variable("i"), make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:360:79 [INFO] [stdout] | [INFO] [stdout] 360 | make_assign("i", make_binaryop(BinaryOpType::Add, make_variable("i"), make_num_literal("1"))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope [INFO] [stdout] --> src/parser/tests.rs:363:22 [INFO] [stdout] | [INFO] [stdout] 363 | fn for_stmt() -> Stmt { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_print` in this scope [INFO] [stdout] --> src/parser/tests.rs:364:17 [INFO] [stdout] | [INFO] [stdout] 364 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_print; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:364:28 [INFO] [stdout] | [INFO] [stdout] 364 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_for` in this scope [INFO] [stdout] --> src/parser/tests.rs:365:9 [INFO] [stdout] | [INFO] [stdout] 365 | make_for(Some(init_stmt()), Some(cond_expr()), Some(incr_expr()), b) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_for; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:371:19 [INFO] [stdout] | [INFO] [stdout] 371 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_print` in this scope [INFO] [stdout] --> src/parser/tests.rs:378:17 [INFO] [stdout] | [INFO] [stdout] 378 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_print; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:378:28 [INFO] [stdout] | [INFO] [stdout] 378 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_for` in this scope [INFO] [stdout] --> src/parser/tests.rs:379:17 [INFO] [stdout] | [INFO] [stdout] 379 | let v = make_for(None, Some(cond_expr()), Some(incr_expr()), b); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_for; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:380:19 [INFO] [stdout] | [INFO] [stdout] 380 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_print` in this scope [INFO] [stdout] --> src/parser/tests.rs:387:17 [INFO] [stdout] | [INFO] [stdout] 387 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_print; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:387:28 [INFO] [stdout] | [INFO] [stdout] 387 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_for` in this scope [INFO] [stdout] --> src/parser/tests.rs:388:17 [INFO] [stdout] | [INFO] [stdout] 388 | let v = make_for(None, None, Some(incr_expr()), b); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_for; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:389:19 [INFO] [stdout] | [INFO] [stdout] 389 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_print` in this scope [INFO] [stdout] --> src/parser/tests.rs:396:17 [INFO] [stdout] | [INFO] [stdout] 396 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_print; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:396:28 [INFO] [stdout] | [INFO] [stdout] 396 | let b = make_print(make_variable("i")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_for` in this scope [INFO] [stdout] --> src/parser/tests.rs:397:17 [INFO] [stdout] | [INFO] [stdout] 397 | let v = make_for(None, None, None, b); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_for; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:398:19 [INFO] [stdout] | [INFO] [stdout] 398 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:405:19 [INFO] [stdout] | [INFO] [stdout] 405 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:407:18 [INFO] [stdout] | [INFO] [stdout] 407 | let v1 = make_variable("bar"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:408:18 [INFO] [stdout] | [INFO] [stdout] 408 | let v2 = make_binaryop(BinaryOpType::Mult, make_num_literal("3"), make_variable("baz")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:408:32 [INFO] [stdout] | [INFO] [stdout] 408 | let v2 = make_binaryop(BinaryOpType::Mult, make_num_literal("3"), make_variable("baz")); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:408:52 [INFO] [stdout] | [INFO] [stdout] 408 | let v2 = make_binaryop(BinaryOpType::Mult, make_num_literal("3"), make_variable("baz")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:408:75 [INFO] [stdout] | [INFO] [stdout] 408 | let v2 = make_binaryop(BinaryOpType::Mult, make_num_literal("3"), make_variable("baz")); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_logical` in this scope [INFO] [stdout] --> src/parser/tests.rs:409:18 [INFO] [stdout] | [INFO] [stdout] 409 | let v3 = make_logical(BinaryOpType::And, make_num_literal("1"), make_num_literal("1")); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_logical; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:409:31 [INFO] [stdout] | [INFO] [stdout] 409 | let v3 = make_logical(BinaryOpType::And, make_num_literal("1"), make_num_literal("1")); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:409:50 [INFO] [stdout] | [INFO] [stdout] 409 | let v3 = make_logical(BinaryOpType::And, make_num_literal("1"), make_num_literal("1")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_num_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:409:73 [INFO] [stdout] | [INFO] [stdout] 409 | let v3 = make_logical(BinaryOpType::And, make_num_literal("1"), make_num_literal("1")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_num_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_str_literal` in this scope [INFO] [stdout] --> src/parser/tests.rs:410:18 [INFO] [stdout] | [INFO] [stdout] 410 | let v4 = make_str_literal("a string literal"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_str_literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:411:18 [INFO] [stdout] | [INFO] [stdout] 411 | let fc = make_call(make_variable("foo"), vec![v1, v2, v3, v4]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:411:28 [INFO] [stdout] | [INFO] [stdout] 411 | let fc = make_call(make_variable("foo"), vec![v1, v2, v3, v4]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:412:18 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 412 | let fc = make_expr(fc); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 412 | let fc = and_expr(fc); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:420:19 [INFO] [stdout] | [INFO] [stdout] 420 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:422:18 [INFO] [stdout] | [INFO] [stdout] 422 | let fc = make_call(make_variable("foo"), vec![]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:422:28 [INFO] [stdout] | [INFO] [stdout] 422 | let fc = make_call(make_variable("foo"), vec![]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:423:18 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 423 | let fc = make_expr(fc); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 423 | let fc = and_expr(fc); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:431:19 [INFO] [stdout] | [INFO] [stdout] 431 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:433:18 [INFO] [stdout] | [INFO] [stdout] 433 | let fc = make_call(make_variable("foo"), vec![]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:433:28 [INFO] [stdout] | [INFO] [stdout] 433 | let fc = make_call(make_variable("foo"), vec![]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | let fc = make_call(fc, vec![]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:435:18 [INFO] [stdout] | [INFO] [stdout] 435 | let fc = make_call(fc, vec![]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:436:18 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 436 | let fc = make_expr(fc); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 436 | let fc = and_expr(fc); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:444:19 [INFO] [stdout] | [INFO] [stdout] 444 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:446:18 [INFO] [stdout] | [INFO] [stdout] 446 | let fc = make_call(make_variable("foo"), vec![make_variable("x")]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 446 | let fc = make_call(make_variable("foo"), vec![make_variable("x")]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:446:55 [INFO] [stdout] | [INFO] [stdout] 446 | let fc = make_call(make_variable("foo"), vec![make_variable("x")]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:447:18 [INFO] [stdout] | [INFO] [stdout] 447 | let fc = make_call(fc, vec![make_variable("y")]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:447:37 [INFO] [stdout] | [INFO] [stdout] 447 | let fc = make_call(fc, vec![make_variable("y")]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_call` in this scope [INFO] [stdout] --> src/parser/tests.rs:448:18 [INFO] [stdout] | [INFO] [stdout] 448 | let fc = make_call(fc, vec![make_variable("z")]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:448:37 [INFO] [stdout] | [INFO] [stdout] 448 | let fc = make_call(fc, vec![make_variable("z")]); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:449:18 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 449 | let fc = make_expr(fc); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 449 | let fc = and_expr(fc); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:457:19 [INFO] [stdout] | [INFO] [stdout] 457 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:459:18 [INFO] [stdout] | [INFO] [stdout] 459 | let vx = make_variable("x"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:460:18 [INFO] [stdout] | [INFO] [stdout] 460 | let vy = make_variable("y"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:461:19 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 461 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 461 | let xpy = and_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:461:29 [INFO] [stdout] | [INFO] [stdout] 461 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:461:43 [INFO] [stdout] | [INFO] [stdout] 461 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:462:19 [INFO] [stdout] | [INFO] [stdout] 462 | let xpy = make_block(vec![xpy]); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_function` in this scope [INFO] [stdout] --> src/parser/tests.rs:463:18 [INFO] [stdout] | [INFO] [stdout] 463 | let fd = make_function("foo", vec![String::from("x"), String::from("y")], xpy); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:471:19 [INFO] [stdout] | [INFO] [stdout] 471 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:473:18 [INFO] [stdout] | [INFO] [stdout] 473 | let vx = make_variable("x"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:474:18 [INFO] [stdout] | [INFO] [stdout] 474 | let vy = make_variable("y"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:475:19 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 475 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 475 | let xpy = and_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:475:29 [INFO] [stdout] | [INFO] [stdout] 475 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:475:43 [INFO] [stdout] | [INFO] [stdout] 475 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:476:19 [INFO] [stdout] | [INFO] [stdout] 476 | let xpy = make_block(vec![xpy]); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_function` in this scope [INFO] [stdout] --> src/parser/tests.rs:477:18 [INFO] [stdout] | [INFO] [stdout] 477 | let fd = make_function("foo", vec![], xpy); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/parser/tests.rs:485:19 [INFO] [stdout] | [INFO] [stdout] 485 | let res = Parser::new(src).parse().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:487:18 [INFO] [stdout] | [INFO] [stdout] 487 | let vx = make_variable("x"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_variable` in this scope [INFO] [stdout] --> src/parser/tests.rs:488:18 [INFO] [stdout] | [INFO] [stdout] 488 | let vy = make_variable("y"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_variable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_expr` in this scope [INFO] [stdout] --> src/parser/tests.rs:489:19 [INFO] [stdout] | [INFO] [stdout] 310 | fn and_expr() -> Expr { [INFO] [stdout] | --------------------- similarly named function `and_expr` defined here [INFO] [stdout] ... [INFO] [stdout] 489 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 489 | let xpy = and_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_binaryop` in this scope [INFO] [stdout] --> src/parser/tests.rs:489:29 [INFO] [stdout] | [INFO] [stdout] 489 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_binaryop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryOpType` [INFO] [stdout] --> src/parser/tests.rs:489:43 [INFO] [stdout] | [INFO] [stdout] 489 | let xpy = make_expr(make_binaryop(BinaryOpType::Add, vx, vy)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `BinaryOpType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::BinaryOpType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:490:19 [INFO] [stdout] | [INFO] [stdout] 490 | let xpy = make_block(vec![xpy]); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_function` in this scope [INFO] [stdout] --> src/parser/tests.rs:491:19 [INFO] [stdout] | [INFO] [stdout] 491 | let ifd = make_function("bar", vec![String::from("x"), String::from("y")], xpy); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_block` in this scope [INFO] [stdout] --> src/parser/tests.rs:493:18 [INFO] [stdout] | [INFO] [stdout] 493 | let ib = make_block(vec![ifd]); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `make_function` in this scope [INFO] [stdout] --> src/parser/tests.rs:494:18 [INFO] [stdout] | [INFO] [stdout] 494 | let fd = make_function("foo", vec![], ib); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 5 + use crate::parser::make_function; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/parser/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/parser/tests.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/parser/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 276 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rlox` (bin "rlox" test) due to 277 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b8c07dceff902c525837656e0e5dfb9af3a867b979d0c387fa7f4ad5de013ebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8c07dceff902c525837656e0e5dfb9af3a867b979d0c387fa7f4ad5de013ebb", kill_on_drop: false }` [INFO] [stdout] b8c07dceff902c525837656e0e5dfb9af3a867b979d0c387fa7f4ad5de013ebb