[INFO] fetching crate schema2struct 0.1.0... [INFO] testing schema2struct-0.1.0 against beta-2025-09-21 for beta-1.91-3 [INFO] extracting crate schema2struct 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate schema2struct 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate schema2struct 0.1.0 [INFO] tweaked toml for crates.io crate schema2struct 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate schema2struct 0.1.0 on toolchain beta-2025-09-21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate schema2struct 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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d366fef786b750dd62ec36786328fa1a8c272ea585fc16940335ebbe2eec18f6 [INFO] running `Command { std: "docker" "start" "-a" "d366fef786b750dd62ec36786328fa1a8c272ea585fc16940335ebbe2eec18f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d366fef786b750dd62ec36786328fa1a8c272ea585fc16940335ebbe2eec18f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d366fef786b750dd62ec36786328fa1a8c272ea585fc16940335ebbe2eec18f6", kill_on_drop: false }` [INFO] [stdout] d366fef786b750dd62ec36786328fa1a8c272ea585fc16940335ebbe2eec18f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f525c9d0f73f12ade6c54eb854b6f27b619134dbbf79447840e3fa720ad8f0ab [INFO] running `Command { std: "docker" "start" "-a" "f525c9d0f73f12ade6c54eb854b6f27b619134dbbf79447840e3fa720ad8f0ab", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [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 schema2struct v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.05s [INFO] running `Command { std: "docker" "inspect" "f525c9d0f73f12ade6c54eb854b6f27b619134dbbf79447840e3fa720ad8f0ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f525c9d0f73f12ade6c54eb854b6f27b619134dbbf79447840e3fa720ad8f0ab", kill_on_drop: false }` [INFO] [stdout] f525c9d0f73f12ade6c54eb854b6f27b619134dbbf79447840e3fa720ad8f0ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 690616c9d506fb5933b76bd08ac1b52f8fa9056c72422311a2ad8f92b5571d77 [INFO] running `Command { std: "docker" "start" "-a" "690616c9d506fb5933b76bd08ac1b52f8fa9056c72422311a2ad8f92b5571d77", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling schema2struct v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 17.34s [INFO] running `Command { std: "docker" "inspect" "690616c9d506fb5933b76bd08ac1b52f8fa9056c72422311a2ad8f92b5571d77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "690616c9d506fb5933b76bd08ac1b52f8fa9056c72422311a2ad8f92b5571d77", kill_on_drop: false }` [INFO] [stdout] 690616c9d506fb5933b76bd08ac1b52f8fa9056c72422311a2ad8f92b5571d77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f68eb3e8ee9bde40c33716661000f3d1e83dbec6826b07a78a4ddbba8775d9d5 [INFO] running `Command { std: "docker" "start" "-a" "f68eb3e8ee9bde40c33716661000f3d1e83dbec6826b07a78a4ddbba8775d9d5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/schema2struct-3e7af521c4fd82b0) [INFO] [stderr] Doc-tests schema2struct [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] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/models.rs - models::JsonSchemaTypes (line 8) ... FAILED [INFO] [stdout] test src/models.rs - models::JsonSchemaValues (line 221) ... FAILED [INFO] [stdout] test src/models.rs - models::JsonSchemaKeywords (line 180) ... FAILED [INFO] [stdout] test src/models.rs - models::JsonSchema::to_json_sample (line 288) ... ok [INFO] [stdout] test src/lib.rs - schema2struct (line 57) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/models.rs - models::JsonSchemaTypes (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `jsonschema` in this scope [INFO] [stdout] --> src/models.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 3 | jsonschema!{ [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/models.rs - models::JsonSchemaValues (line 221) stdout ---- [INFO] [stdout] error: cannot find macro `schema2struct` in this scope [INFO] [stdout] --> src/models.rs:223:1 [INFO] [stdout] | [INFO] [stdout] 5 | schema2struct!{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `schema2struct` is imported here, but it is a crate, not a macro [INFO] [stdout] --> src/models.rs:221:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#schema2struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use schema2struct::schema2struct; [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/models.rs - models::JsonSchemaKeywords (line 180) stdout ---- [INFO] [stdout] error: cannot find macro `schema2struct` in this scope [INFO] [stdout] --> src/models.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 5 | schema2struct!{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `schema2struct` is imported here, but it is a crate, not a macro [INFO] [stdout] --> src/models.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#schema2struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use schema2struct::schema2struct; [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 - schema2struct (line 57) stdout ---- [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/lib.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 19 | let hard_bind_response: User = serde_json::from_str(response.text).unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] error: expected one of `@` or `|`, found `:` [INFO] [stdout] --> src/lib.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 19 | let hard_bind_response: User = serde_json::from_str(response.text).unwrap(); [INFO] [stdout] | ^ ---- specifying the type of a pattern isn't supported [INFO] [stdout] | | [INFO] [stdout] | expected one of `@` or `|` [INFO] [stdout] | [INFO] [stdout] help: maybe write a path separator here [INFO] [stdout] | [INFO] [stdout] 19 | let hard_bind_response::User = serde_json::from_str(response.text).unwrap(); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `schema2struct` in this scope [INFO] [stdout] --> src/lib.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 5 | schema2struct! { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `schema2struct` is imported here, but it is a crate, not a macro [INFO] [stdout] --> src/lib.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#schema2struct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use schema2struct::schema2struct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USER_JSON_VALUE` in this scope [INFO] [stdout] --> src/lib.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 16 | let json = &*USER_JSON_VALUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/lib.rs:73:57 [INFO] [stdout] | [INFO] [stdout] 19 | let hard_bind_response: User = serde_json::from_str(response.text).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hard_bind_response` in this scope [INFO] [stdout] --> src/lib.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 22 | println!("{}", hard_bind_response.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - schema2struct (line 57) [INFO] [stdout] src/models.rs - models::JsonSchemaKeywords (line 180) [INFO] [stdout] src/models.rs - models::JsonSchemaTypes (line 8) [INFO] [stdout] src/models.rs - models::JsonSchemaValues (line 221) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "f68eb3e8ee9bde40c33716661000f3d1e83dbec6826b07a78a4ddbba8775d9d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f68eb3e8ee9bde40c33716661000f3d1e83dbec6826b07a78a4ddbba8775d9d5", kill_on_drop: false }` [INFO] [stdout] f68eb3e8ee9bde40c33716661000f3d1e83dbec6826b07a78a4ddbba8775d9d5