[INFO] cloning repository https://github.com/Calvaz/Raen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Calvaz/Raen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCalvaz%2FRaen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCalvaz%2FRaen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 853eb9b4de2c31b538d38afefbf58439f9a54a46 [INFO] testing Calvaz/Raen against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCalvaz%2FRaen" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Calvaz/Raen on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Calvaz/Raen [INFO] finished tweaking git repo https://github.com/Calvaz/Raen [INFO] tweaked toml for git repo https://github.com/Calvaz/Raen written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/Calvaz/Raen already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d40462d7c6256009927360eaeea17cb3d1a2ecc76354c4b69a7f84e1888697fa [INFO] running `Command { std: "docker" "start" "-a" "d40462d7c6256009927360eaeea17cb3d1a2ecc76354c4b69a7f84e1888697fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d40462d7c6256009927360eaeea17cb3d1a2ecc76354c4b69a7f84e1888697fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d40462d7c6256009927360eaeea17cb3d1a2ecc76354c4b69a7f84e1888697fa", kill_on_drop: false }` [INFO] [stdout] d40462d7c6256009927360eaeea17cb3d1a2ecc76354c4b69a7f84e1888697fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 995ed4595d7a313ea26fc62f00135b7516d389e4a8e019bb52843e363d826c26 [INFO] running `Command { std: "docker" "start" "-a" "995ed4595d7a313ea26fc62f00135b7516d389e4a8e019bb52843e363d826c26", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 typenum v1.15.0 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Compiling libc v0.2.114 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling near-runtime-utils v4.0.0-pre.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling near-sdk-core v3.1.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling near-sdk-macros v3.1.0 [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] Compiling borsh v0.8.2 [INFO] [stderr] Compiling near-primitives-core v0.4.0 [INFO] [stderr] Compiling near-vm-errors v4.0.0-pre.1 [INFO] [stderr] Compiling near-vm-logic v4.0.0-pre.1 [INFO] [stderr] Compiling near-sdk v3.1.0 [INFO] [stderr] Compiling GetNear v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/lib.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 52 | const messages: Vector = self.posts.get(&account_id); [INFO] [stdout] | -------------- ^^^^ non-constant value [INFO] [stdout] | | [INFO] [stdout] | help: consider using `let` instead of `const`: `let messages` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/lib.rs:52:59 [INFO] [stdout] | [INFO] [stdout] 52 | const messages: Vector = self.posts.get(&account_id); [INFO] [stdout] | -------------- ^^^^^^^^^^ non-constant value [INFO] [stdout] | | [INFO] [stdout] | help: consider using `let` instead of `const`: `let messages` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0530]: match bindings cannot shadow tuple variants [INFO] [stdout] --> src/lib.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | Some => self.posts.pop(msg), [INFO] [stdout] | ^^^^ cannot be named the same as a tuple variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `timestamp` in this scope [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | timestamp = env::block_timestamp; [INFO] [stdout] | ^^^^^^^^^ a field by this name exists in `Self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_message(message: Message) -> Message { [INFO] [stdout] | ----------- this function doesn't have a `self` parameter [INFO] [stdout] 67 | for msg in self.posts.get(&message) { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_message&self, (message: Message) -> Message { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `env` [INFO] [stdout] --> src/lib.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!(account_id, env) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[near_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `Message` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Serialize` for `&Message` [INFO] [stdout] note: required by a bound in `to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.78/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[near_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `Message` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Serialize` for `&Message` [INFO] [stdout] note: required by a bound in `to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.78/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Message: Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[near_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `Message` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Serialize` for `&Message` [INFO] [stdout] note: required by a bound in `to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.78/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `GetNear` has no field named `tokens` [INFO] [stdout] --> src/lib.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | tokens: 1, [INFO] [stdout] | ^^^^^^ `GetNear` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `posts`, `likes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | self.posts.insert(env::signer_account_id, self.posts.get(env::signer_account_id).push(&message)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `&std::string::String`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::string::String` [INFO] [stdout] found fn item `fn() -> std::string::String {near_sdk::env::signer_account_id}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:46:66 [INFO] [stdout] | [INFO] [stdout] 46 | self.posts.insert(env::signer_account_id, self.posts.get(env::signer_account_id).push(&message)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `&std::string::String`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::string::String` [INFO] [stdout] found fn item `fn() -> std::string::String {near_sdk::env::signer_account_id}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push` found for enum `std::option::Option` in the current scope [INFO] [stdout] --> src/lib.rs:46:90 [INFO] [stdout] | [INFO] [stdout] 46 | self.posts.insert(env::signer_account_id, self.posts.get(env::signer_account_id).push(&message)); [INFO] [stdout] | ^^^^ method not found in `std::option::Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:57:35 [INFO] [stdout] | [INFO] [stdout] 57 | for msg in self.posts.get(&message) { [INFO] [stdout] | ^^^^^^^^ expected struct `std::string::String`, found struct `Message` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::string::String` [INFO] [stdout] found reference `&Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 58 | match &message { [INFO] [stdout] | -------- this expression has type `&Message` [INFO] [stdout] 59 | Some => self.posts.pop(msg), [INFO] [stdout] 60 | None => continue [INFO] [stdout] | ^^^^ expected struct `Message`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Message` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pop` found for struct `UnorderedMap` in the current scope [INFO] [stdout] --> src/lib.rs:59:36 [INFO] [stdout] | [INFO] [stdout] 59 | Some => self.posts.pop(msg), [INFO] [stdout] | ^^^ method not found in `UnorderedMap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get_message(message: Message) -> Message { [INFO] [stdout] | ------- expected `Message` because of return type [INFO] [stdout] 67 | / for msg in self.posts.get(&message) { [INFO] [stdout] 68 | | [INFO] [stdout] 69 | | } [INFO] [stdout] | |_________^ expected struct `Message`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0423, E0424, E0425, E0435, E0530, E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `GetNear` due to 18 previous errors [INFO] running `Command { std: "docker" "inspect" "995ed4595d7a313ea26fc62f00135b7516d389e4a8e019bb52843e363d826c26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "995ed4595d7a313ea26fc62f00135b7516d389e4a8e019bb52843e363d826c26", kill_on_drop: false }` [INFO] [stdout] 995ed4595d7a313ea26fc62f00135b7516d389e4a8e019bb52843e363d826c26