[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 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLimeth%2Fpflc" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Limeth/pflc on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-7/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: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nom v4.0.0-alpha2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11fadf7f3b0f486eeeb821359b015fb70f81ab4af2672e3897e0942c92349001 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "11fadf7f3b0f486eeeb821359b015fb70f81ab4af2672e3897e0942c92349001", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11fadf7f3b0f486eeeb821359b015fb70f81ab4af2672e3897e0942c92349001", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11fadf7f3b0f486eeeb821359b015fb70f81ab4af2672e3897e0942c92349001", kill_on_drop: false }` [INFO] [stdout] 11fadf7f3b0f486eeeb821359b015fb70f81ab4af2672e3897e0942c92349001 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 284b745a4c3d19ec8320c18ec8441ecdebdf49335eba8ec1e868e850ea673386 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "284b745a4c3d19ec8320c18ec8441ecdebdf49335eba8ec1e868e850ea673386", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking atty v0.2.6 [INFO] [stderr] Checking nom v4.0.0-alpha2 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking clap v2.30.0 [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/github.com-1ecc6299db9ec823/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] [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/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] [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: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] [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[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] 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] 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] 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] 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] 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] 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] warning: unused macro definition [INFO] [stdout] --> src/parser.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / macro_rules! check_parser { [INFO] [stdout] 9 | | ($parser_fn:ident; $input:expr => $rest:expr, $output:expr) => { [INFO] [stdout] 10 | | assert_eq!($parser_fn(CompleteStr($input)), Ok((CompleteStr($rest), $output))); [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / macro_rules! check_parser_err { [INFO] [stdout] 15 | | ($parser_fn:ident; $input:expr => $rest:expr, $kind:expr) => { [INFO] [stdout] 16 | | if let Err(Error(Context::Code(code, kind))) = $parser_fn(CompleteStr($input)) { [INFO] [stdout] 17 | | assert_eq!(code, CompleteStr($rest)); [INFO] [stdout] ... | [INFO] [stdout] 22 | | } [INFO] [stdout] 23 | | } [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/main.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | println!("{:?}", parser::parse(source)); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&str`, found struct `String` [INFO] [stdout] | help: consider borrowing here: `&source` [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] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&str`, found struct `String` [INFO] [stdout] | help: consider borrowing here: `&source` [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 struct `Root`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Root` [INFO] [stdout] found enum `std::result::Result<(CompleteStr<'_>, Root), nom::Err>>` [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 struct `Root`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Root` [INFO] [stdout] found enum `std::result::Result<(CompleteStr<'_>, Root), nom::Err>>` [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] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected enum `Expr`, found struct `Variable` [INFO] [stdout] | help: try using a variant of the expected enum: `Expr::Variable(body)` [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] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected enum `Expr`, found struct `Variable` [INFO] [stdout] | help: try using a variant of the expected enum: `Expr::Variable(body)` [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] | |__^ expected struct `Root`, found struct `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(CompleteStr<'_>, Root), nom::Err, u32>>` [INFO] [stdout] found enum `std::result::Result<(CompleteStr<'_>, Vec<_>), nom::Err, _>>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] | |__^ expected struct `Root`, found struct `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(CompleteStr<'_>, Root), nom::Err, u32>>` [INFO] [stdout] found enum `std::result::Result<(CompleteStr<'_>, Vec<_>), nom::Err, _>>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [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: build failed [INFO] running `Command { std: "docker" "inspect" "284b745a4c3d19ec8320c18ec8441ecdebdf49335eba8ec1e868e850ea673386", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "284b745a4c3d19ec8320c18ec8441ecdebdf49335eba8ec1e868e850ea673386", kill_on_drop: false }` [INFO] [stdout] 284b745a4c3d19ec8320c18ec8441ecdebdf49335eba8ec1e868e850ea673386