[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] testing yuto51942/rs-json-parser-sample against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuto51942%2Frs-json-parser-sample" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yuto51942/rs-json-parser-sample on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-9/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c7e110160a919ddc298b3692a1baae93edf0613ab8f527615fa1086a47d0118c [INFO] running `Command { std: "docker" "start" "-a" "c7e110160a919ddc298b3692a1baae93edf0613ab8f527615fa1086a47d0118c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7e110160a919ddc298b3692a1baae93edf0613ab8f527615fa1086a47d0118c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7e110160a919ddc298b3692a1baae93edf0613ab8f527615fa1086a47d0118c", kill_on_drop: false }` [INFO] [stdout] c7e110160a919ddc298b3692a1baae93edf0613ab8f527615fa1086a47d0118c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9901784cb4e730fa5a0b5dc06390e157a1a7aee98f4db3cfc9f96922f7b5d538 [INFO] running `Command { std: "docker" "start" "-a" "9901784cb4e730fa5a0b5dc06390e157a1a7aee98f4db3cfc9f96922f7b5d538", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling json_parser v0.1.0 (/opt/rustwide/workdir) [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: associated function is never used: `get_text` [INFO] [stdout] --> src/body.rs:83:12 [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 never used: `is_end_brace` [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 never used: `is_end_bracket` [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 never used: `is_comma` [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 never used: `is_colon` [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: associated function is never used: `new` [INFO] [stdout] --> src/value.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(value: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/value.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn add(&mut self, value: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/value.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn new(key: &'a str, value: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.46s [INFO] running `Command { std: "docker" "inspect" "9901784cb4e730fa5a0b5dc06390e157a1a7aee98f4db3cfc9f96922f7b5d538", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9901784cb4e730fa5a0b5dc06390e157a1a7aee98f4db3cfc9f96922f7b5d538", kill_on_drop: false }` [INFO] [stdout] 9901784cb4e730fa5a0b5dc06390e157a1a7aee98f4db3cfc9f96922f7b5d538 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81306b2f7716a5d9c12db388cd855c401cb3261476dd6f249beb7459d89abc77 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "81306b2f7716a5d9c12db388cd855c401cb3261476dd6f249beb7459d89abc77", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling json_parser v0.1.0 (/opt/rustwide/workdir) [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: associated function is never used: `get_text` [INFO] [stdout] --> src/body.rs:83:12 [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 never used: `is_end_brace` [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 never used: `is_end_bracket` [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 never used: `is_comma` [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 never used: `is_colon` [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: associated function is never used: `new` [INFO] [stdout] --> src/value.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn new(value: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/value.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn add(&mut self, value: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/value.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn new(key: &'a str, value: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [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] 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] | [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] [INFO] [stdout] [INFO] [stderr] error: could not compile `json_parser` due to 6 previous errors; 1 warning emitted [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] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] [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] error: aborting due to 5 previous errors; 1 warning emitted [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] running `Command { std: "docker" "inspect" "81306b2f7716a5d9c12db388cd855c401cb3261476dd6f249beb7459d89abc77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81306b2f7716a5d9c12db388cd855c401cb3261476dd6f249beb7459d89abc77", kill_on_drop: false }` [INFO] [stdout] 81306b2f7716a5d9c12db388cd855c401cb3261476dd6f249beb7459d89abc77