[INFO] fetching crate pineapplepizza 0.1.2... [INFO] testing pineapplepizza-0.1.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate pineapplepizza 0.1.2 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate pineapplepizza 0.1.2 [INFO] finished tweaking crates.io crate pineapplepizza 0.1.2 [INFO] tweaked toml for crates.io crate pineapplepizza 0.1.2 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pineapplepizza 0.1.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 13 packages to latest compatible versions [INFO] [stderr] Adding nom v4.2.3 (available: v8.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3e732cf015200bf71248b87a381700d250f39660526a3fd1975bef0ddef0afa [INFO] running `Command { std: "docker" "start" "-a" "c3e732cf015200bf71248b87a381700d250f39660526a3fd1975bef0ddef0afa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3e732cf015200bf71248b87a381700d250f39660526a3fd1975bef0ddef0afa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3e732cf015200bf71248b87a381700d250f39660526a3fd1975bef0ddef0afa", kill_on_drop: false }` [INFO] [stdout] c3e732cf015200bf71248b87a381700d250f39660526a3fd1975bef0ddef0afa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 66f717c5dc6e4a3924dc8a4bc17bc44e7c78c62951be7c7a090521e59eed3bb4 [INFO] running `Command { std: "docker" "start" "-a" "66f717c5dc6e4a3924dc8a4bc17bc44e7c78c62951be7c7a090521e59eed3bb4", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling pineapplepizza v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::option` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::option; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::ErrorKind::Custom` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use nom::ErrorKind::Custom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeMap` and `SerializeSeq` [INFO] [stdout] --> src/main.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | use serde::ser::{Serialize, Serializer, SerializeSeq, SerializeMap}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:114:15 [INFO] [stdout] | [INFO] [stdout] 114 | let sep = (if sepb {"- "} else {"* "}); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - let sep = (if sepb {"- "} else {"* "}); [INFO] [stdout] 114 + let sep = if sepb {"- "} else {"* "}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around method argument [INFO] [stdout] --> src/main.rs:181:28 [INFO] [stdout] | [INFO] [stdout] 181 | input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 181 - input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] 181 + input.split_at_position1(|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))}, ErrorKind::Custom(2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:181:63 [INFO] [stdout] | [INFO] [stdout] 181 | input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] 181 + input.split_at_position1({|item| { let ch = item.as_char(); ((ch == '\n') || (ch == '\\')) || (ch == '/')} }, ErrorKind::Custom(2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 185 | if(level == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 185 - if(level == 0) { [INFO] [stdout] 185 + if level == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:231:6 [INFO] [stdout] | [INFO] [stdout] 231 | if (args.len() < 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 231 - if (args.len() < 3) { [INFO] [stdout] 231 + if args.len() < 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 238 | let print_out = (args.len() == 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - let print_out = (args.len() == 3); [INFO] [stdout] 238 + let print_out = args.len() == 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:244:52 [INFO] [stdout] | [INFO] [stdout] 244 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:251:54 [INFO] [stdout] | [INFO] [stdout] 251 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `num` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | / do_parse!(input, [INFO] [stdout] 129 | | it: many1!(alt!(do_parse!( [INFO] [stdout] 130 | | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] 131 | | tag!(". ") >> [INFO] [stdout] ... | [INFO] [stdout] 135 | | ) | do_parse!(opt!(call!(nom::space)) >> alt!(linecomment2 | spancomment) >> ((None)))/**/)) >> tag!("\n") >> (it.into_iter().flatt... [INFO] [stdout] 136 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `num` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | / do_parse!(input, [INFO] [stdout] 129 | | it: many1!(alt!(do_parse!( [INFO] [stdout] 130 | | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] 131 | | tag!(". ") >> [INFO] [stdout] ... | [INFO] [stdout] 135 | | ) | do_parse!(opt!(call!(nom::space)) >> alt!(linecomment2 | spancomment) >> ((None)))/**/)) >> tag!("\n") >> (it.into_iter().flatt... [INFO] [stdout] 136 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: this warning originates in the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/main.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | ))) >> end: complete!(alt!(tag!("\n") | complete!(linecomment))) >> (txt.into_iter().collect()))) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `end` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/main.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | / named!(take_till_eol_with_comments<&str, String>, [INFO] [stdout] 163 | | complete!(do_parse!(txt: complete!(many1!(alt_complete!( [INFO] [stdout] 164 | | spancomment | [INFO] [stdout] 165 | | escaped_transform!(call!(accept_stuff), '\\', [INFO] [stdout] ... | [INFO] [stdout] 173 | | ))) >> end: complete!(alt!(tag!("\n") | complete!(linecomment))) >> (txt.into_iter().collect()))) [INFO] [stdout] 174 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `do_parse` 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] warning: unused variable: `len` [INFO] [stdout] --> src/main.rs:188:362 [INFO] [stdout] | [INFO] [stdout] 188 | ...t::>().len()), |(txt, len)| txt)); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | for txt in node.text.clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 99 - for txt in node.text.clone() { [INFO] [stdout] 99 + while let Some(txt) = node.text.clone() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 99 - for txt in node.text.clone() { [INFO] [stdout] 99 + if let Some(txt) = node.text.clone() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:150:11 [INFO] [stdout] | [INFO] [stdout] 150 | named!(ul<&str, Vec>, [INFO] [stdout] | ^^^^ ------------------ the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 150 | named!(ul<&str, Vec>>, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:156:11 [INFO] [stdout] | [INFO] [stdout] 156 | named!(ol<&str, Vec>, [INFO] [stdout] | ^^^^ ------------------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 156 | named!(ol<&str, Vec>>, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | fn h_wrapper<'a>(input: &'a str, level: u8) -> IResult<&'a str, StructuredCollection> { [INFO] [stdout] | ^^ -- -------------------- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 184 | fn h_wrapper<'a>(input: &'a str, level: u8) -> IResult<&'a str, StructuredCollection<'a>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | named!(document<&str, StructuredCollection>, [INFO] [stdout] | ^^^^ -------------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 225 | named!(document<&str, StructuredCollection<'_>>, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | bad => panic!(format!("{:?}", bad)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 257 - bad => panic!(format!("{:?}", bad)) [INFO] [stdout] 257 + bad => panic!("{:?}", bad) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.92s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "66f717c5dc6e4a3924dc8a4bc17bc44e7c78c62951be7c7a090521e59eed3bb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66f717c5dc6e4a3924dc8a4bc17bc44e7c78c62951be7c7a090521e59eed3bb4", kill_on_drop: false }` [INFO] [stdout] 66f717c5dc6e4a3924dc8a4bc17bc44e7c78c62951be7c7a090521e59eed3bb4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4d3e37e31cc2b5b7ecf60a220750acfa09ab3ec34ce6af7bc7c8fa094362ca85 [INFO] running `Command { std: "docker" "start" "-a" "4d3e37e31cc2b5b7ecf60a220750acfa09ab3ec34ce6af7bc7c8fa094362ca85", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling pineapplepizza v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::option` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::option; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::ErrorKind::Custom` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use nom::ErrorKind::Custom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeMap` and `SerializeSeq` [INFO] [stdout] --> src/main.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 21 | use serde::ser::{Serialize, Serializer, SerializeSeq, SerializeMap}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:114:15 [INFO] [stdout] | [INFO] [stdout] 114 | let sep = (if sepb {"- "} else {"* "}); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - let sep = (if sepb {"- "} else {"* "}); [INFO] [stdout] 114 + let sep = if sepb {"- "} else {"* "}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around method argument [INFO] [stdout] --> src/main.rs:181:28 [INFO] [stdout] | [INFO] [stdout] 181 | input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 181 - input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] 181 + input.split_at_position1(|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))}, ErrorKind::Custom(2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:181:63 [INFO] [stdout] | [INFO] [stdout] 181 | input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stdout] 181 + input.split_at_position1({|item| { let ch = item.as_char(); ((ch == '\n') || (ch == '\\')) || (ch == '/')} }, ErrorKind::Custom(2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 185 | if(level == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 185 - if(level == 0) { [INFO] [stdout] 185 + if level == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:231:6 [INFO] [stdout] | [INFO] [stdout] 231 | if (args.len() < 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 231 - if (args.len() < 3) { [INFO] [stdout] 231 + if args.len() < 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 238 | let print_out = (args.len() == 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - let print_out = (args.len() == 3); [INFO] [stdout] 238 + let print_out = args.len() == 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:244:52 [INFO] [stdout] | [INFO] [stdout] 244 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:251:54 [INFO] [stdout] | [INFO] [stdout] 251 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:304:54 [INFO] [stdout] | [INFO] [stdout] 304 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:312:54 [INFO] [stdout] | [INFO] [stdout] 312 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:318:34 [INFO] [stdout] | [INFO] [stdout] 318 | Err(why) => panic!("{}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:346:54 [INFO] [stdout] | [INFO] [stdout] 346 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:352:56 [INFO] [stdout] | [INFO] [stdout] 352 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `num` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | / do_parse!(input, [INFO] [stdout] 129 | | it: many1!(alt!(do_parse!( [INFO] [stdout] 130 | | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] 131 | | tag!(". ") >> [INFO] [stdout] ... | [INFO] [stdout] 135 | | ) | do_parse!(opt!(call!(nom::space)) >> alt!(linecomment2 | spancomment) >> ((None)))/**/)) >> tag!("\n") >> (it.into_iter().flatt... [INFO] [stdout] 136 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `num` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | / do_parse!(input, [INFO] [stdout] 129 | | it: many1!(alt!(do_parse!( [INFO] [stdout] 130 | | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stdout] 131 | | tag!(". ") >> [INFO] [stdout] ... | [INFO] [stdout] 135 | | ) | do_parse!(opt!(call!(nom::space)) >> alt!(linecomment2 | spancomment) >> ((None)))/**/)) >> tag!("\n") >> (it.into_iter().flatt... [INFO] [stdout] 136 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: this warning originates in the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/main.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | ))) >> end: complete!(alt!(tag!("\n") | complete!(linecomment))) >> (txt.into_iter().collect()))) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: `end` is captured in macro and introduced a unused variable [INFO] [stdout] --> src/main.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | / named!(take_till_eol_with_comments<&str, String>, [INFO] [stdout] 163 | | complete!(do_parse!(txt: complete!(many1!(alt_complete!( [INFO] [stdout] 164 | | spancomment | [INFO] [stdout] 165 | | escaped_transform!(call!(accept_stuff), '\\', [INFO] [stdout] ... | [INFO] [stdout] 173 | | ))) >> end: complete!(alt!(tag!("\n") | complete!(linecomment))) >> (txt.into_iter().collect()))) [INFO] [stdout] 174 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `do_parse` 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] warning: unused variable: `len` [INFO] [stdout] --> src/main.rs:188:362 [INFO] [stdout] | [INFO] [stdout] 188 | ...t::>().len()), |(txt, len)| txt)); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | for txt in node.text.clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 99 - for txt in node.text.clone() { [INFO] [stdout] 99 + while let Some(txt) = node.text.clone() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 99 - for txt in node.text.clone() { [INFO] [stdout] 99 + if let Some(txt) = node.text.clone() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:150:11 [INFO] [stdout] | [INFO] [stdout] 150 | named!(ul<&str, Vec>, [INFO] [stdout] | ^^^^ ------------------ the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 150 | named!(ul<&str, Vec>>, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:156:11 [INFO] [stdout] | [INFO] [stdout] 156 | named!(ol<&str, Vec>, [INFO] [stdout] | ^^^^ ------------------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 156 | named!(ol<&str, Vec>>, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:184:26 [INFO] [stdout] | [INFO] [stdout] 184 | fn h_wrapper<'a>(input: &'a str, level: u8) -> IResult<&'a str, StructuredCollection> { [INFO] [stdout] | ^^ -- -------------------- the lifetimes get resolved as `'a` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 184 | fn h_wrapper<'a>(input: &'a str, level: u8) -> IResult<&'a str, StructuredCollection<'a>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/main.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | named!(document<&str, StructuredCollection>, [INFO] [stdout] | ^^^^ -------------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 225 | named!(document<&str, StructuredCollection<'_>>, [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | bad => panic!(format!("{:?}", bad)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 257 - bad => panic!(format!("{:?}", bad)) [INFO] [stdout] 257 + bad => panic!("{:?}", bad) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:358:29 [INFO] [stdout] | [INFO] [stdout] 358 | bad => panic!(format!("failed parsing {}: {:?}", path.display(), bad)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 358 - bad => panic!(format!("failed parsing {}: {:?}", path.display(), bad)) [INFO] [stdout] 358 + bad => panic!("failed parsing {}: {:?}", path.display(), bad) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "4d3e37e31cc2b5b7ecf60a220750acfa09ab3ec34ce6af7bc7c8fa094362ca85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d3e37e31cc2b5b7ecf60a220750acfa09ab3ec34ce6af7bc7c8fa094362ca85", kill_on_drop: false }` [INFO] [stdout] 4d3e37e31cc2b5b7ecf60a220750acfa09ab3ec34ce6af7bc7c8fa094362ca85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] acd5feb7b597b64aacf1c4d5b48dddd0ea8e0dbcde3895bd6777de4d662ba1e5 [INFO] running `Command { std: "docker" "start" "-a" "acd5feb7b597b64aacf1c4d5b48dddd0ea8e0dbcde3895bd6777de4d662ba1e5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unused import: `std::option` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::option; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `nom::ErrorKind::Custom` [INFO] [stderr] --> src/main.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use nom::ErrorKind::Custom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `SerializeMap` and `SerializeSeq` [INFO] [stderr] --> src/main.rs:21:41 [INFO] [stderr] | [INFO] [stderr] 21 | use serde::ser::{Serialize, Serializer, SerializeSeq, SerializeMap}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:114:15 [INFO] [stderr] | [INFO] [stderr] 114 | let sep = (if sepb {"- "} else {"* "}); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 114 - let sep = (if sepb {"- "} else {"* "}); [INFO] [stderr] 114 + let sep = if sepb {"- "} else {"* "}; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around method argument [INFO] [stderr] --> src/main.rs:181:28 [INFO] [stderr] | [INFO] [stderr] 181 | input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stderr] | ^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] help: remove these braces [INFO] [stderr] | [INFO] [stderr] 181 - input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stderr] 181 + input.split_at_position1(|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))}, ErrorKind::Custom(2)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/main.rs:181:63 [INFO] [stderr] | [INFO] [stderr] 181 | input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 181 - input.split_at_position1({|item| { let ch = item.as_char(); (((ch == '\n') || (ch == '\\')) || (ch == '/'))} }, ErrorKind::Custom(2)) [INFO] [stderr] 181 + input.split_at_position1({|item| { let ch = item.as_char(); ((ch == '\n') || (ch == '\\')) || (ch == '/')} }, ErrorKind::Custom(2)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:185:5 [INFO] [stderr] | [INFO] [stderr] 185 | if(level == 0) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 185 - if(level == 0) { [INFO] [stderr] 185 + if level == 0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:231:6 [INFO] [stderr] | [INFO] [stderr] 231 | if (args.len() < 3) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 231 - if (args.len() < 3) { [INFO] [stderr] 231 + if args.len() < 3 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:238:19 [INFO] [stderr] | [INFO] [stderr] 238 | let print_out = (args.len() == 3); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 238 - let print_out = (args.len() == 3); [INFO] [stderr] 238 + let print_out = args.len() == 3; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:244:52 [INFO] [stderr] | [INFO] [stderr] 244 | ... why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:251:54 [INFO] [stderr] | [INFO] [stderr] 251 | ... why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:304:54 [INFO] [stderr] | [INFO] [stderr] 304 | ... why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:312:54 [INFO] [stderr] | [INFO] [stderr] 312 | ... why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:318:34 [INFO] [stderr] | [INFO] [stderr] 318 | Err(why) => panic!("{}", why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:346:54 [INFO] [stderr] | [INFO] [stderr] 346 | ... why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:352:56 [INFO] [stderr] | [INFO] [stderr] 352 | ... why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `num` [INFO] [stderr] --> src/main.rs:130:9 [INFO] [stderr] | [INFO] [stderr] 130 | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] help: `num` is captured in macro and introduced a unused variable [INFO] [stderr] --> src/main.rs:128:5 [INFO] [stderr] | [INFO] [stderr] 128 | / do_parse!(input, [INFO] [stderr] 129 | | it: many1!(alt!(do_parse!( [INFO] [stderr] 130 | | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stderr] 131 | | tag!(". ") >> [INFO] [stderr] ... | [INFO] [stderr] 135 | | ) | do_parse!(opt!(call!(nom::space)) >> alt!(linecomment2 | spancomment) >> ((None)))/**/)) >> tag!("\n") >> (it.into_iter().flatt... [INFO] [stderr] 136 | | ) [INFO] [stderr] | |_____^ [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: this warning originates in the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `num` [INFO] [stderr] --> src/main.rs:130:9 [INFO] [stderr] | [INFO] [stderr] 130 | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] help: `num` is captured in macro and introduced a unused variable [INFO] [stderr] --> src/main.rs:128:5 [INFO] [stderr] | [INFO] [stderr] 128 | / do_parse!(input, [INFO] [stderr] 129 | | it: many1!(alt!(do_parse!( [INFO] [stderr] 130 | | num: call!(nom::digit) >> // Eventually, validate using this [INFO] [stderr] 131 | | tag!(". ") >> [INFO] [stderr] ... | [INFO] [stderr] 135 | | ) | do_parse!(opt!(call!(nom::space)) >> alt!(linecomment2 | spancomment) >> ((None)))/**/)) >> tag!("\n") >> (it.into_iter().flatt... [INFO] [stderr] 136 | | ) [INFO] [stderr] | |_____^ [INFO] [stderr] = note: this warning originates in the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `end` [INFO] [stderr] --> src/main.rs:173:17 [INFO] [stderr] | [INFO] [stderr] 173 | ))) >> end: complete!(alt!(tag!("\n") | complete!(linecomment))) >> (txt.into_iter().collect()))) [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] help: `end` is captured in macro and introduced a unused variable [INFO] [stderr] --> src/main.rs:162:1 [INFO] [stderr] | [INFO] [stderr] 162 | / named!(take_till_eol_with_comments<&str, String>, [INFO] [stderr] 163 | | complete!(do_parse!(txt: complete!(many1!(alt_complete!( [INFO] [stderr] 164 | | spancomment | [INFO] [stderr] 165 | | escaped_transform!(call!(accept_stuff), '\\', [INFO] [stderr] ... | [INFO] [stderr] 173 | | ))) >> end: complete!(alt!(tag!("\n") | complete!(linecomment))) >> (txt.into_iter().collect()))) [INFO] [stderr] 174 | | ); [INFO] [stderr] | |_^ [INFO] [stderr] = note: this warning originates in the macro `do_parse` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `len` [INFO] [stderr] --> src/main.rs:188:362 [INFO] [stderr] | [INFO] [stderr] 188 | ...t::>().len()), |(txt, len)| txt)); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:343:13 [INFO] [stderr] | [INFO] [stderr] 343 | let mut s = String::new(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:343:9 [INFO] [stderr] | [INFO] [stderr] 343 | let mut s = String::new(); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/main.rs:99:14 [INFO] [stderr] | [INFO] [stderr] 99 | for txt in node.text.clone() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 99 - for txt in node.text.clone() { [INFO] [stderr] 99 + while let Some(txt) = node.text.clone() { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 99 - for txt in node.text.clone() { [INFO] [stderr] 99 + if let Some(txt) = node.text.clone() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/main.rs:150:11 [INFO] [stderr] | [INFO] [stderr] 150 | named!(ul<&str, Vec>, [INFO] [stderr] | ^^^^ ------------------ the lifetimes get resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | the lifetimes get resolved as `'_` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 150 | named!(ul<&str, Vec>>, [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/main.rs:156:11 [INFO] [stderr] | [INFO] [stderr] 156 | named!(ol<&str, Vec>, [INFO] [stderr] | ^^^^ ------------------------- the lifetimes get resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | the lifetimes get resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 156 | named!(ol<&str, Vec>>, [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/main.rs:184:26 [INFO] [stderr] | [INFO] [stderr] 184 | fn h_wrapper<'a>(input: &'a str, level: u8) -> IResult<&'a str, StructuredCollection> { [INFO] [stderr] | ^^ -- -------------------- the lifetimes get resolved as `'a` [INFO] [stderr] | | | [INFO] [stderr] | | the lifetimes get resolved as `'a` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 184 | fn h_wrapper<'a>(input: &'a str, level: u8) -> IResult<&'a str, StructuredCollection<'a>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/main.rs:225:17 [INFO] [stderr] | [INFO] [stderr] 225 | named!(document<&str, StructuredCollection>, [INFO] [stderr] | ^^^^ -------------------- the lifetimes get resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | the lifetimes get resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 225 | named!(document<&str, StructuredCollection<'_>>, [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/main.rs:257:27 [INFO] [stderr] | [INFO] [stderr] 257 | bad => panic!(format!("{:?}", bad)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 257 - bad => panic!(format!("{:?}", bad)) [INFO] [stderr] 257 + bad => panic!("{:?}", bad) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/main.rs:358:29 [INFO] [stderr] | [INFO] [stderr] 358 | bad => panic!(format!("failed parsing {}: {:?}", path.display(), bad)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 358 - bad => panic!(format!("failed parsing {}: {:?}", path.display(), bad)) [INFO] [stderr] 358 + bad => panic!("failed parsing {}: {:?}", path.display(), bad) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `pineapplepizza` (bin "pineapplepizza" test) generated 29 warnings (run `cargo fix --bin "pineapplepizza" --tests` to apply 16 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/pineapplepizza-d22f8077546e69b1) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test parse_text_comments ... ok [INFO] [stdout] test parse_list_items ... ok [INFO] [stdout] test parse_file_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "acd5feb7b597b64aacf1c4d5b48dddd0ea8e0dbcde3895bd6777de4d662ba1e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acd5feb7b597b64aacf1c4d5b48dddd0ea8e0dbcde3895bd6777de4d662ba1e5", kill_on_drop: false }` [INFO] [stdout] acd5feb7b597b64aacf1c4d5b48dddd0ea8e0dbcde3895bd6777de4d662ba1e5