[INFO] cloning repository https://github.com/yuto51942/rs-json-parser-sample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yuto51942/rs-json-parser-sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuto51942%2Frs-json-parser-sample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuto51942%2Frs-json-parser-sample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f5e6b928261360dbeed24121c726d98b483b68a9 [INFO] checking yuto51942/rs-json-parser-sample against try#da0275e101cdc809ce291ed8b64d6f82c6b65467 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuto51942%2Frs-json-parser-sample" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yuto51942/rs-json-parser-sample on toolchain da0275e101cdc809ce291ed8b64d6f82c6b65467 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yuto51942/rs-json-parser-sample [INFO] finished tweaking git repo https://github.com/yuto51942/rs-json-parser-sample [INFO] tweaked toml for git repo https://github.com/yuto51942/rs-json-parser-sample written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yuto51942/rs-json-parser-sample 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" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "fetch" "--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 [ERROR] error running command: no output for 300 seconds [INFO] checking yuto51942/rs-json-parser-sample against try#da0275e101cdc809ce291ed8b64d6f82c6b65467 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuto51942%2Frs-json-parser-sample" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yuto51942/rs-json-parser-sample on toolchain da0275e101cdc809ce291ed8b64d6f82c6b65467 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yuto51942/rs-json-parser-sample [INFO] finished tweaking git repo https://github.com/yuto51942/rs-json-parser-sample [INFO] tweaked toml for git repo https://github.com/yuto51942/rs-json-parser-sample written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yuto51942/rs-json-parser-sample 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" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "fetch" "--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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a747f07c0950a4f2e710760006fd55cf0fe6fdcb32d7ca3888bb597114c9ec74 [INFO] running `Command { std: "docker" "start" "-a" "a747f07c0950a4f2e710760006fd55cf0fe6fdcb32d7ca3888bb597114c9ec74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a747f07c0950a4f2e710760006fd55cf0fe6fdcb32d7ca3888bb597114c9ec74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a747f07c0950a4f2e710760006fd55cf0fe6fdcb32d7ca3888bb597114c9ec74", kill_on_drop: false }` [INFO] [stdout] a747f07c0950a4f2e710760006fd55cf0fe6fdcb32d7ca3888bb597114c9ec74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+da0275e101cdc809ce291ed8b64d6f82c6b65467" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5257d8633048716b4274ab6b4b7adf819d9c6cadeaca9b1e540a2bbca81141a1 [INFO] running `Command { std: "docker" "start" "-a" "5257d8633048716b4274ab6b4b7adf819d9c6cadeaca9b1e540a2bbca81141a1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.30 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking json_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/value.rs:130:23 [INFO] [stdout] | [INFO] [stdout] 130 | let element = (buf as Box); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - let element = (buf as Box); [INFO] [stdout] 130 + let element = buf as Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | fn start_brace(body: &mut Body) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | fn start_bracket(body: &mut Body) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_text` is never used [INFO] [stdout] --> src/body.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl<'a> Body<'a> { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn get_text(&mut self) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_end_brace` is never used [INFO] [stdout] --> src/symbol.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn is_end_brace(target: &u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_end_bracket` is never used [INFO] [stdout] --> src/symbol.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn is_end_bracket(target: &u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_comma` is never used [INFO] [stdout] --> src/symbol.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn is_comma(target: &u8) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_colon` is never used [INFO] [stdout] --> src/symbol.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn is_colon(target: &u8) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_text` is never used [INFO] [stdout] --> src/value.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait TextElement<'a>: Node { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 12 | fn get_text(&self) -> &'a str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_lists` is never used [INFO] [stdout] --> src/value.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait ListElement: Node { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 16 | fn get_lists(&self) -> &Vec>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_key` and `get_value` are never used [INFO] [stdout] --> src/value.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait MapElement<'a>: Node { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 20 | fn get_key(&self) -> &'a str; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | fn get_value(&self) -> &Box; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/value.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl<'a> Text<'a> { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 29 | fn new(value: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add` is never used [INFO] [stdout] --> src/value.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl List { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 52 | fn add(&mut self, value: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/value.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl<'a> Map<'a> { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 75 | fn new(key: &'a str, value: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `NodeType` [INFO] [stdout] --> src/value.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(map.get_type(), NodeType::HashMap); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | NodeType [INFO] [stdout] | NodeType [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `NodeType` [INFO] [stdout] --> src/value.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum NodeType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `NodeType` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 1 + #[derive(PartialEq)] [INFO] [stdout] 2 | pub enum NodeType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NodeType` doesn't implement `Debug` [INFO] [stdout] --> src/value.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(map.get_type(), NodeType::HashMap); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NodeType` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `NodeType` [INFO] [stdout] = note: add `#[derive(Debug)]` to `NodeType` or manually `impl Debug for NodeType` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `NodeType` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 1 + #[derive(Debug)] [INFO] [stdout] 2 | pub enum NodeType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NodeType` doesn't implement `Debug` [INFO] [stdout] --> src/value.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(map.get_type(), NodeType::HashMap); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NodeType` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `NodeType` [INFO] [stdout] = note: add `#[derive(Debug)]` to `NodeType` or manually `impl Debug for NodeType` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `NodeType` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 1 + #[derive(Debug)] [INFO] [stdout] 2 | pub enum NodeType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `NodeType` [INFO] [stdout] --> src/value.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(buf.get_type(), NodeType::List); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | NodeType [INFO] [stdout] | NodeType [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `NodeType` [INFO] [stdout] --> src/value.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum NodeType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `NodeType` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 1 + #[derive(PartialEq)] [INFO] [stdout] 2 | pub enum NodeType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NodeType` doesn't implement `Debug` [INFO] [stdout] --> src/value.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(buf.get_type(), NodeType::List); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NodeType` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `NodeType` [INFO] [stdout] = note: add `#[derive(Debug)]` to `NodeType` or manually `impl Debug for NodeType` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `NodeType` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 1 + #[derive(Debug)] [INFO] [stdout] 2 | pub enum NodeType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NodeType` doesn't implement `Debug` [INFO] [stdout] --> src/value.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(buf.get_type(), NodeType::List); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NodeType` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `NodeType` [INFO] [stdout] = note: add `#[derive(Debug)]` to `NodeType` or manually `impl Debug for NodeType` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `NodeType` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 1 + #[derive(Debug)] [INFO] [stdout] 2 | pub enum NodeType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Box` as `Box` [INFO] [stdout] --> src/value.rs:130:23 [INFO] [stdout] | [INFO] [stdout] 130 | let element = (buf as Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | fn start_brace(body: &mut Body) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | fn start_bracket(body: &mut Body) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `json_parser` (lib test) due to 7 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "5257d8633048716b4274ab6b4b7adf819d9c6cadeaca9b1e540a2bbca81141a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5257d8633048716b4274ab6b4b7adf819d9c6cadeaca9b1e540a2bbca81141a1", kill_on_drop: false }` [INFO] [stdout] 5257d8633048716b4274ab6b4b7adf819d9c6cadeaca9b1e540a2bbca81141a1