[INFO] cloning repository https://github.com/kulame/http-proxy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kulame/http-proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkulame%2Fhttp-proxy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkulame%2Fhttp-proxy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 75ddcbf1fc53e3d154c152e89fb341f89a001e40 [INFO] checking kulame/http-proxy/75ddcbf1fc53e3d154c152e89fb341f89a001e40 against master#733108b6d4acaa93fe26ae281ea305aacd6aac4e for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkulame%2Fhttp-proxy" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kulame/http-proxy [INFO] finished tweaking git repo https://github.com/kulame/http-proxy [INFO] tweaked toml for git repo https://github.com/kulame/http-proxy written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kulame/http-proxy on toolchain 733108b6d4acaa93fe26ae281ea305aacd6aac4e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kulame/http-proxy 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" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sea-query-derive v0.2.0 [INFO] [stderr] Downloaded serde_derive v1.0.142 [INFO] [stderr] Downloaded ouroboros v0.15.2 [INFO] [stderr] Downloaded sea-query-driver v0.2.0 [INFO] [stderr] Downloaded pin-project-internal v1.0.11 [INFO] [stderr] Downloaded sea-orm-macros v0.9.1 [INFO] [stderr] Downloaded ouroboros_macro v0.15.2 [INFO] [stderr] Downloaded postgres-protocol v0.6.4 [INFO] [stderr] Downloaded axum v0.5.13 [INFO] [stderr] Downloaded serde v1.0.142 [INFO] [stderr] Downloaded pin-project v1.0.11 [INFO] [stderr] Downloaded chrono v0.4.20 [INFO] [stderr] Downloaded postgres-types v0.2.3 [INFO] [stderr] Downloaded sea-query v0.26.2 [INFO] [stderr] Downloaded sea-orm v0.9.1 [INFO] [stderr] Downloaded libc v0.2.127 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f5b398c7e6c2b5881251a76afdfa0929c6634db9dcc61a7e712709110e2a549 [INFO] running `Command { std: "docker" "start" "-a" "0f5b398c7e6c2b5881251a76afdfa0929c6634db9dcc61a7e712709110e2a549", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f5b398c7e6c2b5881251a76afdfa0929c6634db9dcc61a7e712709110e2a549", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f5b398c7e6c2b5881251a76afdfa0929c6634db9dcc61a7e712709110e2a549", kill_on_drop: false }` [INFO] [stdout] 0f5b398c7e6c2b5881251a76afdfa0929c6634db9dcc61a7e712709110e2a549 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+733108b6d4acaa93fe26ae281ea305aacd6aac4e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 479065c118262a7addf466bd3e5024bfc490c23118cc4d7543b90a2d8f9ada87 [INFO] running `Command { std: "docker" "start" "-a" "479065c118262a7addf466bd3e5024bfc490c23118cc4d7543b90a2d8f9ada87", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.142 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling serde v1.0.142 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Compiling rustversion v1.0.9 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling pin-project-internal v1.0.11 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling rust_decimal v1.26.1 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Checking pin-project v1.0.11 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling ouroboros_macro v0.15.2 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling sea-query-derive v0.2.0 [INFO] [stderr] Compiling sea-strum_macros v0.23.0 [INFO] [stderr] Checking time v0.3.12 [INFO] [stderr] Compiling bae v0.1.7 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking axum-core v0.2.7 [INFO] [stderr] Compiling sea-orm-macros v0.9.1 [INFO] [stderr] Checking ouroboros v0.15.2 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking async-stream v0.3.3 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking sea-strum v0.23.0 [INFO] [stderr] Checking matchit v0.5.0 [INFO] [stderr] Checking sync_wrapper v0.1.1 [INFO] [stderr] Checking tracing-subscriber v0.3.15 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking tower-http v0.3.4 [INFO] [stderr] Checking chrono v0.4.20 [INFO] [stderr] Checking uuid v1.1.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking sea-query v0.26.2 [INFO] [stderr] Checking sea-orm v0.9.1 [INFO] [stderr] Checking axum v0.5.13 [INFO] [stderr] Checking example-http-proxy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce` [INFO] [stdout] --> src/main.rs:47:37 [INFO] [stdout] | [INFO] [stdout] 47 | let service = tower::service_fn(move |req: Request| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnOnce`, not `FnMut` [INFO] [stdout] ... [INFO] [stdout] 51 | proxy(req,conn).await [INFO] [stdout] | ---- closure is `FnOnce` because it moves the variable `conn` out of its environment [INFO] [stdout] ... [INFO] [stdout] 63 | .serve(Shared::new(service)) [INFO] [stdout] | ----- the requirement to implement `FnMut` derives from here [INFO] [stdout] | [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `Service>` [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `hyper::service::http::HttpService` [INFO] [stdout] = note: required for `Shared>` to implement `hyper::service::make::MakeServiceRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce` [INFO] [stdout] --> src/main.rs:47:37 [INFO] [stdout] | [INFO] [stdout] 47 | let service = tower::service_fn(move |req: Request| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnOnce`, not `FnMut` [INFO] [stdout] ... [INFO] [stdout] 51 | proxy(req,conn).await [INFO] [stdout] | ---- closure is `FnOnce` because it moves the variable `conn` out of its environment [INFO] [stdout] ... [INFO] [stdout] 63 | .serve(Shared::new(service)) [INFO] [stdout] | ----- the requirement to implement `FnMut` derives from here [INFO] [stdout] | [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `Service>` [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `hyper::service::http::HttpService` [INFO] [stdout] = note: required for `Shared>` to implement `hyper::service::make::MakeServiceRef` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Exec: NewSvcExec, ..., ..., ...>` is not satisfied [INFO] [stdout] --> src/main.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | .await [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] = help: the trait `hyper::common::exec::NewSvcExec>, ServiceFn<{closure@src/main.rs:47:37: 47:62}>, hyper::common::exec::Exec, server::server::NoopWatcher>` is not implemented for `hyper::common::exec::Exec` [INFO] [stdout] help: the trait `hyper::common::exec::NewSvcExec` is implemented for `hyper::common::exec::Exec` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-0.14.20/src/common/exec.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / impl NewSvcExec for Exec [INFO] [stdout] 83 | | where [INFO] [stdout] 84 | | NewSvcTask: Future + Send + 'static, [INFO] [stdout] 85 | | S: HttpService, [INFO] [stdout] 86 | | W: Watcher, [INFO] [stdout] | |________________________^ [INFO] [stdout] = note: required for `Server>>` to implement `Future` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/example_http_proxy-5f16b410d3c25cda.long-type-16922537931952010650.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce` [INFO] [stdout] --> src/main.rs:47:37 [INFO] [stdout] | [INFO] [stdout] 47 | let service = tower::service_fn(move |req: Request| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnOnce`, not `FnMut` [INFO] [stdout] ... [INFO] [stdout] 51 | proxy(req,conn).await [INFO] [stdout] | ---- closure is `FnOnce` because it moves the variable `conn` out of its environment [INFO] [stdout] ... [INFO] [stdout] 64 | .await [INFO] [stdout] | ----- the requirement to implement `FnMut` derives from here [INFO] [stdout] | [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `Service>` [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `hyper::service::http::HttpService` [INFO] [stdout] = note: required for `Shared>` to implement `hyper::service::make::MakeServiceRef` [INFO] [stdout] = note: required for `Server>>` to implement `Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Exec: NewSvcExec, ..., ..., ...>` is not satisfied [INFO] [stdout] --> src/main.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | .await [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] = help: the trait `hyper::common::exec::NewSvcExec>, ServiceFn<{closure@src/main.rs:47:37: 47:62}>, hyper::common::exec::Exec, server::server::NoopWatcher>` is not implemented for `hyper::common::exec::Exec` [INFO] [stdout] help: the trait `hyper::common::exec::NewSvcExec` is implemented for `hyper::common::exec::Exec` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-0.14.20/src/common/exec.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / impl NewSvcExec for Exec [INFO] [stdout] 83 | | where [INFO] [stdout] 84 | | NewSvcTask: Future + Send + 'static, [INFO] [stdout] 85 | | S: HttpService, [INFO] [stdout] 86 | | W: Watcher, [INFO] [stdout] | |________________________^ [INFO] [stdout] = note: required for `Server>>` to implement `Future` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/example_http_proxy-4a623aecbdda4e18.long-type-4439727091057621680.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce` [INFO] [stdout] --> src/main.rs:47:37 [INFO] [stdout] | [INFO] [stdout] 47 | let service = tower::service_fn(move |req: Request| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnOnce`, not `FnMut` [INFO] [stdout] ... [INFO] [stdout] 51 | proxy(req,conn).await [INFO] [stdout] | ---- closure is `FnOnce` because it moves the variable `conn` out of its environment [INFO] [stdout] ... [INFO] [stdout] 64 | .await [INFO] [stdout] | ----- the requirement to implement `FnMut` derives from here [INFO] [stdout] | [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `Service>` [INFO] [stdout] = note: required for `ServiceFn<{closure@src/main.rs:47:37: 47:62}>` to implement `hyper::service::http::HttpService` [INFO] [stdout] = note: required for `Shared>` to implement `hyper::service::make::MakeServiceRef` [INFO] [stdout] = note: required for `Server>>` to implement `Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/main.rs:68:35 [INFO] [stdout] | [INFO] [stdout] 68 | async fn proxy(req: Request,conn:DatabaseConnection) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/main.rs:68:35 [INFO] [stdout] | [INFO] [stdout] 68 | async fn proxy(req: Request,conn:DatabaseConnection) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0525. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0525. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `example-http-proxy` (bin "example-http-proxy" test) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `example-http-proxy` (bin "example-http-proxy") due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "479065c118262a7addf466bd3e5024bfc490c23118cc4d7543b90a2d8f9ada87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "479065c118262a7addf466bd3e5024bfc490c23118cc4d7543b90a2d8f9ada87", kill_on_drop: false }` [INFO] [stdout] 479065c118262a7addf466bd3e5024bfc490c23118cc4d7543b90a2d8f9ada87