[INFO] fetching crate schema_oxidation 0.1.0... [INFO] testing schema_oxidation-0.1.0 against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] extracting crate schema_oxidation 0.1.0 into /workspace/builds/worker-21/source [INFO] validating manifest of crates.io crate schema_oxidation 0.1.0 on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate schema_oxidation 0.1.0 [INFO] finished tweaking crates.io crate schema_oxidation 0.1.0 [INFO] tweaked toml for crates.io crate schema_oxidation 0.1.0 written to /workspace/builds/worker-21/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "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-21/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf7ef6dfba6f6a68623d2ff3abf2f484dfaabb0a423ac187e239b1a5f186d1e6 [INFO] running `Command { std: "docker" "start" "-a" "cf7ef6dfba6f6a68623d2ff3abf2f484dfaabb0a423ac187e239b1a5f186d1e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf7ef6dfba6f6a68623d2ff3abf2f484dfaabb0a423ac187e239b1a5f186d1e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf7ef6dfba6f6a68623d2ff3abf2f484dfaabb0a423ac187e239b1a5f186d1e6", kill_on_drop: false }` [INFO] [stdout] cf7ef6dfba6f6a68623d2ff3abf2f484dfaabb0a423ac187e239b1a5f186d1e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f62dd9d94beee8a324bd99aa66fc40f2426a7e2c0b03b4cdd0ea75eb87c078c [INFO] running `Command { std: "docker" "start" "-a" "0f62dd9d94beee8a324bd99aa66fc40f2426a7e2c0b03b4cdd0ea75eb87c078c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling schema_oxidation v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 34.66s [INFO] running `Command { std: "docker" "inspect" "0f62dd9d94beee8a324bd99aa66fc40f2426a7e2c0b03b4cdd0ea75eb87c078c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f62dd9d94beee8a324bd99aa66fc40f2426a7e2c0b03b4cdd0ea75eb87c078c", kill_on_drop: false }` [INFO] [stdout] 0f62dd9d94beee8a324bd99aa66fc40f2426a7e2c0b03b4cdd0ea75eb87c078c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebb8ea11ba52bb6301f77c2eeff2ce016f4de999fe65f57833dd7882cce3a8c2 [INFO] running `Command { std: "docker" "start" "-a" "ebb8ea11ba52bb6301f77c2eeff2ce016f4de999fe65f57833dd7882cce3a8c2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling schema_oxidation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] **** load from_file result: TokenStream [Ident { ident: "mod", span: #4 bytes(0..67) }, Ident { ident: "schema", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #4 bytes(0..67) }, Ident { ident: "serde", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Debug", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "struct", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot_b", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "additional", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "serde_json", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Value", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Debug", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "struct", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "a", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Option", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "b", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Option", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot_b", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "additional", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "serde_json", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Value", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }] [INFO] [stdout] **** load from_file result: mod schema [INFO] [stdout] { [INFO] [stdout] use serde :: { Deserialize, Serialize } ; [INFO] [stdout] #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot_b [INFO] [stdout] { [INFO] [stdout] #[serde(flatten)] additional : std :: collections :: HashMap < String, [INFO] [stdout] serde_json :: Value >, [INFO] [stdout] } #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot [INFO] [stdout] { [INFO] [stdout] pub a : Option < String >, pub b : Option < SchemaRoot_b >, [INFO] [stdout] #[serde(flatten)] additional : std :: collections :: HashMap < String, [INFO] [stdout] serde_json :: Value >, [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] **** load from_file result: TokenStream [Ident { ident: "mod", span: #4 bytes(0..67) }, Ident { ident: "schema", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #4 bytes(0..67) }, Ident { ident: "serde", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "type", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot", span: #4 bytes(0..67) }, Punct { ch: '=', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }] [INFO] [stdout] **** load from_file result: mod schema [INFO] [stdout] { use serde :: { Deserialize, Serialize } ; pub type SchemaRoot = String ; } [INFO] [stdout] Parsing [INFO] [stdout] [INFO] [stdout] { [INFO] [stdout] "type": "string" [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] as JSON [INFO] [stdout] **** load from_string result: TokenStream [Ident { ident: "mod", span: #4 bytes(0..80) }, Ident { ident: "schema", span: #4 bytes(0..80) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #4 bytes(0..80) }, Ident { ident: "serde", span: #4 bytes(0..80) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..80) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..80) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..80) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..80) }, Ident { ident: "Serialize", span: #4 bytes(0..80) }], span: #4 bytes(0..80) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..80) }, Ident { ident: "pub", span: #4 bytes(0..80) }, Ident { ident: "type", span: #4 bytes(0..80) }, Ident { ident: "SchemaRoot", span: #4 bytes(0..80) }, Punct { ch: '=', spacing: Alone, span: #4 bytes(0..80) }, Ident { ident: "String", span: #4 bytes(0..80) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..80) }], span: #4 bytes(0..80) }] [INFO] [stdout] **** load from_string result: mod schema [INFO] [stdout] { use serde :: { Deserialize, Serialize } ; pub type SchemaRoot = String ; } [INFO] [stdout] Parsing [INFO] [stdout] [INFO] [stdout] { [INFO] [stdout] "type": "object", [INFO] [stdout] "properties": { [INFO] [stdout] "a": { [INFO] [stdout] "type": "string" [INFO] [stdout] }, [INFO] [stdout] "b": { [INFO] [stdout] "type": "int" [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] as JSON [INFO] [stdout] **** load from_string result: TokenStream [Ident { ident: "mod", span: #7 bytes(83..297) }, Ident { ident: "schema2", span: #7 bytes(83..297) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #7 bytes(83..297) }, Ident { ident: "serde", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Joint, span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "Serialize", span: #7 bytes(83..297) }], span: #7 bytes(83..297) }, Punct { ch: ';', spacing: Alone, span: #7 bytes(83..297) }, Punct { ch: '#', spacing: Alone, span: #7 bytes(83..297) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #7 bytes(83..297) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "Serialize", span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "Debug", span: #7 bytes(83..297) }], span: #7 bytes(83..297) }], span: #7 bytes(83..297) }, Ident { ident: "pub", span: #7 bytes(83..297) }, Ident { ident: "struct", span: #7 bytes(83..297) }, Ident { ident: "SchemaRoot", span: #7 bytes(83..297) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "pub", span: #7 bytes(83..297) }, Ident { ident: "a", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "Option", span: #7 bytes(83..297) }, Punct { ch: '<', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "String", span: #7 bytes(83..297) }, Punct { ch: '>', spacing: Alone, span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "pub", span: #7 bytes(83..297) }, Ident { ident: "b", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "Option", span: #7 bytes(83..297) }, Punct { ch: '<', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "i64", span: #7 bytes(83..297) }, Punct { ch: '>', spacing: Alone, span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }, Punct { ch: '#', spacing: Alone, span: #7 bytes(83..297) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #7 bytes(83..297) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #7 bytes(83..297) }], span: #7 bytes(83..297) }], span: #7 bytes(83..297) }, Ident { ident: "additional", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "std", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Joint, span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "collections", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Joint, span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "HashMap", span: #7 bytes(83..297) }, Punct { ch: '<', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "String", span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "serde_json", span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Joint, span: #7 bytes(83..297) }, Punct { ch: ':', spacing: Alone, span: #7 bytes(83..297) }, Ident { ident: "Value", span: #7 bytes(83..297) }, Punct { ch: '>', spacing: Alone, span: #7 bytes(83..297) }, Punct { ch: ',', spacing: Alone, span: #7 bytes(83..297) }], span: #7 bytes(83..297) }], span: #7 bytes(83..297) }] [INFO] [stdout] **** load from_string result: mod schema2 [INFO] [stdout] { [INFO] [stdout] use serde :: { Deserialize, Serialize } ; [INFO] [stdout] #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot [INFO] [stdout] { [INFO] [stdout] pub a : Option < String >, pub b : Option < i64 >, #[serde(flatten)] [INFO] [stdout] additional : std :: collections :: HashMap < String, serde_json :: [INFO] [stdout] Value >, [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] **** load from_file result: TokenStream [Ident { ident: "mod", span: #4 bytes(0..67) }, Ident { ident: "schema", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #4 bytes(0..67) }, Ident { ident: "serde", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Debug", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "struct", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot_b", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "additional", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "serde_json", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Value", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Debug", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "struct", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot_c", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "additional", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "serde_json", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Value", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Debug", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "struct", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "a", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Option", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "b", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Option", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot_b", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "c", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Option", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot_c", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "additional", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "serde_json", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Value", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }] [INFO] [stdout] **** load from_file result: mod schema [INFO] [stdout] { [INFO] [stdout] use serde :: { Deserialize, Serialize } ; [INFO] [stdout] #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot_b [INFO] [stdout] { [INFO] [stdout] #[serde(flatten)] additional : std :: collections :: HashMap < String, [INFO] [stdout] serde_json :: Value >, [INFO] [stdout] } #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot_c [INFO] [stdout] { [INFO] [stdout] #[serde(flatten)] additional : std :: collections :: HashMap < String, [INFO] [stdout] serde_json :: Value >, [INFO] [stdout] } #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot [INFO] [stdout] { [INFO] [stdout] pub a : Option < String >, pub b : Option < SchemaRoot_b >, pub c : [INFO] [stdout] Option < std :: collections :: HashMap < String, SchemaRoot_c > >, [INFO] [stdout] #[serde(flatten)] additional : std :: collections :: HashMap < String, [INFO] [stdout] serde_json :: Value >, [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] Parsing [INFO] [stdout] [INFO] [stdout] { [INFO] [stdout] "type": "object", [INFO] [stdout] "$defs": { [INFO] [stdout] "something": { [INFO] [stdout] "type": "object" [INFO] [stdout] } [INFO] [stdout] }, [INFO] [stdout] "properties": { [INFO] [stdout] "a": { [INFO] [stdout] "type": "string" [INFO] [stdout] }, [INFO] [stdout] "b": { [INFO] [stdout] "type": "int" [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] as JSON [INFO] [stdout] **** load from_string result: TokenStream [Ident { ident: "mod", span: #10 bytes(300..598) }, Ident { ident: "schema3", span: #10 bytes(300..598) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #10 bytes(300..598) }, Ident { ident: "serde", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Serialize", span: #10 bytes(300..598) }], span: #10 bytes(300..598) }, Punct { ch: ';', spacing: Alone, span: #10 bytes(300..598) }, Punct { ch: '#', spacing: Alone, span: #10 bytes(300..598) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #10 bytes(300..598) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Serialize", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Debug", span: #10 bytes(300..598) }], span: #10 bytes(300..598) }], span: #10 bytes(300..598) }, Ident { ident: "pub", span: #10 bytes(300..598) }, Ident { ident: "struct", span: #10 bytes(300..598) }, Ident { ident: "SchemaRoot", span: #10 bytes(300..598) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "pub", span: #10 bytes(300..598) }, Ident { ident: "a", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Option", span: #10 bytes(300..598) }, Punct { ch: '<', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "String", span: #10 bytes(300..598) }, Punct { ch: '>', spacing: Alone, span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "pub", span: #10 bytes(300..598) }, Ident { ident: "b", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Option", span: #10 bytes(300..598) }, Punct { ch: '<', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "i64", span: #10 bytes(300..598) }, Punct { ch: '>', spacing: Alone, span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Punct { ch: '#', spacing: Alone, span: #10 bytes(300..598) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #10 bytes(300..598) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #10 bytes(300..598) }], span: #10 bytes(300..598) }], span: #10 bytes(300..598) }, Ident { ident: "additional", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "std", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "collections", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "HashMap", span: #10 bytes(300..598) }, Punct { ch: '<', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "String", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "serde_json", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Value", span: #10 bytes(300..598) }, Punct { ch: '>', spacing: Alone, span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }], span: #10 bytes(300..598) }, Punct { ch: '#', spacing: Alone, span: #10 bytes(300..598) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #10 bytes(300..598) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Serialize", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Debug", span: #10 bytes(300..598) }], span: #10 bytes(300..598) }], span: #10 bytes(300..598) }, Ident { ident: "pub", span: #10 bytes(300..598) }, Ident { ident: "struct", span: #10 bytes(300..598) }, Ident { ident: "something", span: #10 bytes(300..598) }, Group { delimiter: Brace, stream: TokenStream [Punct { ch: '#', spacing: Alone, span: #10 bytes(300..598) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #10 bytes(300..598) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #10 bytes(300..598) }], span: #10 bytes(300..598) }], span: #10 bytes(300..598) }, Ident { ident: "additional", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "std", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "collections", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "HashMap", span: #10 bytes(300..598) }, Punct { ch: '<', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "String", span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "serde_json", span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Joint, span: #10 bytes(300..598) }, Punct { ch: ':', spacing: Alone, span: #10 bytes(300..598) }, Ident { ident: "Value", span: #10 bytes(300..598) }, Punct { ch: '>', spacing: Alone, span: #10 bytes(300..598) }, Punct { ch: ',', spacing: Alone, span: #10 bytes(300..598) }], span: #10 bytes(300..598) }], span: #10 bytes(300..598) }] [INFO] [stdout] **** load from_string result: mod schema3 [INFO] [stdout] { [INFO] [stdout] use serde :: { Deserialize, Serialize } ; [INFO] [stdout] #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot [INFO] [stdout] { [INFO] [stdout] pub a : Option < String >, pub b : Option < i64 >, #[serde(flatten)] [INFO] [stdout] additional : std :: collections :: HashMap < String, serde_json :: [INFO] [stdout] Value >, [INFO] [stdout] } #[derive(Deserialize, Serialize, Debug)] pub struct something [INFO] [stdout] { [INFO] [stdout] #[serde(flatten)] additional : std :: collections :: HashMap < String, [INFO] [stdout] serde_json :: Value >, [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] **** load from_file result: TokenStream [Ident { ident: "mod", span: #4 bytes(0..67) }, Ident { ident: "schema", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "use", span: #4 bytes(0..67) }, Ident { ident: "serde", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Punct { ch: ';', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "derive", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "Deserialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Serialize", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Debug", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "struct", span: #4 bytes(0..67) }, Ident { ident: "SchemaRoot", span: #4 bytes(0..67) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "pub", span: #4 bytes(0..67) }, Ident { ident: "a", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Option", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: '#', spacing: Alone, span: #4 bytes(0..67) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "serde", span: #4 bytes(0..67) }, Group { delimiter: Parenthesis, stream: TokenStream [Ident { ident: "flatten", span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }, Ident { ident: "additional", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "std", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "collections", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "HashMap", span: #4 bytes(0..67) }, Punct { ch: '<', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "String", span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "serde_json", span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Joint, span: #4 bytes(0..67) }, Punct { ch: ':', spacing: Alone, span: #4 bytes(0..67) }, Ident { ident: "Value", span: #4 bytes(0..67) }, Punct { ch: '>', spacing: Alone, span: #4 bytes(0..67) }, Punct { ch: ',', spacing: Alone, span: #4 bytes(0..67) }], span: #4 bytes(0..67) }], span: #4 bytes(0..67) }] [INFO] [stdout] **** load from_file result: mod schema [INFO] [stdout] { [INFO] [stdout] use serde :: { Deserialize, Serialize } ; [INFO] [stdout] #[derive(Deserialize, Serialize, Debug)] pub struct SchemaRoot [INFO] [stdout] { [INFO] [stdout] pub a : Option < String >, #[serde(flatten)] additional : std :: [INFO] [stdout] collections :: HashMap < String, serde_json :: Value >, [INFO] [stdout] } [INFO] [stdout] } [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> tests/test-03.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> tests/test-02.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_root` [INFO] [stdout] --> tests/test-03.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_root` [INFO] [stdout] --> tests/test-02.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> tests/test-04.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_root` [INFO] [stdout] --> tests/test-04.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.29s [INFO] running `Command { std: "docker" "inspect" "ebb8ea11ba52bb6301f77c2eeff2ce016f4de999fe65f57833dd7882cce3a8c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebb8ea11ba52bb6301f77c2eeff2ce016f4de999fe65f57833dd7882cce3a8c2", kill_on_drop: false }` [INFO] [stdout] ebb8ea11ba52bb6301f77c2eeff2ce016f4de999fe65f57833dd7882cce3a8c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-21/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 275046ff9e4a036617789d96e747c1fa10a3b4db712d572e07cee085b0aa71dc [INFO] running `Command { std: "docker" "start" "-a" "275046ff9e4a036617789d96e747c1fa10a3b4db712d572e07cee085b0aa71dc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> tests/test-02.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_root` [INFO] [stderr] --> tests/test-02.rs:4:4 [INFO] [stderr] | [INFO] [stderr] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> tests/test-04.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_root` [INFO] [stderr] --> tests/test-04.rs:4:4 [INFO] [stderr] | [INFO] [stderr] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> tests/test-03.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_root` [INFO] [stderr] --> tests/test-03.rs:4:4 [INFO] [stderr] | [INFO] [stderr] 4 | fn test_root(s: &schema::SchemaRoot) {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `schema_oxidation` (test "test-02") generated 2 warnings [INFO] [stderr] warning: `schema_oxidation` (test "test-04") generated 2 warnings [INFO] [stderr] warning: `schema_oxidation` (test "test-03") generated 2 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/schema_oxidation-f52dfdf4ca1f5a8e) [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] Running tests/test-01.rs (/opt/rustwide/target/debug/deps/test_01-f809659c4fe0156a) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_root_equal ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test-02.rs (/opt/rustwide/target/debug/deps/test_02-d498f8f2bff75d45) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Running tests/test-03.rs (/opt/rustwide/target/debug/deps/test_03-5b4bd3ab0e9ffb4a) [INFO] [stdout] test test_root_equal ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_root_equal ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test-04.rs (/opt/rustwide/target/debug/deps/test_04-ca4e13b81b00947f) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_root_equal ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test-05.rs (/opt/rustwide/target/debug/deps/test_05-6f0979d8578bdb71) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test simple_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests schema_oxidation [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - generate_from_string (line 44) ... FAILED [INFO] [stdout] test src/lib.rs - generate_from_string (line 65) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - generate_from_string (line 44) stdout ---- [INFO] [stdout] error: expected `:` [INFO] [stdout] --> src/lib.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 4 | schema_oxidation::generate_from_string!(example_schema, r#" [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - generate_from_string (line 65) stdout ---- [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Serialize,Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Serialize,Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize,Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Serialize [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize,Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] serde::Deserialize [INFO] [stdout] [INFO] [stdout] warning: type `SchemaRoot_fieldC` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SchemaRoot_fieldC { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SchemaRootFieldC` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - generate_from_string (line 44) [INFO] [stdout] src/lib.rs - generate_from_string (line 65) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "275046ff9e4a036617789d96e747c1fa10a3b4db712d572e07cee085b0aa71dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "275046ff9e4a036617789d96e747c1fa10a3b4db712d572e07cee085b0aa71dc", kill_on_drop: false }` [INFO] [stdout] 275046ff9e4a036617789d96e747c1fa10a3b4db712d572e07cee085b0aa71dc