[INFO] cloning repository https://github.com/victorteokw/composed-middleware [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/victorteokw/composed-middleware" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorteokw%2Fcomposed-middleware", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorteokw%2Fcomposed-middleware'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 857892bd3892087d74c7e8ad62404251eec2ed4a [INFO] checking victorteokw/composed-middleware against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorteokw%2Fcomposed-middleware" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/victorteokw/composed-middleware [INFO] finished tweaking git repo https://github.com/victorteokw/composed-middleware [INFO] tweaked toml for git repo https://github.com/victorteokw/composed-middleware written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/victorteokw/composed-middleware on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/victorteokw/composed-middleware 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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71e660f47d658acee4e85dcdf944e71e6fd97477ea14fbee56bc593684bd123f [INFO] running `Command { std: "docker" "start" "-a" "71e660f47d658acee4e85dcdf944e71e6fd97477ea14fbee56bc593684bd123f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71e660f47d658acee4e85dcdf944e71e6fd97477ea14fbee56bc593684bd123f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71e660f47d658acee4e85dcdf944e71e6fd97477ea14fbee56bc593684bd123f", kill_on_drop: false }` [INFO] [stdout] 71e660f47d658acee4e85dcdf944e71e6fd97477ea14fbee56bc593684bd123f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3f53ad8d3584cf883d2e162e485af366277b805f1d861eb90670c49fee07e0c5 [INFO] running `Command { std: "docker" "start" "-a" "3f53ad8d3584cf883d2e162e485af366277b805f1d861eb90670c49fee07e0c5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking composed-middleware v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NextImpl` [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::next::{Next, NextImpl}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NextImpl` [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::next::{Next, NextImpl}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | let middleware_outer = Middleware::::new(outer_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {outer_fn}` must implement `FnOnce<(i32, &next::Next<'_, i32, i32, Infallible>)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'0 next::Next<'0, i32, i32, Infallible>)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | let middleware_outer = Middleware::::new(outer_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> futures_util::Future>` [INFO] [stdout] found opaque type `impl futures_util::Future>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | let middleware_outer = Middleware::::new(outer_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {outer_fn}` must implement `FnOnce<(i32, &next::Next<'0, i32, i32, Infallible>)>`, for any lifetime `'0`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'1 next::Next<'1, i32, i32, Infallible>)>`, for some specific lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let middleware_inner = Middleware::::new(inner_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {inner_fn}` must implement `FnOnce<(i32, &next::Next<'_, i32, i32, Infallible>)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'0 next::Next<'0, i32, i32, Infallible>)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let middleware_inner = Middleware::::new(inner_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> futures_util::Future>` [INFO] [stdout] found opaque type `impl futures_util::Future>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let middleware_inner = Middleware::::new(inner_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {inner_fn}` must implement `FnOnce<(i32, &next::Next<'0, i32, i32, Infallible>)>`, for any lifetime `'0`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'1 next::Next<'1, i32, i32, Infallible>)>`, for some specific lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | let middleware_outer = Middleware::::new(outer_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {outer_fn}` must implement `FnOnce<(i32, &next::Next<'_, i32, i32, Infallible>)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'0 next::Next<'0, i32, i32, Infallible>)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | let middleware_outer = Middleware::::new(outer_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> futures_util::Future>` [INFO] [stdout] found opaque type `impl futures_util::Future>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | let middleware_outer = Middleware::::new(outer_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {outer_fn}` must implement `FnOnce<(i32, &next::Next<'0, i32, i32, Infallible>)>`, for any lifetime `'0`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'1 next::Next<'1, i32, i32, Infallible>)>`, for some specific lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let middleware_inner = Middleware::::new(inner_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {inner_fn}` must implement `FnOnce<(i32, &next::Next<'_, i32, i32, Infallible>)>` [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'0 next::Next<'0, i32, i32, Infallible>)>`, for some specific lifetime `'0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let middleware_inner = Middleware::::new(inner_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> futures_util::Future>` [INFO] [stdout] found opaque type `impl futures_util::Future>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | let middleware_inner = Middleware::::new(inner_fn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `for<'a> fn(i32, &'a next::Next<'a, i32, i32, Infallible>) -> impl futures_util::Future> {inner_fn}` must implement `FnOnce<(i32, &next::Next<'0, i32, i32, Infallible>)>`, for any lifetime `'0`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(i32, &'1 next::Next<'1, i32, i32, Infallible>)>`, for some specific lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `layer` does not live long enough [INFO] [stdout] --> src/main.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 38 | let layer = Layered::new( [INFO] [stdout] | _________-----___- [INFO] [stdout] | | | [INFO] [stdout] | | binding `layer` declared here [INFO] [stdout] 39 | | middleware_outer, [INFO] [stdout] 40 | | Next::new(Layered::new(middleware_inner, service)) [INFO] [stdout] 41 | | ); [INFO] [stdout] | |_____- argument requires that `layer` is borrowed for `'static` [INFO] [stdout] 42 | let result = layer.call(20).await.unwrap(); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] 43 | println!("Hello, world! {}", result); [INFO] [stdout] 44 | } [INFO] [stdout] | - `layer` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] note: requirement that the value outlives `'static` introduced here [INFO] [stdout] --> src/next.rs:34:66 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(n: T) -> Self where T: NextImpl<'a, I, O, E> + 'static { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `layer` does not live long enough [INFO] [stdout] --> src/main.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 38 | let layer = Layered::new( [INFO] [stdout] | _________-----___- [INFO] [stdout] | | | [INFO] [stdout] | | binding `layer` declared here [INFO] [stdout] 39 | | middleware_outer, [INFO] [stdout] 40 | | Next::new(Layered::new(middleware_inner, service)) [INFO] [stdout] 41 | | ); [INFO] [stdout] | |_____- argument requires that `layer` is borrowed for `'static` [INFO] [stdout] 42 | let result = layer.call(20).await.unwrap(); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] 43 | println!("Hello, world! {}", result); [INFO] [stdout] 44 | } [INFO] [stdout] | - `layer` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] note: requirement that the value outlives `'static` introduced here [INFO] [stdout] --> src/next.rs:34:66 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(n: T) -> Self where T: NextImpl<'a, I, O, E> + 'static { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `composed-middleware` (bin "composed-middleware") due to 7 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `composed-middleware` (bin "composed-middleware" test) due to 7 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "3f53ad8d3584cf883d2e162e485af366277b805f1d861eb90670c49fee07e0c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f53ad8d3584cf883d2e162e485af366277b805f1d861eb90670c49fee07e0c5", kill_on_drop: false }` [INFO] [stdout] 3f53ad8d3584cf883d2e162e485af366277b805f1d861eb90670c49fee07e0c5