[INFO] fetching crate near-ledger 0.1.2... [INFO] testing near-ledger-0.1.2 against master#432e145bd5a974c5b6f4dd9b352891bd7502b69d for pr-87041 [INFO] extracting crate near-ledger 0.1.2 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate near-ledger 0.1.2 on toolchain 432e145bd5a974c5b6f4dd9b352891bd7502b69d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate near-ledger 0.1.2 [INFO] finished tweaking crates.io crate near-ledger 0.1.2 [INFO] tweaked toml for crates.io crate near-ledger 0.1.2 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 15cae168cce7e3b0c184b366027b4ab9b7071aa9248c4c5809061eceb6694809 [INFO] running `Command { std: "docker" "start" "-a" "15cae168cce7e3b0c184b366027b4ab9b7071aa9248c4c5809061eceb6694809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15cae168cce7e3b0c184b366027b4ab9b7071aa9248c4c5809061eceb6694809", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15cae168cce7e3b0c184b366027b4ab9b7071aa9248c4c5809061eceb6694809", kill_on_drop: false }` [INFO] [stdout] 15cae168cce7e3b0c184b366027b4ab9b7071aa9248c4c5809061eceb6694809 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 95221a1dd0852084ceaefa686dd43ec4a7ecca6bb5c662615131d078c9639f99 [INFO] running `Command { std: "docker" "start" "-a" "95221a1dd0852084ceaefa686dd43ec4a7ecca6bb5c662615131d078c9639f99", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling signature v1.3.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ledger-apdu v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling hidapi v1.2.6 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling ed25519 v1.1.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Compiling zeroize_derive v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling trait-async v0.1.24 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling curve25519-dalek v3.1.0 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling ledger-transport-hid v0.8.0 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling ledger-transport v0.8.0 [INFO] [stderr] Compiling slip10 v0.4.3 [INFO] [stderr] Compiling near-ledger v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 49.71s [INFO] running `Command { std: "docker" "inspect" "95221a1dd0852084ceaefa686dd43ec4a7ecca6bb5c662615131d078c9639f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95221a1dd0852084ceaefa686dd43ec4a7ecca6bb5c662615131d078c9639f99", kill_on_drop: false }` [INFO] [stdout] 95221a1dd0852084ceaefa686dd43ec4a7ecca6bb5c662615131d078c9639f99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb6bc9ae83baf1ef7df5e8d6dac1ea2ff8ceae4f2c6d15f0f8d9b2ee3ffa68d0 [INFO] running `Command { std: "docker" "start" "-a" "cb6bc9ae83baf1ef7df5e8d6dac1ea2ff8ceae4f2c6d15f0f8d9b2ee3ffa68d0", kill_on_drop: false }` [INFO] [stderr] Compiling near-ledger v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "cb6bc9ae83baf1ef7df5e8d6dac1ea2ff8ceae4f2c6d15f0f8d9b2ee3ffa68d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb6bc9ae83baf1ef7df5e8d6dac1ea2ff8ceae4f2c6d15f0f8d9b2ee3ffa68d0", kill_on_drop: false }` [INFO] [stdout] cb6bc9ae83baf1ef7df5e8d6dac1ea2ff8ceae4f2c6d15f0f8d9b2ee3ffa68d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 20854b8704d79348d8cc762c50172851e670aba15c292d5a5583a2dfb41740d3 [INFO] running `Command { std: "docker" "start" "-a" "20854b8704d79348d8cc762c50172851e670aba15c292d5a5583a2dfb41740d3", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/near_ledger-2c0907753bae31e5) [INFO] [stdout] [INFO] [stderr] Doc-tests near-ledger [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 - sign_transaction (line 207) ... FAILED [INFO] [stdout] test src/lib.rs - get_public_key (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - get_public_key (line 102) ... FAILED [INFO] [stdout] test src/lib.rs - sign_transaction (line 184) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - sign_transaction (line 207) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `near_crypto` [INFO] [stdout] --> src/lib.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 3 | near_crypto::Signature::from_parts(near_crypto::KeyType::ED25519, &signature) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `near_crypto` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `near_crypto` [INFO] [stdout] --> src/lib.rs:208:14 [INFO] [stdout] | [INFO] [stdout] 3 | near_crypto::Signature::from_parts(near_crypto::KeyType::ED25519, &signature) [INFO] [stdout] | ^^^^^^^^^ not found in `near_crypto` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use ed25519_dalek::Signature; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `signature` in this scope [INFO] [stdout] --> src/lib.rs:208:68 [INFO] [stdout] | [INFO] [stdout] 3 | near_crypto::Signature::from_parts(near_crypto::KeyType::ED25519, &signature) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_public_key (line 123) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `near_crypto` [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 4 | near_crypto::ED25519PublicKey::from( [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `near_crypto` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `near_crypto` [INFO] [stdout] --> src/lib.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 3 | near_crypto::PublicKey::ED25519( [INFO] [stdout] | ^^^^^^^^^ not found in `near_crypto` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use ed25519_dalek::PublicKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `public_key` in this scope [INFO] [stdout] --> src/lib.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 5 | public_key.to_bytes(), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_public_key (line 102) stdout ---- [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found keyword `fn` [INFO] [stdout] --> src/lib.rs:106:6 [INFO] [stdout] | [INFO] [stdout] 7 | asyn fn main() { [INFO] [stdout] | ^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - sign_transaction (line 184) stdout ---- [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found keyword `fn` [INFO] [stdout] --> src/lib.rs:189:6 [INFO] [stdout] | [INFO] [stdout] 8 | asyn fn main() { [INFO] [stdout] | ^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `borsh` [INFO] [stdout] --> src/lib.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 5 | use borsh::BorshSerializer; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `borsh` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - get_public_key (line 102) [INFO] [stdout] src/lib.rs - get_public_key (line 123) [INFO] [stdout] src/lib.rs - sign_transaction (line 184) [INFO] [stdout] src/lib.rs - sign_transaction (line 207) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "20854b8704d79348d8cc762c50172851e670aba15c292d5a5583a2dfb41740d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20854b8704d79348d8cc762c50172851e670aba15c292d5a5583a2dfb41740d3", kill_on_drop: false }` [INFO] [stdout] 20854b8704d79348d8cc762c50172851e670aba15c292d5a5583a2dfb41740d3