[INFO] fetching crate json_to_struct 0.1.0... [INFO] testing json_to_struct-0.1.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate json_to_struct 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate json_to_struct 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate json_to_struct 0.1.0 [INFO] tweaked toml for crates.io crate json_to_struct 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate json_to_struct 0.1.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate json_to_struct 0.1.0 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ebe3b95101e051356fe369fa689e8437930f03296323aad85376917214e82840 [INFO] running `Command { std: "docker" "start" "-a" "ebe3b95101e051356fe369fa689e8437930f03296323aad85376917214e82840", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ebe3b95101e051356fe369fa689e8437930f03296323aad85376917214e82840", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebe3b95101e051356fe369fa689e8437930f03296323aad85376917214e82840", kill_on_drop: false }` [INFO] [stdout] ebe3b95101e051356fe369fa689e8437930f03296323aad85376917214e82840 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9e67189390c452384a0420b1e7f5229c24266a626102da2b35624699fb09873 [INFO] running `Command { std: "docker" "start" "-a" "e9e67189390c452384a0420b1e7f5229c24266a626102da2b35624699fb09873", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling json_to_struct v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.02s [INFO] running `Command { std: "docker" "inspect" "e9e67189390c452384a0420b1e7f5229c24266a626102da2b35624699fb09873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9e67189390c452384a0420b1e7f5229c24266a626102da2b35624699fb09873", kill_on_drop: false }` [INFO] [stdout] e9e67189390c452384a0420b1e7f5229c24266a626102da2b35624699fb09873 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3769fce5121e369e8b6a482f14d7e78b4df3d43f939109999dcc569c25aa4940 [INFO] running `Command { std: "docker" "start" "-a" "3769fce5121e369e8b6a482f14d7e78b4df3d43f939109999dcc569c25aa4940", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling json_to_struct v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.46s [INFO] running `Command { std: "docker" "inspect" "3769fce5121e369e8b6a482f14d7e78b4df3d43f939109999dcc569c25aa4940", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3769fce5121e369e8b6a482f14d7e78b4df3d43f939109999dcc569c25aa4940", kill_on_drop: false }` [INFO] [stdout] 3769fce5121e369e8b6a482f14d7e78b4df3d43f939109999dcc569c25aa4940 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5842e263db0b4a34f3b875a748f29fe5cabd744b6affec93c734a84a2c0551c3 [INFO] running `Command { std: "docker" "start" "-a" "5842e263db0b4a34f3b875a748f29fe5cabd744b6affec93c734a84a2c0551c3", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/json_to_struct-5743fb6dcf4be887) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests json_to_struct [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - json2struct (line 130) ... FAILED [INFO] [stdout] test src/lib.rs - json2struct (line 148) ... FAILED [INFO] [stdout] test src/lib.rs - json2struct (line 156) ... FAILED [INFO] [stdout] test src/lib.rs - (line 16) ... FAILED [INFO] [stdout] test src/lib.rs - (line 42) ... FAILED [INFO] [stdout] test src/lib.rs - (line 26) ... FAILED [INFO] [stdout] test src/lib.rs - (line 60) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - json2struct (line 130) stdout ---- [INFO] [stdout] error: cannot find macro `json2struct` in this scope [INFO] [stdout] --> src/lib.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 3 | json2struct!(StructName [flags] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use json_to_struct::json2struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - json2struct (line 148) stdout ---- [INFO] [stdout] error: cannot find macro `json2struct` in this scope [INFO] [stdout] --> src/lib.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 3 | json2struct!(User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use json_to_struct::json2struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - json2struct (line 156) stdout ---- [INFO] [stdout] error: cannot find macro `json2struct` in this scope [INFO] [stdout] --> src/lib.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 3 | json2struct!(Company @debug { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use json_to_struct::json2struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 16) stdout ---- [INFO] [stdout] error: cannot find macro `json2struct` in this scope [INFO] [stdout] --> src/lib.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 4 | json2struct!(User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use json_to_struct::json2struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 42) stdout ---- [INFO] [stdout] error: cannot find macro `json2struct` in this scope [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 4 | json2struct!(Company @debug @camel @derive(PartialEq) @store_json { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use json_to_struct::json2struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 26) stdout ---- [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[serde(alias = "first_name")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[serde(alias = "last_name")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 11 | #[serde(alias = "age")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 60) stdout ---- [INFO] [stdout] error: expected type, found `}` [INFO] [stdout] --> src/lib.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 25 | struct CompanyEmplyees { [INFO] [stdout] | --------------- while parsing this struct [INFO] [stdout] ... [INFO] [stdout] 31 | } [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:91:48 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 34 | #[serde(rename_all = "camelCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 36 | #[serde(alias = "email")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 39 | #[serde(alias = "department")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:81:35 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 23 | #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:82:3 [INFO] [stdout] | [INFO] [stdout] 24 | #[serde(rename_all = "camelCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[serde(alias = "id")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:71:35 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:71:48 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[serde(rename_all = "camelCase")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 16 | #[serde(alias = "company_name")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/lib.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 19 | #[serde(alias = "last_name")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `serde` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LazyLock` in this scope [INFO] [stdout] --> src/lib.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 3 | static COMPANY_JSON_VALUE: LazyLock = LazyLock::new(|| [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::LazyLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/lib.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 3 | static COMPANY_JSON_VALUE: LazyLock = LazyLock::new(|| [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LazyLock` [INFO] [stdout] --> src/lib.rs:61:46 [INFO] [stdout] | [INFO] [stdout] 3 | static COMPANY_JSON_VALUE: LazyLock = LazyLock::new(|| [INFO] [stdout] | ^^^^^^^^ use of undeclared type `LazyLock` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::LazyLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 16) [INFO] [stdout] src/lib.rs - (line 26) [INFO] [stdout] src/lib.rs - (line 42) [INFO] [stdout] src/lib.rs - (line 60) [INFO] [stdout] src/lib.rs - json2struct (line 130) [INFO] [stdout] src/lib.rs - json2struct (line 148) [INFO] [stdout] src/lib.rs - json2struct (line 156) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5842e263db0b4a34f3b875a748f29fe5cabd744b6affec93c734a84a2c0551c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5842e263db0b4a34f3b875a748f29fe5cabd744b6affec93c734a84a2c0551c3", kill_on_drop: false }` [INFO] [stdout] 5842e263db0b4a34f3b875a748f29fe5cabd744b6affec93c734a84a2c0551c3