[INFO] fetching crate yahf 0.0.1... [INFO] checking yahf-0.0.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate yahf 0.0.1 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate yahf 0.0.1 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] removed /workspace/builds/worker-2-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate yahf 0.0.1 [INFO] finished tweaking crates.io crate yahf 0.0.1 [INFO] tweaked toml for crates.io crate yahf 0.0.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate yahf 0.0.1 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] 69e0b67130e38742a49d16d59926576b1d139a6ab8cfc5f7ce79f7263226871c [INFO] running `Command { std: "docker" "start" "-a" "69e0b67130e38742a49d16d59926576b1d139a6ab8cfc5f7ce79f7263226871c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69e0b67130e38742a49d16d59926576b1d139a6ab8cfc5f7ce79f7263226871c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69e0b67130e38742a49d16d59926576b1d139a6ab8cfc5f7ce79f7263226871c", kill_on_drop: false }` [INFO] [stdout] 69e0b67130e38742a49d16d59926576b1d139a6ab8cfc5f7ce79f7263226871c [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] 2207002171f931e03da3e91fa35d6ba3e9ac503a8db60508647488ea8c751614 [INFO] running `Command { std: "docker" "start" "-a" "2207002171f931e03da3e91fa35d6ba3e9ac503a8db60508647488ea8c751614", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.64 [INFO] [stderr] Compiling unicode-ident v1.0.10 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking slab v0.4.8 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Checking itoa v1.0.8 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling serde v1.0.181 [INFO] [stderr] Compiling serde_json v1.0.102 [INFO] [stderr] Compiling serde_derive v1.0.181 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking ryu v1.0.14 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking yahf v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:219:18 [INFO] [stdout] | [INFO] [stdout] 219 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 220 | &String::with_capacity(0), [INFO] [stdout] 221 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 222 | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | ________________________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] 227 | | ))); [INFO] [stdout] | |_____________- argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 221 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 222 | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | ________________________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] 227 | | ))); [INFO] [stdout] | |_____________- argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | _______________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] 227 | | ))); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |______________| [INFO] [stdout] | cast requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | _______________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 227 | | ))); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |______________| [INFO] [stdout] | cast requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/router.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 191 | deserializer: &Deserializer, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 204 | Box::new(encapsulate_runner(handler, deserializer, serializer)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/router.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 192 | serializer: &Serializer, [INFO] [stdout] | - let's call the lifetime of this reference `'2` [INFO] [stdout] ... [INFO] [stdout] 204 | Box::new(encapsulate_runner(handler, deserializer, serializer)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'2` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 244 | method_insert!(get, Method::GET); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 244 | method_insert!(get, Method::GET); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 245 | method_insert!(put, Method::PUT); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 245 | method_insert!(put, Method::PUT); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 246 | method_insert!(delete, Method::DELETE); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 246 | method_insert!(delete, Method::DELETE); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 247 | method_insert!(post, Method::POST); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 247 | method_insert!(post, Method::POST); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 248 | method_insert!(trace, Method::TRACE); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 248 | method_insert!(trace, Method::TRACE); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 249 | method_insert!(options, Method::OPTIONS); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 249 | method_insert!(options, Method::OPTIONS); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 250 | method_insert!(connect, Method::CONNECT); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 250 | method_insert!(connect, Method::CONNECT); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 251 | method_insert!(patch, Method::PATCH); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 251 | method_insert!(patch, Method::PATCH); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 252 | method_insert!(head, Method::HEAD); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 252 | method_insert!(head, Method::HEAD); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0521, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `yahf` (lib) due to 25 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:219:18 [INFO] [stdout] | [INFO] [stdout] 219 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 220 | &String::with_capacity(0), [INFO] [stdout] 221 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 222 | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | ________________________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] 227 | | ))); [INFO] [stdout] | |_____________- argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 221 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 222 | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | ________________________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] 227 | | ))); [INFO] [stdout] | |_____________- argument requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | _______________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] 227 | | ))); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |______________| [INFO] [stdout] | cast requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handle_selector.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 223 | self.value = Some(Box::new(encapsulate_runner( [INFO] [stdout] | _______________________________- [INFO] [stdout] 224 | | built, [INFO] [stdout] 225 | | &String::with_capacity(0), [INFO] [stdout] 226 | | &String::with_capacity(0), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 227 | | ))); [INFO] [stdout] | | - - temporary value is freed at the end of this statement [INFO] [stdout] | |______________| [INFO] [stdout] | cast requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:423:53 [INFO] [stdout] | [INFO] [stdout] 423 | let a = encapsulate_runner(simple_handler, &Json::new(), &Json::new()); [INFO] [stdout] | ^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 426 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 423 ~ let binding = Json::new(); [INFO] [stdout] 424 ~ let a = encapsulate_runner(simple_handler, &binding, &Json::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:423:67 [INFO] [stdout] | [INFO] [stdout] 423 | let a = encapsulate_runner(simple_handler, &Json::new(), &Json::new()); [INFO] [stdout] | ^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 426 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 423 ~ let binding = Json::new(); [INFO] [stdout] 424 ~ let a = encapsulate_runner(simple_handler, &Json::new(), &binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:438:56 [INFO] [stdout] | [INFO] [stdout] 438 | let a = encapsulate_runner(unit_handler, &(), &Json::new()); [INFO] [stdout] | ^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 441 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 438 ~ let binding = Json::new(); [INFO] [stdout] 439 ~ let a = encapsulate_runner(unit_handler, &(), &binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:455:75 [INFO] [stdout] | [INFO] [stdout] 455 | let a = encapsulate_runner(unit_handler_with_response_body, &(), &Json::new()); [INFO] [stdout] | ^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 458 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 455 ~ let binding = Json::new(); [INFO] [stdout] 456 ~ let a = encapsulate_runner(unit_handler_with_response_body, &(), &binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:472:63 [INFO] [stdout] | [INFO] [stdout] 472 | let a = encapsulate_runner(simple_handler_with_body, &Json::new(), &Json::new()); [INFO] [stdout] | ^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 473 | let c = Request::builder().body(serde_json::json!({ "field": "So Good" }).to_string()); [INFO] [stdout] 474 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 472 ~ let binding = Json::new(); [INFO] [stdout] 473 ~ let a = encapsulate_runner(simple_handler_with_body, &binding, &Json::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:472:77 [INFO] [stdout] | [INFO] [stdout] 472 | let a = encapsulate_runner(simple_handler_with_body, &Json::new(), &Json::new()); [INFO] [stdout] | ^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 473 | let c = Request::builder().body(serde_json::json!({ "field": "So Good" }).to_string()); [INFO] [stdout] 474 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 472 ~ let binding = Json::new(); [INFO] [stdout] 473 ~ let a = encapsulate_runner(simple_handler_with_body, &Json::new(), &binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:490:14 [INFO] [stdout] | [INFO] [stdout] 490 | &Json::new(), [INFO] [stdout] | ^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 491 | &Json::new(), [INFO] [stdout] 492 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 493 | let c = Request::builder().body(serde_json::json!({ "field": "Sharks" }).to_string()); [INFO] [stdout] 494 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 488 ~ let binding = Json::new(); [INFO] [stdout] 489 ~ let a = encapsulate_runner( [INFO] [stdout] 490 | handler_with_simple_body_on_input_and_output, [INFO] [stdout] 491 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:491:14 [INFO] [stdout] | [INFO] [stdout] 491 | &Json::new(), [INFO] [stdout] | ^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 492 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 493 | let c = Request::builder().body(serde_json::json!({ "field": "Sharks" }).to_string()); [INFO] [stdout] 494 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 488 ~ let binding = Json::new(); [INFO] [stdout] 489 ~ let a = encapsulate_runner( [INFO] [stdout] 490 | handler_with_simple_body_on_input_and_output, [INFO] [stdout] 491 | &Json::new(), [INFO] [stdout] 492 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:510:14 [INFO] [stdout] | [INFO] [stdout] 510 | &Json::new(), [INFO] [stdout] | ^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 511 | &Json::new(), [INFO] [stdout] 512 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 513 | let c = Request::builder().body(serde_json::json!({ "field": "Venom" }).to_string()); [INFO] [stdout] 514 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 508 ~ let binding = Json::new(); [INFO] [stdout] 509 ~ let a = encapsulate_runner( [INFO] [stdout] 510 | handler_with_simple_body_on_input_and_cf_output, [INFO] [stdout] 511 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/handler.rs:511:14 [INFO] [stdout] | [INFO] [stdout] 511 | &Json::new(), [INFO] [stdout] | ^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 512 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 513 | let c = Request::builder().body(serde_json::json!({ "field": "Venom" }).to_string()); [INFO] [stdout] 514 | let b = a(c.into()).await; [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 508 ~ let binding = Json::new(); [INFO] [stdout] 509 ~ let a = encapsulate_runner( [INFO] [stdout] 510 | handler_with_simple_body_on_input_and_cf_output, [INFO] [stdout] 511 | &Json::new(), [INFO] [stdout] 512 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 271 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 272 | &String::with_capacity(0), [INFO] [stdout] 273 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 274 | [INFO] [stdout] 275 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 269 ~ let binding = String::with_capacity(0); [INFO] [stdout] 270 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 271 | test_handler, [INFO] [stdout] 272 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:272:14 [INFO] [stdout] | [INFO] [stdout] 272 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 273 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 274 | [INFO] [stdout] 275 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 269 ~ let binding = String::with_capacity(0); [INFO] [stdout] 270 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 271 | test_handler, [INFO] [stdout] 272 | &String::with_capacity(0), [INFO] [stdout] 273 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:293:14 [INFO] [stdout] | [INFO] [stdout] 293 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 294 | &String::with_capacity(0), [INFO] [stdout] 295 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 296 | [INFO] [stdout] 297 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 291 ~ let binding = String::with_capacity(0); [INFO] [stdout] 292 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 293 | test_handler, [INFO] [stdout] 294 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:294:14 [INFO] [stdout] | [INFO] [stdout] 294 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 295 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 296 | [INFO] [stdout] 297 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 291 ~ let binding = String::with_capacity(0); [INFO] [stdout] 292 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 293 | test_handler, [INFO] [stdout] 294 | &String::with_capacity(0), [INFO] [stdout] 295 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:316:14 [INFO] [stdout] | [INFO] [stdout] 316 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 317 | &String::with_capacity(0), [INFO] [stdout] 318 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 319 | [INFO] [stdout] 320 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 314 ~ let binding = String::with_capacity(0); [INFO] [stdout] 315 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 316 | test_handler, [INFO] [stdout] 317 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:317:14 [INFO] [stdout] | [INFO] [stdout] 317 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 318 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 319 | [INFO] [stdout] 320 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 314 ~ let binding = String::with_capacity(0); [INFO] [stdout] 315 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 316 | test_handler, [INFO] [stdout] 317 | &String::with_capacity(0), [INFO] [stdout] 318 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:339:14 [INFO] [stdout] | [INFO] [stdout] 339 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 340 | &String::with_capacity(0), [INFO] [stdout] 341 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 342 | [INFO] [stdout] 343 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 337 ~ let binding = String::with_capacity(0); [INFO] [stdout] 338 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 339 | test_handler, [INFO] [stdout] 340 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:340:14 [INFO] [stdout] | [INFO] [stdout] 340 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 341 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 342 | [INFO] [stdout] 343 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 337 ~ let binding = String::with_capacity(0); [INFO] [stdout] 338 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 339 | test_handler, [INFO] [stdout] 340 | &String::with_capacity(0), [INFO] [stdout] 341 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:363:14 [INFO] [stdout] | [INFO] [stdout] 363 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 364 | &String::with_capacity(0), [INFO] [stdout] 365 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 366 | [INFO] [stdout] 367 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 361 ~ let binding = String::with_capacity(0); [INFO] [stdout] 362 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 363 | test_handler, [INFO] [stdout] 364 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:364:14 [INFO] [stdout] | [INFO] [stdout] 364 | &String::with_capacity(0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 365 | ); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] 366 | [INFO] [stdout] 367 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 361 ~ let binding = String::with_capacity(0); [INFO] [stdout] 362 ~ let updated_handler = arc_middleware.build( [INFO] [stdout] 363 | test_handler, [INFO] [stdout] 364 | &String::with_capacity(0), [INFO] [stdout] 365 ~ &binding, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/middleware.rs:390:59 [INFO] [stdout] | [INFO] [stdout] 390 | arc_middleware.build(runner_with_error, &(), &String::with_capacity(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 391 | [INFO] [stdout] 392 | let resp = updated_handler [INFO] [stdout] | --------------- borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 389 ~ let binding = String::with_capacity(0); [INFO] [stdout] 390 ~ let updated_handler = [INFO] [stdout] 391 ~ arc_middleware.build(runner_with_error, &(), &binding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/router.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 191 | deserializer: &Deserializer, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 204 | Box::new(encapsulate_runner(handler, deserializer, serializer)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/router.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 192 | serializer: &Serializer, [INFO] [stdout] | - let's call the lifetime of this reference `'2` [INFO] [stdout] ... [INFO] [stdout] 204 | Box::new(encapsulate_runner(handler, deserializer, serializer)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'2` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 244 | method_insert!(get, Method::GET); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 244 | method_insert!(get, Method::GET); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 245 | method_insert!(put, Method::PUT); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 245 | method_insert!(put, Method::PUT); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 246 | method_insert!(delete, Method::DELETE); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 246 | method_insert!(delete, Method::DELETE); [INFO] [stdout] | -------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 247 | method_insert!(post, Method::POST); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 247 | method_insert!(post, Method::POST); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 248 | method_insert!(trace, Method::TRACE); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 248 | method_insert!(trace, Method::TRACE); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 249 | method_insert!(options, Method::OPTIONS); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 249 | method_insert!(options, Method::OPTIONS); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 250 | method_insert!(connect, Method::CONNECT); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 250 | method_insert!(connect, Method::CONNECT); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 251 | method_insert!(patch, Method::PATCH); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 251 | method_insert!(patch, Method::PATCH); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] 55 | handler: R, [INFO] [stdout] 56 | deserializer: &Deserializer, [INFO] [stdout] | ------------ - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `deserializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`deserializer` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 252 | method_insert!(head, Method::HEAD); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/router.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 54 | path: &'static str, [INFO] [stdout] | ---- `path` declared here, outside of the method body [INFO] [stdout] ... [INFO] [stdout] 57 | serializer: &Serializer, [INFO] [stdout] | ---------- - let's call the lifetime of this reference `'2` [INFO] [stdout] | | [INFO] [stdout] | `serializer` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 66 | let built_with_middleware = self [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 67 | | .middleware_factory [INFO] [stdout] 68 | | .clone() [INFO] [stdout] 69 | | .build(handler, deserializer, serializer); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________________________________________________________`serializer` escapes the method body here [INFO] [stdout] | argument requires that `'2` must outlive `'static` [INFO] [stdout] ... [INFO] [stdout] 252 | method_insert!(head, Method::HEAD); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `method_insert` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 45 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0521, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `yahf` (lib test) due to 46 previous errors [INFO] running `Command { std: "docker" "inspect" "2207002171f931e03da3e91fa35d6ba3e9ac503a8db60508647488ea8c751614", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2207002171f931e03da3e91fa35d6ba3e9ac503a8db60508647488ea8c751614", kill_on_drop: false }` [INFO] [stdout] 2207002171f931e03da3e91fa35d6ba3e9ac503a8db60508647488ea8c751614