[INFO] cloning repository https://github.com/alex179ohm/warp-test-ws [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alex179ohm/warp-test-ws" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falex179ohm%2Fwarp-test-ws", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falex179ohm%2Fwarp-test-ws'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b14b2ca71166f576b0b71d178d7ee331e89b0c4e [INFO] testing alex179ohm/warp-test-ws against 1.55.0 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falex179ohm%2Fwarp-test-ws" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alex179ohm/warp-test-ws on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alex179ohm/warp-test-ws [INFO] finished tweaking git repo https://github.com/alex179ohm/warp-test-ws [INFO] tweaked toml for git repo https://github.com/alex179ohm/warp-test-ws written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/alex179ohm/warp-test-ws already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.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-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8794cacb64aa5dd4b4ab7f9b56b37f4aeb57311b5a8b327a5565cfbfe57e9a5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a8794cacb64aa5dd4b4ab7f9b56b37f4aeb57311b5a8b327a5565cfbfe57e9a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8794cacb64aa5dd4b4ab7f9b56b37f4aeb57311b5a8b327a5565cfbfe57e9a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8794cacb64aa5dd4b4ab7f9b56b37f4aeb57311b5a8b327a5565cfbfe57e9a5", kill_on_drop: false }` [INFO] [stdout] a8794cacb64aa5dd4b4ab7f9b56b37f4aeb57311b5a8b327a5565cfbfe57e9a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40765ed56238c86bdaf055c28f6af53bc07fa76e0a9cc951431cfb23c7c0a131 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "40765ed56238c86bdaf055c28f6af53bc07fa76e0a9cc951431cfb23c7c0a131", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.14 [INFO] [stderr] Compiling serde v1.0.105 [INFO] [stderr] Compiling siphasher v0.3.2 [INFO] [stderr] Compiling futures-timer v2.0.2 [INFO] [stderr] Compiling lock_api v0.3.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.7.0 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling sha2 v0.8.1 [INFO] [stderr] Compiling headers v0.3.2 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling parking_lot v0.10.0 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling postgres-protocol v0.5.1 [INFO] [stderr] Compiling tungstenite v0.10.1 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling multipart v0.16.1 [INFO] [stderr] Compiling postgres-types v0.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling async-trait v0.1.26 [INFO] [stderr] Compiling tokio v0.2.13 [INFO] [stderr] Compiling futures-util v0.3.4 [INFO] [stderr] Compiling pin-project v0.4.8 [INFO] [stderr] Compiling futures-executor v0.3.4 [INFO] [stderr] Compiling futures v0.3.4 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.10.1 [INFO] [stderr] Compiling mobc v0.5.7 [INFO] [stderr] Compiling tokio-postgres v0.5.3 [INFO] [stderr] Compiling h2 v0.2.2 [INFO] [stderr] Compiling mobc-postgres v0.5.0 [INFO] [stderr] Compiling hyper v0.13.4 [INFO] [stderr] Compiling warp v0.2.2 [INFO] [stderr] Compiling warp-websocket-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/main.rs:103:40 [INFO] [stdout] | [INFO] [stdout] 103 | let db_client = warp::any().map(|| pool.clone().get_conn()); [INFO] [stdout] | ------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | temporary value created here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `pool`, which is owned by the current function [INFO] [stdout] --> src/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | let db_client = warp::any().map(|| pool.clone().get_conn()); [INFO] [stdout] | ^^ ---- `pool` is borrowed here [INFO] [stdout] | | [INFO] [stdout] | may outlive borrowed value `pool` [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let db_client = warp::any().map(|| pool.clone().get_conn()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to force the closure to take ownership of `pool` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 103 | let db_client = warp::any().map(move || pool.clone().get_conn()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `warp-websocket-test` due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "40765ed56238c86bdaf055c28f6af53bc07fa76e0a9cc951431cfb23c7c0a131", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40765ed56238c86bdaf055c28f6af53bc07fa76e0a9cc951431cfb23c7c0a131", kill_on_drop: false }` [INFO] [stdout] 40765ed56238c86bdaf055c28f6af53bc07fa76e0a9cc951431cfb23c7c0a131