[INFO] cloning repository https://github.com/Rezayovan/rust_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/Rezayovan/rust_json_parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRezayovan%2Frust_json_parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRezayovan%2Frust_json_parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b051603f7b4e68bfae3ce1b657bad09b00a5328 [INFO] checking Rezayovan/rust_json_parser against try#f3dc08d20a1589b87bde75bb82ee6423307f9bde for pr-135733 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRezayovan%2Frust_json_parser" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Rezayovan/rust_json_parser on toolchain f3dc08d20a1589b87bde75bb82ee6423307f9bde [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Rezayovan/rust_json_parser [INFO] finished tweaking git repo https://github.com/Rezayovan/rust_json_parser [INFO] tweaked toml for git repo https://github.com/Rezayovan/rust_json_parser written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Rezayovan/rust_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" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86969958841a3b8e0b1e298e3677084ab2702eac4cec238068e26dc1bdbb0bf8 [INFO] running `Command { std: "docker" "start" "-a" "86969958841a3b8e0b1e298e3677084ab2702eac4cec238068e26dc1bdbb0bf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86969958841a3b8e0b1e298e3677084ab2702eac4cec238068e26dc1bdbb0bf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86969958841a3b8e0b1e298e3677084ab2702eac4cec238068e26dc1bdbb0bf8", kill_on_drop: false }` [INFO] [stdout] 86969958841a3b8e0b1e298e3677084ab2702eac4cec238068e26dc1bdbb0bf8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2592ec768f9a88c66819476cf91878a1fb033bc0afd8d2097f48ba1c5df9755f [INFO] running `Command { std: "docker" "start" "-a" "2592ec768f9a88c66819476cf91878a1fb033bc0afd8d2097f48ba1c5df9755f", kill_on_drop: false }` [INFO] [stderr] Checking rust_json_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `crate::parser::JsonNumber`, `crate::parser::from_str` [INFO] [stdout] --> src/test.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::parser::{JsonEnum, JsonNumber, from_str}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ no `from_str` in `parser` [INFO] [stdout] | | [INFO] [stdout] | no `JsonNumber` in `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/parser.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let result: Result = Ok(JsonEnum::Empty); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/parser.rs:166:26 [INFO] [stdout] | [INFO] [stdout] 166 | JsonEnum::Object(o) => "object undefined".to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/parser.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | JsonEnum::Array(o) => "array undefined".to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | Object(Vec<(String, JsonEnum)>), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 - Object(Vec<(String, JsonEnum)>), [INFO] [stdout] 7 + Object(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | Array(Vec), [INFO] [stdout] | ----- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JsonEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 - Array(Vec), [INFO] [stdout] 8 + Array(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Number` is never constructed [INFO] [stdout] --> src/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum JsonEnum { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Number(f32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_number` is never used [INFO] [stdout] --> src/parser.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl JsonParser { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn parse_number(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_str` is never used [INFO] [stdout] --> src/parser.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn to_str(json: &JsonEnum) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0610]: `f32` is a primitive type and therefore doesn't have fields [INFO] [stdout] --> src/test.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(val.value, 3.0); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` in tuple element 1 that must be used [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | dbg!("{}", res); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::dbg` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/parser.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let result: Result = Ok(JsonEnum::Empty); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/parser.rs:166:26 [INFO] [stdout] | [INFO] [stdout] 166 | JsonEnum::Object(o) => "object undefined".to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/parser.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | JsonEnum::Array(o) => "array undefined".to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0610. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_json_parser` (bin "rust_json_parser" test) due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2592ec768f9a88c66819476cf91878a1fb033bc0afd8d2097f48ba1c5df9755f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2592ec768f9a88c66819476cf91878a1fb033bc0afd8d2097f48ba1c5df9755f", kill_on_drop: false }` [INFO] [stdout] 2592ec768f9a88c66819476cf91878a1fb033bc0afd8d2097f48ba1c5df9755f