[INFO] fetching crate water_http 2.0.10... [INFO] checking water_http-2.0.10 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate water_http 2.0.10 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate water_http 2.0.10 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate water_http 2.0.10 [INFO] tweaked toml for crates.io crate water_http 2.0.10 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate water_http 2.0.10 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate water_http 2.0.10 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc64324bf2a67a8f9e483f93f0c4a67d6c6b2707cf951d16c6900e3833c07f55 [INFO] running `Command { std: "docker" "start" "-a" "fc64324bf2a67a8f9e483f93f0c4a67d6c6b2707cf951d16c6900e3833c07f55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc64324bf2a67a8f9e483f93f0c4a67d6c6b2707cf951d16c6900e3833c07f55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc64324bf2a67a8f9e483f93f0c4a67d6c6b2707cf951d16c6900e3833c07f55", kill_on_drop: false }` [INFO] [stdout] fc64324bf2a67a8f9e483f93f0c4a67d6c6b2707cf951d16c6900e3833c07f55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d85f90969f9d0c536bf0ff282c33c824bb348875a2000b09c2b49bc1d0d14010 [INFO] running `Command { std: "docker" "start" "-a" "d85f90969f9d0c536bf0ff282c33c824bb348875a2000b09c2b49bc1d0d14010", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling aws-lc-rs v1.9.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking once_cell v1.20.1 [INFO] [stderr] Checking rustls-pki-types v1.9.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking mirai-annotations v1.12.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling rustls v0.23.13 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling snap v1.1.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking unchecked-index v0.2.2 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking askama_escape v0.10.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking twoway v0.2.2 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking brotli v7.0.0 [INFO] [stderr] Compiling cc v1.1.23 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling lz4-sys v1.11.1+lz4-1.10.0 [INFO] [stderr] Compiling aws-lc-sys v0.21.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling askama_parser v0.2.1 [INFO] [stderr] Checking bzip2 v0.5.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking h2 v0.4.6 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Compiling basic-toml v0.1.9 [INFO] [stderr] Compiling askama_derive v0.12.5 [INFO] [stderr] Checking askama v0.12.1 [INFO] [stderr] Checking lz4 v1.28.0 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking water_http v2.0.10 (/opt/rustwide/workdir) [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/server/capsule/mod.rs:279:1 [INFO] [stdout] | [INFO] [stdout] 279 | #[test] [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] 280 | / mod test { [INFO] [stdout] 281 | | [INFO] [stdout] 282 | | #[test] [INFO] [stdout] 283 | | fn testing_finding_function_speed(){ [INFO] [stdout] ... | [INFO] [stdout] 292 | | } [INFO] [stdout] | |_- expected a non-associated function, found a module [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 279 - #[test] [INFO] [stdout] 279 + #[cfg(test)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/request/mod.rs:344:43 [INFO] [stdout] | [INFO] [stdout] 344 | FormingRequestResult::Success(mut request ) => { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/mod.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn path(&self)->Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 253 | pub fn path(&self)->Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/mod.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn method(&self)->Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 258 | pub fn method(&self)->Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/mod.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | pub fn http_version(&self)->Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 263 | pub fn http_version(&self)->Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/mod.rs:277:32 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn get_from_path_query(&self,key:&str)->Option>{ [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 277 | pub fn get_from_path_query(&self,key:&str)->Option>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/mod.rs:90:18 [INFO] [stdout] | [INFO] [stdout] 90 | payload:&'a[u8], [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 94 | )->Result<(),&str>{ [INFO] [stdout] | ---- the lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 94 | )->Result<(),&'a str>{ [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/mod.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 212 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 212 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/mod.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 312 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/mod.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | fn get (&self,key:&str)->Option>; [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 346 | fn get (&self,key:&str)->Option>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/xwwwformurlencoded.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 41 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/xwwwformurlencoded.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | fn get(&self, key: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/xwwwformurlencoded.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | fn get_as_str(&self,key:&str)->Option>{ [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 82 | fn get_as_str(&self,key:&str)->Option>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/body/bytes_puller.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn on_chunk(&mut self,mut callback:impl FnMut(&[u8])-> Result<(),()> ) [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] 45 | ->Result<(),WaterErrors>{ [INFO] [stdout] | ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 45 | ->Result<(),WaterErrors<'_>>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/header/mod.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn all_pairs(&self)->&'a [KeyValuePair]{ [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 34 | pub fn all_pairs(&self)->&'a [KeyValuePair<'_>]{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/header/mod.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_as_str(&self,key:&str)->Option>{ [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_as_str(&self,key:&str)->Option>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/getter.rs:44:54 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn get_full_body_multipart_mechanism(&'a mut self,content_type:&[u8],content_length:&usize) [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 45 | -> Result{ [INFO] [stdout] | ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 45 | -> Result>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/request/getter.rs:315:55 [INFO] [stdout] | [INFO] [stdout] 315 | pub async fn get_full_body_multipart_mechanism(&'a mut self,content_type:&[u8]) [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 316 | -> Result{ [INFO] [stdout] | ----------- the lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 316 | -> Result>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/response/sender.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | fn write_custom_bytes(&mut self,bytes:&[u8])-> [INFO] [stdout] | ^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] 57 | impl Future< [INFO] [stdout] 58 | Output = Result<(),WaterErrors>> + Send; [INFO] [stdout] | ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | Output = Result<(),WaterErrors<'_>>> + Send; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/response/sender.rs:301:33 [INFO] [stdout] | [INFO] [stdout] 301 | async fn write_custom_bytes(&mut self, bytes: &[u8]) -> Result<(), WaterErrors> { [INFO] [stdout] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 301 | async fn write_custom_bytes(&mut self, bytes: &[u8]) -> Result<(), WaterErrors<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/response/sender.rs:403:34 [INFO] [stdout] | [INFO] [stdout] 403 | async fn write_custom_bytes(&mut self, bytes: &[u8]) -> Result<(), WaterErrors> { [INFO] [stdout] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 403 | async fn write_custom_bytes(&mut self, bytes: &[u8]) -> Result<(), WaterErrors<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/response/sender.rs:619:33 [INFO] [stdout] | [INFO] [stdout] 619 | async fn write_custom_bytes(&mut self, bytes: &[u8]) -> Result<(), WaterErrors> { [INFO] [stdout] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 619 | async fn write_custom_bytes(&mut self, bytes: &[u8]) -> Result<(), WaterErrors<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/response/file_response.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn custom(path:&Path, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 16 | buffer_size_for_reading_from_file_and_writing_to_stream:usize, [INFO] [stdout] 17 | )->FileRSender{ [INFO] [stdout] | ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 17 | )->FileRSender<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/http/response/file_response.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(path:&str)->FileRSender{ [INFO] [stdout] | ^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(path:&str)->FileRSender<'_>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/server/mod.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | unsafe { STATIC_SERVER_CONFIGURATION.as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/server/configurations.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | match ___ALL_ROUTES.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/server/configurations.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | match ___ALL_ROUTES.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:194:38 [INFO] [stdout] | [INFO] [stdout] 194 | pub async fn get_body_full_bytes(&mut self)->Result>,WaterErrors>{ [INFO] [stdout] | ^^^^^^^^^ -------- ----------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 194 | pub async fn get_body_full_bytes(&mut self)->Result>,WaterErrors<'_>>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:255:40 [INFO] [stdout] | [INFO] [stdout] 255 | pub async fn get_body_as_multipart(&mut self)->Result{ [INFO] [stdout] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 255 | pub async fn get_body_as_multipart(&mut self)->Result>{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:285:31 [INFO] [stdout] | [INFO] [stdout] 285 | pub async fn get_body_map(&mut self)-> Result { [INFO] [stdout] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 285 | pub async fn get_body_map(&mut self)-> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:337:39 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn get_from_headers_as_bytes(&'a self,key:&str)->Option<&[u8]>{ [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 337 | pub fn get_from_headers_as_bytes(&'a self,key:&str)->Option<&'a [u8]>{ [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:354:30 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn get_from_headers(&'a self,key:&str)->Option>{ [INFO] [stdout] | ^^ -------- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 354 | pub fn get_from_headers(&'a self,key:&str)->Option>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:456:17 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn path(&self)->Cow{ [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 456 | pub fn path(&self)->Cow<'_, str>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:469:19 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn method(&self)->Cow{ [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 469 | pub fn method(&self)->Cow<'_, str>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/server/sr_context/mod.rs:494:33 [INFO] [stdout] | [INFO] [stdout] 494 | pub fn get_from_path_query(&self,key:&str)->Option>{ [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 494 | pub fn get_from_path_query(&self,key:&str)->Option>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `water_http` (lib test) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "d85f90969f9d0c536bf0ff282c33c824bb348875a2000b09c2b49bc1d0d14010", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d85f90969f9d0c536bf0ff282c33c824bb348875a2000b09c2b49bc1d0d14010", kill_on_drop: false }` [INFO] [stdout] d85f90969f9d0c536bf0ff282c33c824bb348875a2000b09c2b49bc1d0d14010