[INFO] cloning repository https://github.com/besok/json-generator [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/besok/json-generator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbesok%2Fjson-generator"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbesok%2Fjson-generator'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 7499e15fcff4aa6b95afa6cfae5cfbc89e070f5c [INFO] checking besok/json-generator against try#96b3c169cd2d8959926fa240f10342f1659f8ae3 for pr-71896 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbesok%2Fjson-generator" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/besok/json-generator on toolchain 96b3c169cd2d8959926fa240f10342f1659f8ae3 [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/besok/json-generator [INFO] finished tweaking git repo https://github.com/besok/json-generator [INFO] tweaked toml for git repo https://github.com/besok/json-generator written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/besok/json-generator already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1f1612f55d654d6f646005b923cc5ee9a4036167dda0b5476292569424f7b714 [INFO] running `"docker" "start" "-a" "1f1612f55d654d6f646005b923cc5ee9a4036167dda0b5476292569424f7b714"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling lexical-core v0.6.7 [INFO] [stderr] Checking nom v5.1.1 [INFO] [stderr] Checking json-generator v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused imports: `HexDisplay`, `alphanumeric1 as alphanumeric`, `delimited`, `is_a`, `iterator`, `number::complete::double`, `opt`, `pair` [INFO] [stderr] --> src/parser/parser.rs:6:62 [INFO] [stderr] | [INFO] [stderr] 6 | bytes::complete::{escaped, tag, take_while, take_while1, is_a}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 7 | character::complete::{alphanumeric1 as alphanumeric, char, one_of}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 8 | combinator::{map, map_res, opt, cut, iterator}, [INFO] [stderr] | ^^^ ^^^^^^^^ [INFO] [stderr] 9 | multi::separated_list, [INFO] [stderr] 10 | number::complete::double, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | sequence::{delimited, preceded, separated_pair, terminated, pair}, [INFO] [stderr] | ^^^^^^^^^ ^^^^ [INFO] [stderr] 12 | Err, IResult, HexDisplay, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::Err::Error` [INFO] [stderr] --> src/parser/parser.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use self::nom::Err::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::character::complete::none_of` [INFO] [stderr] --> src/parser/parser.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use self::nom::character::complete::none_of; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::character::is_digit` [INFO] [stderr] --> src/parser/parser.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use self::nom::character::is_digit; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::FromStr` [INFO] [stderr] --> src/parser/parser.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::str::FromStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::error::ErrorKind` [INFO] [stderr] --> src/parser/parser.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use self::nom::error::ErrorKind; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `gen` should have an upper camel case name [INFO] [stderr] --> src/parser/mod.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | enum gen { [INFO] [stderr] | ^^^ help: convert the identifier to upper camel case: `Gen` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `gen` [INFO] [stderr] --> src/parser/mod.rs:73:38 [INFO] [stderr] | [INFO] [stderr] 73 | use crate::parser::{Field, Json, gen}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HexDisplay`, `alphanumeric1 as alphanumeric`, `delimited`, `is_a`, `iterator`, `number::complete::double`, `opt`, `pair` [INFO] [stderr] --> src/parser/parser.rs:6:62 [INFO] [stderr] | [INFO] [stderr] 6 | bytes::complete::{escaped, tag, take_while, take_while1, is_a}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 7 | character::complete::{alphanumeric1 as alphanumeric, char, one_of}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 8 | combinator::{map, map_res, opt, cut, iterator}, [INFO] [stderr] | ^^^ ^^^^^^^^ [INFO] [stderr] 9 | multi::separated_list, [INFO] [stderr] 10 | number::complete::double, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 11 | sequence::{delimited, preceded, separated_pair, terminated, pair}, [INFO] [stderr] | ^^^^^^^^^ ^^^^ [INFO] [stderr] 12 | Err, IResult, HexDisplay, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::Err::Error` [INFO] [stderr] --> src/parser/parser.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use self::nom::Err::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::character::complete::none_of` [INFO] [stderr] --> src/parser/parser.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use self::nom::character::complete::none_of; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::character::is_digit` [INFO] [stderr] --> src/parser/parser.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use self::nom::character::is_digit; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::FromStr` [INFO] [stderr] --> src/parser/parser.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::str::FromStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::nom::error::ErrorKind` [INFO] [stderr] --> src/parser/parser.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use self::nom::error::ErrorKind; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `gen` should have an upper camel case name [INFO] [stderr] --> src/parser/mod.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | enum gen { [INFO] [stderr] | ^^^ help: convert the identifier to upper camel case: `Gen` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_space` [INFO] [stderr] --> src/parser/parser.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn is_space(c: char) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sp` [INFO] [stderr] --> src/parser/parser.rs:27:4 [INFO] [stderr] | [INFO] [stderr] 27 | fn sp(i: &str) -> IResult<&str, &str> { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_string_character` [INFO] [stderr] --> src/parser/parser.rs:31:4 [INFO] [stderr] | [INFO] [stderr] 31 | fn is_string_character(c: char) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `boolean` [INFO] [stderr] --> src/parser/parser.rs:35:4 [INFO] [stderr] | [INFO] [stderr] 35 | fn boolean(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `null` [INFO] [stderr] --> src/parser/parser.rs:42:4 [INFO] [stderr] | [INFO] [stderr] 42 | fn null(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `escaped_string` [INFO] [stderr] --> src/parser/parser.rs:46:4 [INFO] [stderr] | [INFO] [stderr] 46 | fn escaped_string(i: &str) -> IResult<&str, &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `string` [INFO] [stderr] --> src/parser/parser.rs:50:4 [INFO] [stderr] | [INFO] [stderr] 50 | fn string(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `num` [INFO] [stderr] --> src/parser/parser.rs:58:4 [INFO] [stderr] | [INFO] [stderr] 58 | fn num(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `field` [INFO] [stderr] --> src/parser/parser.rs:62:4 [INFO] [stderr] | [INFO] [stderr] 62 | fn field(i: &str) -> IResult<&str, Field> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `key` [INFO] [stderr] --> src/parser/parser.rs:71:4 [INFO] [stderr] | [INFO] [stderr] 71 | fn key(i: &str) -> IResult<&str, &str> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `array` [INFO] [stderr] --> src/parser/parser.rs:77:4 [INFO] [stderr] | [INFO] [stderr] 77 | fn array(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `object` [INFO] [stderr] --> src/parser/parser.rs:87:4 [INFO] [stderr] | [INFO] [stderr] 87 | fn object(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `value` [INFO] [stderr] --> src/parser/parser.rs:97:4 [INFO] [stderr] | [INFO] [stderr] 97 | fn value(i: &str) -> IResult<&str, Json> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `limiter` [INFO] [stderr] --> src/parser/parser.rs:105:4 [INFO] [stderr] | [INFO] [stderr] 105 | fn limiter(i: &str) -> IResult<&str, &str> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `str_to_val` [INFO] [stderr] --> src/parser/parser.rs:109:4 [INFO] [stderr] | [INFO] [stderr] 109 | fn str_to_val(v: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `arr_to_val` [INFO] [stderr] --> src/parser/parser.rs:113:4 [INFO] [stderr] | [INFO] [stderr] 113 | fn arr_to_val(v: Vec) -> Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `obj_to_val` [INFO] [stderr] --> src/parser/parser.rs:117:4 [INFO] [stderr] | [INFO] [stderr] 117 | fn obj_to_val(v: Vec) -> Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `str_to_num` [INFO] [stderr] --> src/parser/parser.rs:121:4 [INFO] [stderr] | [INFO] [stderr] 121 | fn str_to_num(v: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `str_to_str` [INFO] [stderr] --> src/parser/parser.rs:126:4 [INFO] [stderr] | [INFO] [stderr] 126 | fn str_to_str(v: &str) -> Result<&str, Err> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Num` [INFO] [stderr] --> src/parser/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | Num(i64), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Str` [INFO] [stderr] --> src/parser/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | Str(String), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Bool` [INFO] [stderr] --> src/parser/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Bool(bool), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Null` [INFO] [stderr] --> src/parser/mod.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | Null, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Object` [INFO] [stderr] --> src/parser/mod.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Object(Vec), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Array` [INFO] [stderr] --> src/parser/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | Array(Vec), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/parser/mod.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | fn new(name:String, value: Json) -> Self{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_with` [INFO] [stderr] --> src/parser/mod.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | fn new_with(name:String, value: Json, generator: gen) -> Self{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Default` [INFO] [stderr] --> src/parser/mod.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | Default, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Sequence` [INFO] [stderr] --> src/parser/mod.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | Sequence(usize), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `RandomString` [INFO] [stderr] --> src/parser/mod.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | RandomString(usize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `RandomFromFile` [INFO] [stderr] --> src/parser/mod.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | RandomFromFile(String,String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 38 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: function is never used: `str_to_str` [INFO] [stderr] --> src/parser/parser.rs:126:4 [INFO] [stderr] | [INFO] [stderr] 126 | fn str_to_str(v: &str) -> Result<&str, Err> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_with` [INFO] [stderr] --> src/parser/mod.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | fn new_with(name:String, value: Json, generator: gen) -> Self{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Sequence` [INFO] [stderr] --> src/parser/mod.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | Sequence(usize), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `RandomString` [INFO] [stderr] --> src/parser/mod.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | RandomString(usize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `RandomFromFile` [INFO] [stderr] --> src/parser/mod.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | RandomFromFile(String,String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 13 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.82s [INFO] running `"docker" "inspect" "1f1612f55d654d6f646005b923cc5ee9a4036167dda0b5476292569424f7b714"` [INFO] running `"docker" "rm" "-f" "1f1612f55d654d6f646005b923cc5ee9a4036167dda0b5476292569424f7b714"` [INFO] [stdout] 1f1612f55d654d6f646005b923cc5ee9a4036167dda0b5476292569424f7b714