[INFO] cloning repository https://github.com/wackazong/concordium-contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wackazong/concordium-contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwackazong%2Fconcordium-contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwackazong%2Fconcordium-contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d2503b59b45731900aa981cd35cb0365f77ffe8 [INFO] testing wackazong/concordium-contract against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwackazong%2Fconcordium-contract" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wackazong/concordium-contract [INFO] finished tweaking git repo https://github.com/wackazong/concordium-contract [INFO] tweaked toml for git repo https://github.com/wackazong/concordium-contract written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wackazong/concordium-contract on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wackazong/concordium-contract 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded concordium-contracts-common-derive v3.0.0 [INFO] [stderr] Downloaded concordium-contracts-common v7.0.0 [INFO] [stderr] Downloaded concordium-std v7.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6451e0ff522cc5f1a5be505dc4cfd112fd3066e19e09c759d0dc3012ec2c614a [INFO] running `Command { std: "docker" "start" "-a" "6451e0ff522cc5f1a5be505dc4cfd112fd3066e19e09c759d0dc3012ec2c614a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6451e0ff522cc5f1a5be505dc4cfd112fd3066e19e09c759d0dc3012ec2c614a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6451e0ff522cc5f1a5be505dc4cfd112fd3066e19e09c759d0dc3012ec2c614a", kill_on_drop: false }` [INFO] [stdout] 6451e0ff522cc5f1a5be505dc4cfd112fd3066e19e09c759d0dc3012ec2c614a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1aab7b70150cb3bfa016c2b139f5da1c1935a376399a073a9bdfe9fb7fd39166 [INFO] running `Command { std: "docker" "start" "-a" "1aab7b70150cb3bfa016c2b139f5da1c1935a376399a073a9bdfe9fb7fd39166", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.64 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.10 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling concordium-contracts-common-derive v3.0.0 [INFO] [stderr] Compiling concordium-contracts-common v7.0.0 [INFO] [stderr] Compiling concordium-std v7.0.0 [INFO] [stderr] Compiling concordium-contract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing local variable `collection` [INFO] [stdout] --> src/lib.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | let iter = collection.iter(); [INFO] [stdout] | ---------- `collection` is borrowed here [INFO] [stdout] 24 | let result = iter.map(|(_,value)|value.deref().clone()); [INFO] [stdout] 25 | Box::new(result) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `concordium-contract` (lib) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "1aab7b70150cb3bfa016c2b139f5da1c1935a376399a073a9bdfe9fb7fd39166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1aab7b70150cb3bfa016c2b139f5da1c1935a376399a073a9bdfe9fb7fd39166", kill_on_drop: false }` [INFO] [stdout] 1aab7b70150cb3bfa016c2b139f5da1c1935a376399a073a9bdfe9fb7fd39166