[INFO] cloning repository https://github.com/MaartenGDev/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MaartenGDev/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenGDev%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenGDev%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a8b0e6e91c86100a9181981de5cef7c776c4bd8 [INFO] checking MaartenGDev/learning-rust against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMaartenGDev%2Flearning-rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MaartenGDev/learning-rust on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MaartenGDev/learning-rust [INFO] finished tweaking git repo https://github.com/MaartenGDev/learning-rust [INFO] tweaked toml for git repo https://github.com/MaartenGDev/learning-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MaartenGDev/learning-rust 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9ee35829e31eed3fe7fc3d6c29f31546c2b9bcd1ee2ad9840d061e6728452cf [INFO] running `Command { std: "docker" "start" "-a" "c9ee35829e31eed3fe7fc3d6c29f31546c2b9bcd1ee2ad9840d061e6728452cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9ee35829e31eed3fe7fc3d6c29f31546c2b9bcd1ee2ad9840d061e6728452cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9ee35829e31eed3fe7fc3d6c29f31546c2b9bcd1ee2ad9840d061e6728452cf", kill_on_drop: false }` [INFO] [stdout] c9ee35829e31eed3fe7fc3d6c29f31546c2b9bcd1ee2ad9840d061e6728452cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bd5dcd975ab793faa347f56d3966139cc6a2a4ce5323fa2bde13eb464b188aa [INFO] running `Command { std: "docker" "start" "-a" "5bd5dcd975ab793faa347f56d3966139cc6a2a4ce5323fa2bde13eb464b188aa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Checking tokio-sync v0.1.6 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking tokio-executor v0.1.8 [INFO] [stderr] Compiling proc-macro2 v1.0.3 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking tokio-timer v0.2.11 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking http v0.1.18 [INFO] [stderr] Checking lock_api v0.3.1 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling serde v1.0.100 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Checking parking_lot_core v0.4.0 [INFO] [stderr] Checking tokio-threadpool v0.1.15 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Checking tokio-fs v0.1.6 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-uds v0.2.5 [INFO] [stderr] Checking tokio-udp v0.1.5 [INFO] [stderr] Checking lock_api v0.2.0 [INFO] [stderr] Compiling hyper v0.12.34 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking indexmap v1.2.0 [INFO] [stderr] Checking ascii v0.9.3 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking combine v3.8.1 [INFO] [stderr] Checking scheduled-thread-pool v0.2.2 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking dtoa v0.4.4 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking r2d2 v0.8.5 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking chrono v0.4.9 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking tokio-core v0.1.17 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking mime v0.3.14 [INFO] [stderr] Compiling serde_derive v1.0.100 [INFO] [stderr] Checking hyperlocal v0.6.0 [INFO] [stderr] Checking redis v0.12.0 [INFO] [stderr] Checking r2d2_redis v0.11.0 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking serde-aux v0.6.1 [INFO] [stderr] Checking appproject v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/docker_client.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn start_container(created_container: &CreatedContainer) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 40 | post_json::(format!("/containers/{}/start", created_container.id).as_str(), "".to_owned()).map(|option| { [INFO] [stdout] | ------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] ... [INFO] [stdout] 45 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/docker_client.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn kill_container(container: &Container) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 48 | post_json::(format!("/containers/{}/stop", container.id).as_str(), "".to_owned()).map(|option| { [INFO] [stdout] | ------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] ... [INFO] [stdout] 53 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `created_container` [INFO] [stdout] --> src/docker_service.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | start_container(&created_container).map(|_| created_container) [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `created_container` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `created_container` because it is borrowed [INFO] [stdout] --> src/docker_service.rs:38:53 [INFO] [stdout] | [INFO] [stdout] 37 | .map(|created_container| { [INFO] [stdout] | ------------------ return type of closure `futures::Map, [closure@src/docker_service.rs:38:53: 38:56]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `created_container` declared here [INFO] [stdout] 38 | start_container(&created_container).map(|_| created_container) [INFO] [stdout] | ----------------------------------------^^^------------------- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | move occurs due to use in closure [INFO] [stdout] | | | move out of `created_container` occurs here [INFO] [stdout] | | borrow of `created_container` occurs here [INFO] [stdout] | returning this value requires that `created_container` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/docker_client.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn start_container(created_container: &CreatedContainer) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 40 | post_json::(format!("/containers/{}/start", created_container.id).as_str(), "".to_owned()).map(|option| { [INFO] [stdout] | ------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] ... [INFO] [stdout] 45 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/docker_client.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn kill_container(container: &Container) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 48 | post_json::(format!("/containers/{}/stop", container.id).as_str(), "".to_owned()).map(|option| { [INFO] [stdout] | ------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] ... [INFO] [stdout] 53 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `created_container` [INFO] [stdout] --> src/docker_service.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | start_container(&created_container).map(|_| created_container) [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `created_container` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `created_container` because it is borrowed [INFO] [stdout] --> src/docker_service.rs:38:53 [INFO] [stdout] | [INFO] [stdout] 37 | .map(|created_container| { [INFO] [stdout] | ------------------ return type of closure `futures::Map, [closure@src/docker_service.rs:38:53: 38:56]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `created_container` declared here [INFO] [stdout] 38 | start_container(&created_container).map(|_| created_container) [INFO] [stdout] | ----------------------------------------^^^------------------- [INFO] [stdout] | | | | | [INFO] [stdout] | | | | move occurs due to use in closure [INFO] [stdout] | | | move out of `created_container` occurs here [INFO] [stdout] | | borrow of `created_container` occurs here [INFO] [stdout] | returning this value requires that `created_container` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `appproject` (bin "appproject" test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `appproject` (bin "appproject") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "5bd5dcd975ab793faa347f56d3966139cc6a2a4ce5323fa2bde13eb464b188aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bd5dcd975ab793faa347f56d3966139cc6a2a4ce5323fa2bde13eb464b188aa", kill_on_drop: false }` [INFO] [stdout] 5bd5dcd975ab793faa347f56d3966139cc6a2a4ce5323fa2bde13eb464b188aa