[INFO] cloning repository https://github.com/HAPIprotocol/fundraiser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HAPIprotocol/fundraiser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHAPIprotocol%2Ffundraiser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHAPIprotocol%2Ffundraiser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1245816599f8a8018ce8c919ac4297455c962d45 [INFO] checking HAPIprotocol/fundraiser/1245816599f8a8018ce8c919ac4297455c962d45 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHAPIprotocol%2Ffundraiser" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HAPIprotocol/fundraiser on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HAPIprotocol/fundraiser [INFO] finished tweaking git repo https://github.com/HAPIprotocol/fundraiser [INFO] tweaked toml for git repo https://github.com/HAPIprotocol/fundraiser written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HAPIprotocol/fundraiser 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Downloaded near-rpc-error-core v0.1.0 [INFO] [stderr] Downloaded near-rpc-error-macro v0.1.0 [INFO] [stderr] Downloaded near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Downloaded near-sys v0.1.0 [INFO] [stderr] Downloaded near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Downloaded near-sdk v4.0.0-pre.4 [INFO] [stderr] Downloaded near-contract-standards v4.0.0-pre.4 [INFO] [stderr] Downloaded serde v1.0.118 [INFO] [stderr] Downloaded serde_derive v1.0.118 [INFO] [stderr] Downloaded near-sdk-macros v4.0.0-pre.4 [INFO] [stderr] Downloaded near-primitives-core v0.4.0 [INFO] [stderr] Downloaded borsh v0.8.2 [INFO] [stderr] Downloaded syn v1.0.57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3f6ad2ae5bfbe046d2bd123d6e628f36069fe8a2f5f24d90e2bab8ae1a0bd73 [INFO] running `Command { std: "docker" "start" "-a" "c3f6ad2ae5bfbe046d2bd123d6e628f36069fe8a2f5f24d90e2bab8ae1a0bd73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3f6ad2ae5bfbe046d2bd123d6e628f36069fe8a2f5f24d90e2bab8ae1a0bd73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3f6ad2ae5bfbe046d2bd123d6e628f36069fe8a2f5f24d90e2bab8ae1a0bd73", kill_on_drop: false }` [INFO] [stdout] c3f6ad2ae5bfbe046d2bd123d6e628f36069fe8a2f5f24d90e2bab8ae1a0bd73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc19e9503e7d6a7b43fec1b40d1e38b9ee1700e861d34df817dce5151d6d939c [INFO] running `Command { std: "docker" "start" "-a" "fc19e9503e7d6a7b43fec1b40d1e38b9ee1700e861d34df817dce5151d6d939c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Checking generic-array v0.14.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking near-sys v0.1.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking uint v0.9.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling near-sdk-macros v4.0.0-pre.4 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling near-rpc-error-core v0.1.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling near-rpc-error-macro v0.1.0 [INFO] [stderr] Compiling borsh-derive v0.8.2 [INFO] [stderr] Checking borsh v0.8.2 [INFO] [stderr] Checking near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Checking near-primitives-core v0.4.0 [INFO] [stderr] Checking near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Checking near-sdk v4.0.0-pre.4 [INFO] [stderr] Checking near-contract-standards v4.0.0-pre.4 [INFO] [stderr] Checking fundraiser v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `migration_1` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | mod migration_1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `migration_1`, create file "src/migration_1.rs" or "src/migration_1/mod.rs" [INFO] [stdout] = note: if there is a `mod migration_1` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `migration_1` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | mod migration_1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `migration_1`, create file "src/migration_1.rs" or "src/migration_1/mod.rs" [INFO] [stdout] = note: if there is a `mod migration_1` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `SaleInput` has no field named `distribute_supply_amount` [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | distribute_supply_amount: None, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ `SaleInput` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `refund_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `u128` is not an iterator [INFO] [stdout] --> src/lib.rs:426:36 [INFO] [stdout] | [INFO] [stdout] 426 | max_amount: max_amount.map(|a| U128(a)), [INFO] [stdout] | ^^^ `u128` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `u128: Iterator` [INFO] [stdout] which is required by `&mut u128: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_some` found for type `u128` in the current scope [INFO] [stdout] --> src/lib.rs:427:47 [INFO] [stdout] | [INFO] [stdout] 427 | hard_max_amount_limit: max_amount.is_some(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `is_one` with a similar name [INFO] [stdout] | [INFO] [stdout] 427 | hard_max_amount_limit: max_amount.is_one(), [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:441:33 [INFO] [stdout] | [INFO] [stdout] 441 | contract_with_sale_info(Some(10000), 0, 1_000_000_000) [INFO] [stdout] | ----------------------- ^^^^^^^^^^^ expected `u128`, found `Option<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `u128` [INFO] [stdout] found enum `std::option::Option<{integer}>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 393 | fn contract_with_sale_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 394 | max_amount: Balance, [INFO] [stdout] | ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:453:18 [INFO] [stdout] | [INFO] [stdout] 453 | contract.join(); [INFO] [stdout] | ^^^^-- argument #1 of type `std::option::Option` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn join(&mut self, referrer_id: Option) { [INFO] [stdout] | ^^^^ ------------------------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 453 | contract.join(/* std::option::Option */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:480:18 [INFO] [stdout] | [INFO] [stdout] 480 | contract.join(); [INFO] [stdout] | ^^^^-- argument #1 of type `std::option::Option` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn join(&mut self, referrer_id: Option) { [INFO] [stdout] | ^^^^ ------------------------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 480 | contract.join(/* std::option::Option */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:535:18 [INFO] [stdout] | [INFO] [stdout] 535 | contract.join(); [INFO] [stdout] | ^^^^-- argument #1 of type `std::option::Option` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn join(&mut self, referrer_id: Option) { [INFO] [stdout] | ^^^^ ------------------------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 535 | contract.join(/* std::option::Option */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:555:18 [INFO] [stdout] | [INFO] [stdout] 555 | contract.join(); [INFO] [stdout] | ^^^^-- argument #1 of type `std::option::Option` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/lib.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn join(&mut self, referrer_id: Option) { [INFO] [stdout] | ^^^^ ------------------------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 555 | contract.join(/* std::option::Option */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:568:67 [INFO] [stdout] | [INFO] [stdout] 568 | let (mut context, mut contract) = contract_with_sale_info(None, 1_000, 1_000_000); [INFO] [stdout] | ----------------------- ^^^^ expected `u128`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `u128` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 393 | fn contract_with_sale_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 394 | max_amount: Balance, [INFO] [stdout] | ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:576:67 [INFO] [stdout] | [INFO] [stdout] 576 | let (mut context, mut contract) = contract_with_sale_info(None, 1_000, 1_000_000); [INFO] [stdout] | ----------------------- ^^^^ expected `u128`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `u128` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:393:8 [INFO] [stdout] | [INFO] [stdout] 393 | fn contract_with_sale_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 394 | max_amount: Balance, [INFO] [stdout] | ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fundraiser` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0560, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fundraiser` (lib test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "fc19e9503e7d6a7b43fec1b40d1e38b9ee1700e861d34df817dce5151d6d939c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc19e9503e7d6a7b43fec1b40d1e38b9ee1700e861d34df817dce5151d6d939c", kill_on_drop: false }` [INFO] [stdout] fc19e9503e7d6a7b43fec1b40d1e38b9ee1700e861d34df817dce5151d6d939c