[INFO] fetching crate ts-macro 1.0.2... [INFO] testing ts-macro-1.0.2 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate ts-macro 1.0.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate ts-macro 1.0.2 [INFO] finished tweaking crates.io crate ts-macro 1.0.2 [INFO] tweaked toml for crates.io crate ts-macro 1.0.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ts-macro 1.0.2 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ts-macro 1.0.2 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded once_cell v1.20.3 [INFO] [stderr] Downloaded ts-type v1.0.2 [INFO] [stderr] Downloaded syn v2.0.98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fb49de058ba306f389d7033622b6760a76f60f34495a11cea106475b8197d78 [INFO] running `Command { std: "docker" "start" "-a" "5fb49de058ba306f389d7033622b6760a76f60f34495a11cea106475b8197d78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fb49de058ba306f389d7033622b6760a76f60f34495a11cea106475b8197d78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fb49de058ba306f389d7033622b6760a76f60f34495a11cea106475b8197d78", kill_on_drop: false }` [INFO] [stdout] 5fb49de058ba306f389d7033622b6760a76f60f34495a11cea106475b8197d78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fc2581d4ff2da987604824877755637be50ae645e481efe160bbad683ad521b [INFO] running `Command { std: "docker" "start" "-a" "6fc2581d4ff2da987604824877755637be50ae645e481efe160bbad683ad521b", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling ts-type v1.0.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling ts-macro v1.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.08s [INFO] running `Command { std: "docker" "inspect" "6fc2581d4ff2da987604824877755637be50ae645e481efe160bbad683ad521b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fc2581d4ff2da987604824877755637be50ae645e481efe160bbad683ad521b", kill_on_drop: false }` [INFO] [stdout] 6fc2581d4ff2da987604824877755637be50ae645e481efe160bbad683ad521b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 282bef72e06fd68ced2e31285be640622aafa0157bc7880d00fc7f35c812317b [INFO] running `Command { std: "docker" "start" "-a" "282bef72e06fd68ced2e31285be640622aafa0157bc7880d00fc7f35c812317b", kill_on_drop: false }` [INFO] [stderr] Compiling ts-macro v1.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s [INFO] running `Command { std: "docker" "inspect" "282bef72e06fd68ced2e31285be640622aafa0157bc7880d00fc7f35c812317b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "282bef72e06fd68ced2e31285be640622aafa0157bc7880d00fc7f35c812317b", kill_on_drop: false }` [INFO] [stdout] 282bef72e06fd68ced2e31285be640622aafa0157bc7880d00fc7f35c812317b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 597508fe736d003c3b1bedae435a58d40bf1202dd72a7be40d715129a41d9664 [INFO] running `Command { std: "docker" "start" "-a" "597508fe736d003c3b1bedae435a58d40bf1202dd72a7be40d715129a41d9664", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ts_macro-a928e80e0bd4b8ab) [INFO] [stderr] Doc-tests ts_macro [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 4 tests [INFO] [stdout] test src/lib.rs - ts (line 112) ... FAILED [INFO] [stdout] test src/lib.rs - ts (line 70) ... FAILED [INFO] [stdout] test src/lib.rs - ts (line 129) ... FAILED [INFO] [stdout] test src/lib.rs - ts (line 172) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - ts (line 112) stdout ---- [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:113:3 [INFO] [stdout] | [INFO] [stdout] 113 | #[ts] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 112 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BigInt` in this scope [INFO] [stdout] --> src/lib.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | amount: BigInt, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IToken` in this scope [INFO] [stdout] --> src/lib.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | token: IToken, // Binding to the `Token` struct [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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] ---- src/lib.rs - ts (line 70) stdout ---- [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 70 + use wasm_bindgen::prelude::wasm_bindgen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:71:3 [INFO] [stdout] | [INFO] [stdout] 71 | #[ts] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 70 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BigInt` in this scope [INFO] [stdout] --> src/lib.rs:76:19 [INFO] [stdout] | [INFO] [stdout] 76 | total_supply: BigInt, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IToken` in this scope [INFO] [stdout] --> src/lib.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 72 | struct Token { [INFO] [stdout] | ------------ similarly named struct `Token` defined here [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn handle_token(token: IToken) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 80 - pub fn handle_token(token: IToken) { [INFO] [stdout] 80 + pub fn handle_token(token: Token) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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] ---- src/lib.rs - ts (line 129) stdout ---- [INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope [INFO] [stdout] --> src/lib.rs:142:3 [INFO] [stdout] | [INFO] [stdout] 142 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 129 + use wasm_bindgen::prelude::wasm_bindgen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:137:3 [INFO] [stdout] | [INFO] [stdout] 137 | #[ts(name = JsShareToken, extends = JsToken)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 129 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:130:3 [INFO] [stdout] | [INFO] [stdout] 130 | #[ts(name = JsToken)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 129 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Number` in this scope [INFO] [stdout] --> src/lib.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | decimals: Number, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BigInt` in this scope [INFO] [stdout] --> src/lib.rs:134:19 [INFO] [stdout] | [INFO] [stdout] 134 | total_supply: BigInt, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BigInt` in this scope [INFO] [stdout] --> src/lib.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | price: BigInt, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `JsShareToken` in this scope [INFO] [stdout] --> src/lib.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 138 | struct ShareToken { [INFO] [stdout] | ----------------- similarly named struct `ShareToken` defined here [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn handle_token(token: JsShareToken) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 143 - pub fn handle_token(token: JsShareToken) { [INFO] [stdout] 143 + pub fn handle_token(token: ShareToken) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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] ---- src/lib.rs - ts (line 172) stdout ---- [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:173:3 [INFO] [stdout] | [INFO] [stdout] 173 | #[ts] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 172 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:175:7 [INFO] [stdout] | [INFO] [stdout] 175 | #[ts(name = "specialCASING")] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 172 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:178:6 [INFO] [stdout] | [INFO] [stdout] 178 | #[ts(type = "`0x${string}`")] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 172 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | #[ts(optional = false)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 172 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ts` in this scope [INFO] [stdout] --> src/lib.rs:189:7 [INFO] [stdout] | [INFO] [stdout] 189 | #[ts(optional = true)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 172 + use ts_macro::ts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - ts (line 112) [INFO] [stdout] src/lib.rs - ts (line 129) [INFO] [stdout] src/lib.rs - ts (line 172) [INFO] [stdout] src/lib.rs - ts (line 70) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.45s; merged doctests compilation took 0.21s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "597508fe736d003c3b1bedae435a58d40bf1202dd72a7be40d715129a41d9664", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "597508fe736d003c3b1bedae435a58d40bf1202dd72a7be40d715129a41d9664", kill_on_drop: false }` [INFO] [stdout] 597508fe736d003c3b1bedae435a58d40bf1202dd72a7be40d715129a41d9664