[INFO] cloning repository https://github.com/Songbird0/json_parser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Songbird0/json_parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSongbird0%2Fjson_parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSongbird0%2Fjson_parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 57805891c3e1d38450840bf8a199ff408adbd851 [INFO] checking Songbird0/json_parser against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSongbird0%2Fjson_parser" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Songbird0/json_parser on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Songbird0/json_parser [INFO] finished tweaking git repo https://github.com/Songbird0/json_parser [INFO] tweaked toml for git repo https://github.com/Songbird0/json_parser written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Songbird0/json_parser 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd454a1329ad8a89cad5303a39f9314515f99b053094cc235d07fca321b7f505 [INFO] running `Command { std: "docker" "start" "-a" "dd454a1329ad8a89cad5303a39f9314515f99b053094cc235d07fca321b7f505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd454a1329ad8a89cad5303a39f9314515f99b053094cc235d07fca321b7f505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd454a1329ad8a89cad5303a39f9314515f99b053094cc235d07fca321b7f505", kill_on_drop: false }` [INFO] [stdout] dd454a1329ad8a89cad5303a39f9314515f99b053094cc235d07fca321b7f505 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a64266764aefc64fd9662ddced8fad8f7c9f866a7db892ea590921071ebe844 [INFO] running `Command { std: "docker" "start" "-a" "2a64266764aefc64fd9662ddced8fad8f7c9f866a7db892ea590921071ebe844", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking json_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/parsers/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/parsers/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entry_list` is never read [INFO] [stdout] --> src/ast/entries.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JsonObject{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | entry_list: EntryList [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `value` are never read [INFO] [stdout] --> src/ast/entries.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | key: K, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | value: Value [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/ast/values.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Value { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 3 | data: V [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/ast/entries.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | pub type EntryList = Option>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 6 - pub type EntryList = Option>>>; [INFO] [stdout] 6 + pub type EntryList = Option>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entry_list` is never read [INFO] [stdout] --> src/ast/entries.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JsonObject{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | entry_list: EntryList [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `value` are never read [INFO] [stdout] --> src/ast/entries.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | key: K, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | value: Value [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/ast/values.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Value { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 3 | data: V [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/ast/entries.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | pub type EntryList = Option>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 6 - pub type EntryList = Option>>>; [INFO] [stdout] 6 + pub type EntryList = Option>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> tests/empty_object_test.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> tests/empty_object_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::verbose_errors::Context` [INFO] [stdout] --> tests/empty_object_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::verbose_errors::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::ErrorKind` [INFO] [stdout] --> tests/empty_object_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> tests/dummy_test.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / named!( get_a<&[u8], Vec<&[u8]>>, dbg!( [INFO] [stdout] 8 | | complete!( [INFO] [stdout] 9 | | many0!( [INFO] [stdout] 10 | | tag!("a") [INFO] [stdout] 11 | | ) [INFO] [stdout] 12 | | ) [INFO] [stdout] 13 | | )); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `named! { get_a<&[u8], Vec<&[u8]>>, dbg!(complete!(many0!(tag!("a")))) }` [INFO] [stdout] = note: to `fn get_a (i : &[u8]) -> $crate :: IResult < &[u8], Vec<&[u8]>, u32 > [INFO] [stdout] { dbg ! (i, complete!(many0!(tag!("a")))) }` [INFO] [stdout] = note: expanding `dbg! { i, complete!(many0!(tag!("a"))) }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; let l = nom_line! (); [INFO] [stdout] match complete ! (i, many0!(tag!("a"))) [INFO] [stdout] { [INFO] [stdout] Err(e) => [INFO] [stdout] { [INFO] [stdout] nom_println! [INFO] [stdout] ("Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a"))))); Err(e) [INFO] [stdout] }, a => a, [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] = note: expanding `nom_line! { }` [INFO] [stdout] = note: to `line! ()` [INFO] [stdout] = note: expanding `complete! { i, many0!(tag!("a")) }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; use $crate :: [INFO] [stdout] { Err, ErrorKind }; let i_ = i.clone(); match many0 ! (i_, tag!("a")) [INFO] [stdout] { [INFO] [stdout] Err(Err :: Incomplete(_)) => [INFO] [stdout] { [INFO] [stdout] Err(Err :: [INFO] [stdout] Error(error_position! (i, ErrorKind :: Complete :: < u32 >))) [INFO] [stdout] }, rest => rest [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] = note: expanding `many0! { i_, tag!("a") }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; use $crate :: [INFO] [stdout] { Err, AtEof }; let ret; let mut res = $crate :: lib :: std :: vec :: Vec [INFO] [stdout] :: new(); let mut input = i_.clone(); loop [INFO] [stdout] { [INFO] [stdout] let input_ = input.clone(); match tag ! (input_, "a") [INFO] [stdout] { [INFO] [stdout] Ok((i, o)) => [INFO] [stdout] { [INFO] [stdout] if i == input [INFO] [stdout] { [INFO] [stdout] if i.at_eof() { ret = Ok((input, res)); } else [INFO] [stdout] { [INFO] [stdout] ret = [INFO] [stdout] Err(Err :: [INFO] [stdout] Error(error_position! [INFO] [stdout] (input, $crate :: ErrorKind :: Many0))); [INFO] [stdout] } break; [INFO] [stdout] } res.push(o); input = i; [INFO] [stdout] }, Err(Err :: Error(_)) => { ret = Ok((input, res)); break; }, [INFO] [stdout] Err(e) => { ret = Err(e); break; }, [INFO] [stdout] } [INFO] [stdout] } ret [INFO] [stdout] }` [INFO] [stdout] = note: expanding `tag! { input_, "a" }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; use $crate :: [INFO] [stdout] { Err, Needed, IResult, ErrorKind }; use $crate :: [INFO] [stdout] { Compare, CompareResult, InputLength, need_more, InputTake }; let res : [INFO] [stdout] IResult < _, _ > = match (input_).compare("a") [INFO] [stdout] { [INFO] [stdout] CompareResult :: Ok => [INFO] [stdout] { let blen = "a".input_len(); Ok(input_.take_split(blen)) }, [INFO] [stdout] CompareResult :: Incomplete => [INFO] [stdout] { need_more(input_, Needed :: Size("a".input_len())) }, CompareResult [INFO] [stdout] :: Error => [INFO] [stdout] { [INFO] [stdout] let e : ErrorKind < u32 > = ErrorKind :: Tag; [INFO] [stdout] Err(Err :: Error($crate :: Context :: Code(input_, e))) [INFO] [stdout] } [INFO] [stdout] }; res [INFO] [stdout] }` [INFO] [stdout] = note: expanding `error_position! { input, $crate :: ErrorKind :: Many0 }` [INFO] [stdout] = note: to `{ $crate :: Context :: Code(input, ::nom::ErrorKind::Many0) }` [INFO] [stdout] = note: expanding `error_position! { i, ErrorKind :: Complete :: < u32 > }` [INFO] [stdout] = note: to `{ $crate :: Context :: Code(i, ErrorKind::Complete::) }` [INFO] [stdout] = note: expanding `nom_println! { "Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))) }` [INFO] [stdout] = note: to `println! [INFO] [stdout] ("Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))))` [INFO] [stdout] = note: expanding `println! { "Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))) }` [INFO] [stdout] = note: to `{ [INFO] [stdout] $crate :: io :: [INFO] [stdout] _print($crate :: format_args_nl! [INFO] [stdout] ("Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))))); [INFO] [stdout] }` [INFO] [stdout] = note: expanding `nom_stringify! { complete ! (many0!(tag!("a"))) }` [INFO] [stdout] = note: to `stringify! (complete ! (many0!(tag!("a"))))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/string.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | default @ _ => panic!(std::dbg!(default)) [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: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{:?}" format string to use the `Debug` implementation of `nom::Context<&[u8]>` [INFO] [stdout] | [INFO] [stdout] 20 | default @ _ => panic!("{:?}", std::dbg!(default)) [INFO] [stdout] | +++++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 20 | default @ _ => std::panic::panic_any(std::dbg!(default)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/string.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | default @ _ => panic!(std::dbg!(default)) [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 23 | default @ _ => panic!("{}", std::dbg!(default)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 23 | default @ _ => std::panic::panic_any(std::dbg!(default)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.45s [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" "2a64266764aefc64fd9662ddced8fad8f7c9f866a7db892ea590921071ebe844", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a64266764aefc64fd9662ddced8fad8f7c9f866a7db892ea590921071ebe844", kill_on_drop: false }` [INFO] [stdout] 2a64266764aefc64fd9662ddced8fad8f7c9f866a7db892ea590921071ebe844 [INFO] checking Songbird0/json_parser against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSongbird0%2Fjson_parser" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Songbird0/json_parser on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Songbird0/json_parser [INFO] finished tweaking git repo https://github.com/Songbird0/json_parser [INFO] tweaked toml for git repo https://github.com/Songbird0/json_parser written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Songbird0/json_parser 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa73bbc79392f7cd70ba9b4cbdbcd2b2d23caa84974fdac7c03478f1ed7116c0 [INFO] running `Command { std: "docker" "start" "-a" "fa73bbc79392f7cd70ba9b4cbdbcd2b2d23caa84974fdac7c03478f1ed7116c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa73bbc79392f7cd70ba9b4cbdbcd2b2d23caa84974fdac7c03478f1ed7116c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa73bbc79392f7cd70ba9b4cbdbcd2b2d23caa84974fdac7c03478f1ed7116c0", kill_on_drop: false }` [INFO] [stdout] fa73bbc79392f7cd70ba9b4cbdbcd2b2d23caa84974fdac7c03478f1ed7116c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 216c6d20ddd16c730f9b41d274f1bfe5f77aba34d37633871766308b3ebd2736 [INFO] running `Command { std: "docker" "start" "-a" "216c6d20ddd16c730f9b41d274f1bfe5f77aba34d37633871766308b3ebd2736", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking json_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/parsers/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/parsers/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entry_list` is never read [INFO] [stdout] --> src/ast/entries.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JsonObject{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | entry_list: EntryList [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `value` are never read [INFO] [stdout] --> src/ast/entries.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | key: K, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | value: Value [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/ast/values.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Value { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 3 | data: V [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/ast/entries.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | pub type EntryList = Option>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 6 - pub type EntryList = Option>>>; [INFO] [stdout] 6 + pub type EntryList = Option>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entry_list` is never read [INFO] [stdout] --> src/ast/entries.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JsonObject{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | entry_list: EntryList [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `value` are never read [INFO] [stdout] --> src/ast/entries.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 22 | key: K, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | value: Value [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/ast/values.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Value { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 3 | data: V [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/ast/entries.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | pub type EntryList = Option>>>; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 6 - pub type EntryList = Option>>>; [INFO] [stdout] 6 + pub type EntryList = Option>>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> tests/empty_object_test.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> tests/empty_object_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::verbose_errors::Context` [INFO] [stdout] --> tests/empty_object_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::verbose_errors::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::ErrorKind` [INFO] [stdout] --> tests/empty_object_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> tests/dummy_test.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / named!( get_a<&[u8], Vec<&[u8]>>, dbg!( [INFO] [stdout] 8 | | complete!( [INFO] [stdout] 9 | | many0!( [INFO] [stdout] 10 | | tag!("a") [INFO] [stdout] 11 | | ) [INFO] [stdout] 12 | | ) [INFO] [stdout] 13 | | )); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `named! { get_a<&[u8], Vec<&[u8]>>, dbg!(complete!(many0!(tag!("a")))) }` [INFO] [stdout] = note: to `fn get_a (i : &[u8]) -> $crate :: IResult < &[u8], Vec<&[u8]>, u32 > [INFO] [stdout] { dbg ! (i, complete!(many0!(tag!("a")))) }` [INFO] [stdout] = note: expanding `dbg! { i, complete!(many0!(tag!("a"))) }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; let l = nom_line! (); [INFO] [stdout] match complete ! (i, many0!(tag!("a"))) [INFO] [stdout] { [INFO] [stdout] Err(e) => [INFO] [stdout] { [INFO] [stdout] nom_println! [INFO] [stdout] ("Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a"))))); Err(e) [INFO] [stdout] }, a => a, [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] = note: expanding `nom_line! { }` [INFO] [stdout] = note: to `line! ()` [INFO] [stdout] = note: expanding `complete! { i, many0!(tag!("a")) }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; use $crate :: [INFO] [stdout] { Err, ErrorKind }; let i_ = i.clone(); match many0 ! (i_, tag!("a")) [INFO] [stdout] { [INFO] [stdout] Err(Err :: Incomplete(_)) => [INFO] [stdout] { [INFO] [stdout] Err(Err :: [INFO] [stdout] Error(error_position! (i, ErrorKind :: Complete :: < u32 >))) [INFO] [stdout] }, rest => rest [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] = note: expanding `many0! { i_, tag!("a") }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; use $crate :: [INFO] [stdout] { Err, AtEof }; let ret; let mut res = $crate :: lib :: std :: vec :: Vec [INFO] [stdout] :: new(); let mut input = i_.clone(); loop [INFO] [stdout] { [INFO] [stdout] let input_ = input.clone(); match tag ! (input_, "a") [INFO] [stdout] { [INFO] [stdout] Ok((i, o)) => [INFO] [stdout] { [INFO] [stdout] if i == input [INFO] [stdout] { [INFO] [stdout] if i.at_eof() { ret = Ok((input, res)); } else [INFO] [stdout] { [INFO] [stdout] ret = [INFO] [stdout] Err(Err :: [INFO] [stdout] Error(error_position! [INFO] [stdout] (input, $crate :: ErrorKind :: Many0))); [INFO] [stdout] } break; [INFO] [stdout] } res.push(o); input = i; [INFO] [stdout] }, Err(Err :: Error(_)) => { ret = Ok((input, res)); break; }, [INFO] [stdout] Err(e) => { ret = Err(e); break; }, [INFO] [stdout] } [INFO] [stdout] } ret [INFO] [stdout] }` [INFO] [stdout] = note: expanding `tag! { input_, "a" }` [INFO] [stdout] = note: to `{ [INFO] [stdout] use $crate :: lib :: std :: result :: Result :: * ; use $crate :: [INFO] [stdout] { Err, Needed, IResult, ErrorKind }; use $crate :: [INFO] [stdout] { Compare, CompareResult, InputLength, need_more, InputTake }; let res : [INFO] [stdout] IResult < _, _ > = match (input_).compare("a") [INFO] [stdout] { [INFO] [stdout] CompareResult :: Ok => [INFO] [stdout] { let blen = "a".input_len(); Ok(input_.take_split(blen)) }, [INFO] [stdout] CompareResult :: Incomplete => [INFO] [stdout] { need_more(input_, Needed :: Size("a".input_len())) }, CompareResult [INFO] [stdout] :: Error => [INFO] [stdout] { [INFO] [stdout] let e : ErrorKind < u32 > = ErrorKind :: Tag; [INFO] [stdout] Err(Err :: Error($crate :: Context :: Code(input_, e))) [INFO] [stdout] } [INFO] [stdout] }; res [INFO] [stdout] }` [INFO] [stdout] = note: expanding `error_position! { input, $crate :: ErrorKind :: Many0 }` [INFO] [stdout] = note: to `{ $crate :: Context :: Code(input, ::nom::ErrorKind::Many0) }` [INFO] [stdout] = note: expanding `error_position! { i, ErrorKind :: Complete :: < u32 > }` [INFO] [stdout] = note: to `{ $crate :: Context :: Code(i, ErrorKind::Complete::) }` [INFO] [stdout] = note: expanding `nom_println! { "Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))) }` [INFO] [stdout] = note: to `println! [INFO] [stdout] ("Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))))` [INFO] [stdout] = note: expanding `println! { "Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))) }` [INFO] [stdout] = note: to `{ [INFO] [stdout] $crate :: io :: [INFO] [stdout] _print($crate :: format_args_nl! [INFO] [stdout] ("Err({:?}) at l.{} by ' {} '", e, l, nom_stringify! [INFO] [stdout] (complete ! (many0!(tag!("a")))))); [INFO] [stdout] }` [INFO] [stdout] = note: expanding `nom_stringify! { complete ! (many0!(tag!("a"))) }` [INFO] [stdout] = note: to `stringify! (complete ! (many0!(tag!("a"))))` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::is_alphanumeric` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use nom::is_alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/string.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | default @ _ => panic!(std::dbg!(default)) [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: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{:?}" format string to use the `Debug` implementation of `nom::Context<&[u8]>` [INFO] [stdout] | [INFO] [stdout] 20 | default @ _ => panic!("{:?}", std::dbg!(default)) [INFO] [stdout] | +++++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 20 | default @ _ => std::panic::panic_any(std::dbg!(default)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/string.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | default @ _ => panic!(std::dbg!(default)) [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 23 | default @ _ => panic!("{}", std::dbg!(default)) [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 23 | default @ _ => std::panic::panic_any(std::dbg!(default)) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.72s [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" "216c6d20ddd16c730f9b41d274f1bfe5f77aba34d37633871766308b3ebd2736", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "216c6d20ddd16c730f9b41d274f1bfe5f77aba34d37633871766308b3ebd2736", kill_on_drop: false }` [INFO] [stdout] 216c6d20ddd16c730f9b41d274f1bfe5f77aba34d37633871766308b3ebd2736