[INFO] cloning repository https://github.com/havelkahonza/lowfat-strupy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/havelkahonza/lowfat-strupy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhavelkahonza%2Flowfat-strupy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhavelkahonza%2Flowfat-strupy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a156ecbca857d748e4c0611141304eeb37a379ee [INFO] testing havelkahonza/lowfat-strupy against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhavelkahonza%2Flowfat-strupy" "/workspace/builds/worker-22/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-22/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/havelkahonza/lowfat-strupy on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/havelkahonza/lowfat-strupy [INFO] finished tweaking git repo https://github.com/havelkahonza/lowfat-strupy [INFO] tweaked toml for git repo https://github.com/havelkahonza/lowfat-strupy written to /workspace/builds/worker-22/source/Cargo.toml [INFO] crate git repo https://github.com/havelkahonza/lowfat-strupy already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a02c4057e60715836a2446e8e1a3d67670eac814035059f4084664a80df0966 [INFO] running `Command { std: "docker" "start" "-a" "7a02c4057e60715836a2446e8e1a3d67670eac814035059f4084664a80df0966", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a02c4057e60715836a2446e8e1a3d67670eac814035059f4084664a80df0966", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a02c4057e60715836a2446e8e1a3d67670eac814035059f4084664a80df0966", kill_on_drop: false }` [INFO] [stdout] 7a02c4057e60715836a2446e8e1a3d67670eac814035059f4084664a80df0966 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73379f374bfa3a3006580fe1c606bc7792fe099c379ac3daed381c1cd6583bc1 [INFO] running `Command { std: "docker" "start" "-a" "73379f374bfa3a3006580fe1c606bc7792fe099c379ac3daed381c1cd6583bc1", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-core v0.3.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling futures-sink v0.3.4 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling arc-swap v0.4.5 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling futures-io v0.3.4 [INFO] [stderr] Compiling futures-task v0.3.4 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling pin-project-lite v0.1.4 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling once_cell v1.3.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling futures-channel v0.3.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling tokio v0.2.16 [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.3.1 [INFO] [stderr] Compiling h2 v0.2.4 [INFO] [stderr] Compiling hyper v0.13.4 [INFO] [stderr] Compiling lowfat-strupy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/main.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Method`, `Request`, `Response`, `StatusCode` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::{Body, Method, Request, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::body::Bytes` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hyper::body::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/router.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/router.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{RwLock, Arc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Server` [INFO] [stdout] --> src/router.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::{Body, Method, Request, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::body::Bytes` [INFO] [stdout] --> src/router.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hyper::body::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `make_service_fn`, `service_fn` [INFO] [stdout] --> src/router.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use hyper::service::{make_service_fn, service_fn}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/router.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/router.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `router`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/main.rs:64:70 [INFO] [stdout] | [INFO] [stdout] 62 | let router = router.clone(); [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] 63 | debug!("New connection has been started"); [INFO] [stdout] 64 | Ok::<_, Infallible>(service_fn(move |req| async move { [INFO] [stdout] | _________________________________________________-_____________________^ [INFO] [stdout] | | ________________________________________________| [INFO] [stdout] | || [INFO] [stdout] 65 | || let router = router.clone(); [INFO] [stdout] | || ------ [INFO] [stdout] | || | [INFO] [stdout] | || variable moved due to use in generator [INFO] [stdout] | || move occurs because `router` has type `Arc`, which does not implement the `Copy` trait [INFO] [stdout] 66 | || Ok::<_, Infallible>(router.route(req).await) [INFO] [stdout] 67 | || })) [INFO] [stdout] | || ^ [INFO] [stdout] | ||_________________| [INFO] [stdout] | |__________________captured by this `FnMut` closure [INFO] [stdout] | move out of `router` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `router`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/main.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 56 | let router = Arc::new(Router::new(payload)); [INFO] [stdout] | ------ captured outer variable [INFO] [stdout] ... [INFO] [stdout] 61 | .serve(make_service_fn(move |_| async move { [INFO] [stdout] | _____________________________________-___________________^ [INFO] [stdout] | | ____________________________________| [INFO] [stdout] | || [INFO] [stdout] 62 | || let router = router.clone(); [INFO] [stdout] | || ------ [INFO] [stdout] | || | [INFO] [stdout] | || variable moved due to use in generator [INFO] [stdout] | || move occurs because `router` has type `Arc`, which does not implement the `Copy` trait [INFO] [stdout] 63 | || debug!("New connection has been started"); [INFO] [stdout] 64 | || Ok::<_, Infallible>(service_fn(move |req| async move { [INFO] [stdout] ... || [INFO] [stdout] 67 | || })) [INFO] [stdout] 68 | || })); [INFO] [stdout] | || ^ [INFO] [stdout] | ||_____________| [INFO] [stdout] | |______________captured by this `FnMut` closure [INFO] [stdout] | move out of `router` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lowfat-strupy` due to 3 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "73379f374bfa3a3006580fe1c606bc7792fe099c379ac3daed381c1cd6583bc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73379f374bfa3a3006580fe1c606bc7792fe099c379ac3daed381c1cd6583bc1", kill_on_drop: false }` [INFO] [stdout] 73379f374bfa3a3006580fe1c606bc7792fe099c379ac3daed381c1cd6583bc1