[INFO] cloning repository https://github.com/super999christ/RustExchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/super999christ/RustExchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuper999christ%2FRustExchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuper999christ%2FRustExchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd9c769790b23dbf0b09ab74ec9a3844a9c097c7 [INFO] checking super999christ/RustExchange against master#c5af0610196bc39c44e54f1e08bd9149bdc66929 for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuper999christ%2FRustExchange" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/super999christ/RustExchange on toolchain c5af0610196bc39c44e54f1e08bd9149bdc66929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c5af0610196bc39c44e54f1e08bd9149bdc66929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/super999christ/RustExchange [INFO] finished tweaking git repo https://github.com/super999christ/RustExchange [INFO] tweaked toml for git repo https://github.com/super999christ/RustExchange written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/super999christ/RustExchange 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" "+c5af0610196bc39c44e54f1e08bd9149bdc66929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking super999christ/RustExchange against try#a832c07a2bcc7587230eb0706f83d1d602ae5c2b for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuper999christ%2FRustExchange" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/super999christ/RustExchange on toolchain a832c07a2bcc7587230eb0706f83d1d602ae5c2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/super999christ/RustExchange [INFO] finished tweaking git repo https://github.com/super999christ/RustExchange [INFO] tweaked toml for git repo https://github.com/super999christ/RustExchange written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/super999christ/RustExchange 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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking super999christ/RustExchange against try#a832c07a2bcc7587230eb0706f83d1d602ae5c2b for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuper999christ%2FRustExchange" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/super999christ/RustExchange on toolchain a832c07a2bcc7587230eb0706f83d1d602ae5c2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/super999christ/RustExchange [INFO] finished tweaking git repo https://github.com/super999christ/RustExchange [INFO] tweaked toml for git repo https://github.com/super999christ/RustExchange written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/super999christ/RustExchange 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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b63e46fef24dad72c6f347aeaf742399d885201f5d2a8cb3234cc42e8902699 [INFO] running `Command { std: "docker" "start" "-a" "1b63e46fef24dad72c6f347aeaf742399d885201f5d2a8cb3234cc42e8902699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b63e46fef24dad72c6f347aeaf742399d885201f5d2a8cb3234cc42e8902699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b63e46fef24dad72c6f347aeaf742399d885201f5d2a8cb3234cc42e8902699", kill_on_drop: false }` [INFO] [stdout] 1b63e46fef24dad72c6f347aeaf742399d885201f5d2a8cb3234cc42e8902699 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1137e0f3df406377e68da31553131a04204a81256c17377ef7059084c2e9577f [INFO] running `Command { std: "docker" "start" "-a" "1137e0f3df406377e68da31553131a04204a81256c17377ef7059084c2e9577f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking bitvec v0.20.4 [INFO] [stderr] Checking byte-slice-cast v1.2.1 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking signature v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Checking uint v0.9.3 [INFO] [stderr] Checking ed25519 v1.5.2 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Compiling parity-secp256k1 v0.7.0 [INFO] [stderr] Compiling reed-solomon-erasure v4.0.2 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking c2-chacha v0.3.3 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking keccak v0.1.2 [INFO] [stderr] Compiling easy-ext v0.2.9 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Checking bytesize v1.1.0 [INFO] [stderr] Checking sha3 v0.10.1 [INFO] [stderr] Checking ripemd v0.1.1 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking near-sys v0.2.0 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling strum_macros v0.24.0 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling near-sdk-macros v4.0.0 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling near-rpc-error-core v0.13.0 [INFO] [stderr] Compiling near-rpc-error-macro v0.13.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Checking parity-scale-codec v2.3.1 [INFO] [stderr] Checking near-account-id v0.13.0 [INFO] [stderr] Checking near-vm-errors v0.13.0 [INFO] [stderr] Checking near-primitives-core v0.13.0 [INFO] [stderr] Checking impl-codec v0.5.1 [INFO] [stderr] Checking primitive-types v0.10.1 [INFO] [stderr] Checking near-crypto v0.13.0 [INFO] [stderr] Checking near-primitives v0.13.0 [INFO] [stderr] Checking near-vm-logic v0.13.0 [INFO] [stderr] Checking near-sdk v4.0.0 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `near_sdk::setup_alloc`: Allocator is already initialized with the default `wee_alloc` feature set. Please make sure you don't disable default features on the SDK or set the global allocator manually. [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | near_sdk::setup_alloc!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `near_sdk::setup_alloc`: Allocator is already initialized with the default `wee_alloc` feature set. Please make sure you don't disable default features on the SDK or set the global allocator manually. [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | near_sdk::setup_alloc!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `near_sdk::MockedBlockchain` [INFO] [stdout] --> src/lib.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | use near_sdk::MockedBlockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | env::log("Make sure you don't overflow, my friend.".as_bytes()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | env::log(log_message.as_bytes()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | env::log(log_message.as_bytes()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | env::log(b"Reset counter to zero"); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | env::log("Make sure you don't overflow, my friend.".as_bytes()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | env::log(log_message.as_bytes()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | env::log(log_message.as_bytes()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `near_sdk::env::log`: Use env::log_str for logging messages. [INFO] [stdout] --> src/lib.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | env::log(b"Reset counter to zero"); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `submissionsAllowed`, `tradingAllowed`, and `askFees` are never read [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Platform { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 18 | submissionsAllowed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | tradingAllowed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | askFees: [types::Fee], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConstructorParams` is never constructed [INFO] [stdout] --> src/types.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ConstructorParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Resource` is never constructed [INFO] [stdout] --> src/types.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Resource { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceAsk` is never constructed [INFO] [stdout] --> src/types.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ResourceAsk { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceBid` is never constructed [INFO] [stdout] --> src/types.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct ResourceBid { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IncomingTradePayment` is never constructed [INFO] [stdout] --> src/types.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct IncomingTradePayment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OutgoingPayment` is never constructed [INFO] [stdout] --> src/types.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct OutgoingPayment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `percentage`, `amount`, `fee_type`, and `cumulative` are never read [INFO] [stdout] --> src/types.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Fee { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 78 | id: u16, [INFO] [stdout] | ^^ [INFO] [stdout] 79 | percentage: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 80 | amount: u128, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 81 | fee_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 82 | cumulative: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarginFee` is never constructed [INFO] [stdout] --> src/types.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct MarginFee { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TradeOffer` is never constructed [INFO] [stdout] --> src/types.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct TradeOffer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `submissionsAllowed` should have a snake case name [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | submissionsAllowed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `submissions_allowed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `tradingAllowed` should have a snake case name [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | tradingAllowed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `trading_allowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `askFees` should have a snake case name [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | askFees: [types::Fee], [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ask_fees` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:114:33 [INFO] [stdout] | [INFO] [stdout] 114 | current_account_id: "alice.testnet".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AccountId`, found `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:115:32 [INFO] [stdout] | [INFO] [stdout] 115 | signer_account_id: "robert.testnet".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AccountId`, found `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | signer_account_pk: vec![0, 1, 2], [INFO] [stdout] | ^^^^^^^^^^^^^ expected `PublicKey`, found `Vec<{integer}>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `PublicKey` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:117:37 [INFO] [stdout] | [INFO] [stdout] 117 | predecessor_account_id: "jane.testnet".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AccountId`, found `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 125 | prepaid_gas: 10u64.pow(18), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `Gas`, found `u64` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `near_sdk::Gas` [INFO] [stdout] | [INFO] [stdout] 125 | prepaid_gas: near_sdk::Gas(10u64.pow(18)), [INFO] [stdout] | ++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:126:26 [INFO] [stdout] | [INFO] [stdout] 126 | random_seed: vec![0, 1, 2], [INFO] [stdout] | ^^^^^^^^^^^^^ expected `[u8; 32]`, found `Vec<{integer}>` [INFO] [stdout] | [INFO] [stdout] = note: expected array `[u8; 32]` [INFO] [stdout] found struct `Vec<{integer}>` [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `VMContext` has no field named `is_view` [INFO] [stdout] --> src/lib.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | is_view, [INFO] [stdout] | ^^^^^^^ `VMContext` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `view_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0560. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust` (lib test) due to 8 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1137e0f3df406377e68da31553131a04204a81256c17377ef7059084c2e9577f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1137e0f3df406377e68da31553131a04204a81256c17377ef7059084c2e9577f", kill_on_drop: false }` [INFO] [stdout] 1137e0f3df406377e68da31553131a04204a81256c17377ef7059084c2e9577f