[INFO] cloning repository https://github.com/Limeth/pflc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Limeth/pflc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLimeth%2Fpflc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLimeth%2Fpflc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4c72b1888a7deb2c150fcba240e9377eca3fdee [INFO] checking Limeth/pflc/e4c72b1888a7deb2c150fcba240e9377eca3fdee against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLimeth%2Fpflc" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Limeth/pflc on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Limeth/pflc [INFO] finished tweaking git repo https://github.com/Limeth/pflc [INFO] tweaked toml for git repo https://github.com/Limeth/pflc written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Limeth/pflc 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memchr v2.0.1 [INFO] [stderr] Downloaded vec_map v0.8.0 [INFO] [stderr] Downloaded textwrap v0.9.0 [INFO] [stderr] Downloaded atty v0.2.6 [INFO] [stderr] Downloaded redox_termios v0.1.1 [INFO] [stderr] Downloaded redox_syscall v0.1.37 [INFO] [stderr] Downloaded bitflags v1.0.1 [INFO] [stderr] Downloaded ansi_term v0.10.2 [INFO] [stderr] Downloaded termion v1.5.1 [INFO] [stderr] Downloaded clap v2.30.0 [INFO] [stderr] Downloaded strsim v0.7.0 [INFO] [stderr] Downloaded unicode-width v0.1.4 [INFO] [stderr] Downloaded libc v0.2.36 [INFO] [stderr] Downloaded winapi v0.3.4 [INFO] [stderr] Downloaded nom v4.0.0-alpha2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3d4330d126461682b0ce85e0d19eeba509e4b76a8f0f1936a16bbf8aa2f74a2 [INFO] running `Command { std: "docker" "start" "-a" "b3d4330d126461682b0ce85e0d19eeba509e4b76a8f0f1936a16bbf8aa2f74a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3d4330d126461682b0ce85e0d19eeba509e4b76a8f0f1936a16bbf8aa2f74a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3d4330d126461682b0ce85e0d19eeba509e4b76a8f0f1936a16bbf8aa2f74a2", kill_on_drop: false }` [INFO] [stdout] b3d4330d126461682b0ce85e0d19eeba509e4b76a8f0f1936a16bbf8aa2f74a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0463b1b86c83114bff6ff10e8e42c2adb4e3b09c4e7431d7a59a61337e6542b6 [INFO] running `Command { std: "docker" "start" "-a" "0463b1b86c83114bff6ff10e8e42c2adb4e3b09c4e7431d7a59a61337e6542b6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking ansi_term v0.10.2 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking atty v0.2.6 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking clap v2.30.0 [INFO] [stderr] Checking nom v4.0.0-alpha2 [INFO] [stderr] Checking pflc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/parser.rs:273:7 [INFO] [stdout] | [INFO] [stdout] 273 | named!(parse_expr, [INFO] [stdout] | _______^ [INFO] [stdout] 274 | | do_parse!( [INFO] [stdout] 275 | | // TODO [INFO] [stdout] 276 | | ) [INFO] [stdout] 277 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 273 ~ named!{parse_expr, [INFO] [stdout] 274 | do_parse!( [INFO] [stdout] 275 | // TODO [INFO] [stdout] 276 | ) [INFO] [stdout] 277 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 277 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/parser.rs:273:7 [INFO] [stdout] | [INFO] [stdout] 273 | named!(parse_expr, [INFO] [stdout] | _______^ [INFO] [stdout] 274 | | do_parse!( [INFO] [stdout] 275 | | // TODO [INFO] [stdout] 276 | | ) [INFO] [stdout] 277 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 273 ~ named!{parse_expr, [INFO] [stdout] 274 | do_parse!( [INFO] [stdout] 275 | // TODO [INFO] [stdout] 276 | ) [INFO] [stdout] 277 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 277 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nom-4.0.0-alpha2/src/sequence.rs:411:27 [INFO] [stdout] | [INFO] [stdout] 411 | do_parse!(__impl $i, $($rest)*) [INFO] [stdout] | ^ missing tokens in macro arguments [INFO] [stdout] | [INFO] [stdout] note: while trying to match `(` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nom-4.0.0-alpha2/src/sequence.rs:306:20 [INFO] [stdout] | [INFO] [stdout] 306 | (__impl $i:expr, ( $($rest:expr),* )) => ( [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nom-4.0.0-alpha2/src/sequence.rs:411:27 [INFO] [stdout] | [INFO] [stdout] 411 | do_parse!(__impl $i, $($rest)*) [INFO] [stdout] | ^ missing tokens in macro arguments [INFO] [stdout] | [INFO] [stdout] note: while trying to match `(` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nom-4.0.0-alpha2/src/sequence.rs:306:20 [INFO] [stdout] | [INFO] [stdout] 306 | (__impl $i:expr, ( $($rest:expr),* )) => ( [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:95:24 [INFO] [stdout] | [INFO] [stdout] 95 | pub args: Vec<(Ident, Ident)>, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | pub args: Vec<(Ident, Ident)>, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 101 | Variable(Ident), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:95:24 [INFO] [stdout] | [INFO] [stdout] 95 | pub args: Vec<(Ident, Ident)>, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | pub args: Vec<(Ident, Ident)>, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `lexer::FnDecl` [INFO] [stdout] --> src/parser.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | >> (lexer::FnDecl(x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | / pub struct FnDecl { [INFO] [stdout] 108 | | pub ident: Ident, [INFO] [stdout] 109 | | pub args: Vec, [INFO] [stdout] 110 | | pub return_ty: Type, [INFO] [stdout] 111 | | pub body: Expr, [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- `lexer::FnDecl` defined here [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead [INFO] [stdout] | [INFO] [stdout] 316 | >> (lexer::FnDecl { ident: val, args: val, return_ty: val, body: val }) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this tuple variant instead [INFO] [stdout] | [INFO] [stdout] 1 + use parser::lexer::Item::FnDecl; [INFO] [stdout] | [INFO] [stdout] help: if you import `FnDecl`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 316 - >> (lexer::FnDecl(x)) [INFO] [stdout] 316 + >> (FnDecl(x)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 101 | Variable(Ident), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> src/ast.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | pub ident: Ident, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `lexer::FnDecl` [INFO] [stdout] --> src/parser.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | >> (lexer::FnDecl(x)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | / pub struct FnDecl { [INFO] [stdout] 108 | | pub ident: Ident, [INFO] [stdout] 109 | | pub args: Vec, [INFO] [stdout] 110 | | pub return_ty: Type, [INFO] [stdout] 111 | | pub body: Expr, [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____- `lexer::FnDecl` defined here [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead [INFO] [stdout] | [INFO] [stdout] 316 | >> (lexer::FnDecl { ident: val, args: val, return_ty: val, body: val }) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this tuple variant instead [INFO] [stdout] | [INFO] [stdout] 1 + use parser::lexer::Item::FnDecl; [INFO] [stdout] | [INFO] [stdout] help: if you import `FnDecl`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 316 - >> (lexer::FnDecl(x)) [INFO] [stdout] 316 + >> (FnDecl(x)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i32` should have an upper camel case name [INFO] [stdout] --> src/ast.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | i32(i32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `f32` should have an upper camel case name [INFO] [stdout] --> src/ast.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | f32(f32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `F32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::simple_errors::Context` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::simple_errors::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err::Error` [INFO] [stdout] --> src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nom::Err::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::ErrorKind` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `check_parser` [INFO] [stdout] --> src/parser.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | macro_rules! check_parser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `check_parser_err` [INFO] [stdout] --> src/parser.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! check_parser_err { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `i32` should have an upper camel case name [INFO] [stdout] --> src/ast.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | i32(i32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `I32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `f32` should have an upper camel case name [INFO] [stdout] --> src/ast.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | f32(f32), [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `F32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | body, [INFO] [stdout] | ^^^^ expected `Expr`, found `Variable` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `ast::lexer::Expr::Variable` [INFO] [stdout] | [INFO] [stdout] 306 | body: ast::lexer::Expr::Variable(body), [INFO] [stdout] | +++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:311:1 [INFO] [stdout] | [INFO] [stdout] 311 | / named!(parse_root, [INFO] [stdout] 312 | | many0!( [INFO] [stdout] 313 | | alt!( [INFO] [stdout] 314 | | do_parse!( [INFO] [stdout] ... | [INFO] [stdout] 319 | | ) [INFO] [stdout] 320 | | ); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_expected `Root`, found `Vec<_>` [INFO] [stdout] | expected `Result<(CompleteStr<'_>, Root), nom::Err>>` because of return type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(CompleteStr<'_>, Root), nom::Err, u32>>` [INFO] [stdout] found enum `Result<(CompleteStr<'_>, Vec<_>), nom::Err, _>>` [INFO] [stdout] = note: this error originates in the macro `many0` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:306:13 [INFO] [stdout] | [INFO] [stdout] 306 | body, [INFO] [stdout] | ^^^^ expected `Expr`, found `Variable` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `ast::lexer::Expr::Variable` [INFO] [stdout] | [INFO] [stdout] 306 | body: ast::lexer::Expr::Variable(body), [INFO] [stdout] | +++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn parse(source: &str) -> lexer::Root { [INFO] [stdout] | ----------- expected `Root` because of return type [INFO] [stdout] 323 | parse_root(CompleteStr(source)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Root`, found `Result<(CompleteStr<'_>, ...), ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Root` [INFO] [stdout] found enum `Result<(CompleteStr<'_>, Root), nom::Err>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | println!("{:?}", parser::parse(source)); [INFO] [stdout] | ------------- ^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/parser.rs:322:8 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn parse(source: &str) -> lexer::Root { [INFO] [stdout] | ^^^^^ ------------ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 37 | println!("{:?}", parser::parse(&source)); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:311:1 [INFO] [stdout] | [INFO] [stdout] 311 | / named!(parse_root, [INFO] [stdout] 312 | | many0!( [INFO] [stdout] 313 | | alt!( [INFO] [stdout] 314 | | do_parse!( [INFO] [stdout] ... | [INFO] [stdout] 319 | | ) [INFO] [stdout] 320 | | ); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_expected `Root`, found `Vec<_>` [INFO] [stdout] | expected `Result<(CompleteStr<'_>, Root), nom::Err>>` because of return type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(CompleteStr<'_>, Root), nom::Err, u32>>` [INFO] [stdout] found enum `Result<(CompleteStr<'_>, Vec<_>), nom::Err, _>>` [INFO] [stdout] = note: this error originates in the macro `many0` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn parse(source: &str) -> lexer::Root { [INFO] [stdout] | ----------- expected `Root` because of return type [INFO] [stdout] 323 | parse_root(CompleteStr(source)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Root`, found `Result<(CompleteStr<'_>, ...), ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Root` [INFO] [stdout] found enum `Result<(CompleteStr<'_>, Root), nom::Err>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | println!("{:?}", parser::parse(source)); [INFO] [stdout] | ------------- ^^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/parser.rs:322:8 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn parse(source: &str) -> lexer::Root { [INFO] [stdout] | ^^^^^ ------------ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 37 | println!("{:?}", parser::parse(&source)); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pflc` (bin "pflc") due to 15 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pflc` (bin "pflc" test) due to 15 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0463b1b86c83114bff6ff10e8e42c2adb4e3b09c4e7431d7a59a61337e6542b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0463b1b86c83114bff6ff10e8e42c2adb4e3b09c4e7431d7a59a61337e6542b6", kill_on_drop: false }` [INFO] [stdout] 0463b1b86c83114bff6ff10e8e42c2adb4e3b09c4e7431d7a59a61337e6542b6