[INFO] fetching crate zhou 0.1.2... [INFO] checking zhou-0.1.2 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate zhou 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate zhou 0.1.2 [INFO] finished tweaking crates.io crate zhou 0.1.2 [INFO] tweaked toml for crates.io crate zhou 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate zhou 0.1.2 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate zhou 0.1.2 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7d09c2c56f5e44bd9fa012f552d0e334770d10ef73f46fdbfb4f2596b43a294 [INFO] running `Command { std: "docker" "start" "-a" "f7d09c2c56f5e44bd9fa012f552d0e334770d10ef73f46fdbfb4f2596b43a294", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7d09c2c56f5e44bd9fa012f552d0e334770d10ef73f46fdbfb4f2596b43a294", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7d09c2c56f5e44bd9fa012f552d0e334770d10ef73f46fdbfb4f2596b43a294", kill_on_drop: false }` [INFO] [stdout] f7d09c2c56f5e44bd9fa012f552d0e334770d10ef73f46fdbfb4f2596b43a294 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e5eb54b75c06f62af4fa01a464738a6d2cb6602e9c0f0cbbfa044d1afc9ed59 [INFO] running `Command { std: "docker" "start" "-a" "1e5eb54b75c06f62af4fa01a464738a6d2cb6602e9c0f0cbbfa044d1afc9ed59", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling anyhow v1.0.64 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking ascii v1.0.0 [INFO] [stderr] Checking time v0.3.14 [INFO] [stderr] Checking zhou v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:138:11 [INFO] [stdout] | [INFO] [stdout] 138 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:182:11 [INFO] [stdout] | [INFO] [stdout] 182 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:187:11 [INFO] [stdout] | [INFO] [stdout] 187 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/http.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ascii::AsciiChar::Hash` [INFO] [stdout] --> src/node.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use ascii::AsciiChar::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/node.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/request.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/request.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/request.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:138:11 [INFO] [stdout] | [INFO] [stdout] 138 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:182:11 [INFO] [stdout] | [INFO] [stdout] 182 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/http.rs:187:11 [INFO] [stdout] | [INFO] [stdout] 187 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/request.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/request.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `log` [INFO] [stdout] --> src/request.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | #[cfg(feature = "log")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `log` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/node.rs:141:32 [INFO] [stdout] | [INFO] [stdout] 141 | let sc: Context = Context::new(Request::default(), params, 1); [INFO] [stdout] | ^^^^^^^^^^^^------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&Request`, found `Request` [INFO] [stdout] | argument #4 of type `std::option::Option Fn(&'a context::Context<'b, i32>) + Send + Sync + 'static)>>>` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/context.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(r: &'a Request, params: HashMap, state: T, fn_chains: Option>>) -> Self { [INFO] [stdout] | ^^^ -------------- ---------------------------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 141 | let sc: Context = Context::new(&Request::default(), params, 1); [INFO] [stdout] | + [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 141 - let sc: Context = Context::new(Request::default(), params, 1); [INFO] [stdout] 141 + let sc: Context = Context::new(/* &request::Request */, params, 1, /* std::option::Option Fn(&'a context::Context<'b, i32>) + Send + Sync + 'static)>>> */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/node.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | let sc: Context = Context::new(Request::default(), param2, 1); [INFO] [stdout] | ^^^^^^^^^^^^------------------------------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&Request`, found `Request` [INFO] [stdout] | argument #4 of type `std::option::Option Fn(&'a context::Context<'b, i32>) + Send + Sync + 'static)>>>` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/context.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new(r: &'a Request, params: HashMap, state: T, fn_chains: Option>>) -> Self { [INFO] [stdout] | ^^^ -------------- ---------------------------------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 198 | let sc: Context = Context::new(&Request::default(), param2, 1); [INFO] [stdout] | + [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 198 - let sc: Context = Context::new(Request::default(), param2, 1); [INFO] [stdout] 198 + let sc: Context = Context::new(/* &request::Request */, param2, 1, /* std::option::Option Fn(&'a context::Context<'b, i32>) + Send + Sync + 'static)>>> */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/http.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let s = c.state.as_ref(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/http.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let s = c.state.as_ref(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zhou` (lib test) due to 2 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/common.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_bytes` is never used [INFO] [stdout] --> src/common.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl Header { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn from_bytes(header: B1, value: B2) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeaderField` is never constructed [INFO] [stdout] --> src/common.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct HeaderField(AsciiString); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_bytes`, `as_str`, and `equiv` are never used [INFO] [stdout] --> src/common.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl HeaderField { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 205 | pub fn from_bytes(bytes: B) -> Result> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn as_str(&self) -> &AsciiStr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn equiv(&self, other: &'static str) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cfg` is never read [INFO] [stdout] --> src/http.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct HttpServer { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 15 | addr: String, [INFO] [stdout] 16 | cfg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handler404` is never used [INFO] [stdout] --> src/http.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn handler404(c: &Context>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_and_parse_req_old` is never used [INFO] [stdout] --> src/http.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn build_and_parse_req_old(buf: Vec) -> crate::request::Request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add` and `remove` are never used [INFO] [stdout] --> src/percent_encoding.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 68 | impl AsciiSet { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub const fn add(&self, byte: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub const fn remove(&self, byte: u8) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTROLS` is never used [INFO] [stdout] --> src/percent_encoding.rs:99:11 [INFO] [stdout] | [INFO] [stdout] 99 | pub const CONTROLS: &AsciiSet = &AsciiSet { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NON_ALPHANUMERIC` is never used [INFO] [stdout] --> src/percent_encoding.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub const NON_ALPHANUMERIC: &AsciiSet = &CONTROLS [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percent_encode` is never used [INFO] [stdout] --> src/percent_encoding.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn percent_encode<'a>(input: &'a [u8], ascii_set: &'static AsciiSet) -> PercentEncode<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utf8_percent_encode` is never used [INFO] [stdout] --> src/percent_encoding.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn utf8_percent_encode<'a>(input: &'a str, ascii_set: &'static AsciiSet) -> PercentEncode<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percent_decode_str` is never used [INFO] [stdout] --> src/percent_encoding.rs:310:8 [INFO] [stdout] | [INFO] [stdout] 310 | pub fn percent_decode_str(input: &str) -> PercentDecode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percent_decode` is never used [INFO] [stdout] --> src/percent_encoding.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn percent_decode(input: &[u8]) -> PercentDecode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/request.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BodyType` is never used [INFO] [stdout] --> src/request.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum BodyType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_wildcard` is never used [INFO] [stdout] --> src/request.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 26 | impl Request { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub(crate) fn set_wildcard(&mut self, w: Option) -> &Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status_code` and `version` are never read [INFO] [stdout] --> src/response.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct Response { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 8 | pub status_code: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | pub version: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `status` is never used [INFO] [stdout] --> src/response.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Response { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn status(&mut self, code: u16) -> &Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/percent_encoding.rs:310:34 [INFO] [stdout] | [INFO] [stdout] 310 | pub fn percent_decode_str(input: &str) -> PercentDecode { [INFO] [stdout] | ^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 310 | pub fn percent_decode_str(input: &str) -> PercentDecode<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/percent_encoding.rs:333:30 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn percent_decode(input: &[u8]) -> PercentDecode { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 333 | pub fn percent_decode(input: &[u8]) -> PercentDecode<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous wide pointer comparison, the comparison includes metadata which may not be expected [INFO] [stdout] --> src/percent_encoding.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | debug_assert!(raw_utf8 == &*bytes as *const [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_wide_pointer_comparisons)]` on by default [INFO] [stdout] help: use `std::ptr::addr_eq` or untyped pointers to only compare their addresses [INFO] [stdout] | [INFO] [stdout] 424 - debug_assert!(raw_utf8 == &*bytes as *const [u8]); [INFO] [stdout] 424 + debug_assert!(std::ptr::addr_eq(raw_utf8, &*bytes as *const [u8])); [INFO] [stdout] | [INFO] [stdout] help: use explicit `std::ptr::eq` method to compare metadata and addresses [INFO] [stdout] | [INFO] [stdout] 424 - debug_assert!(raw_utf8 == &*bytes as *const [u8]); [INFO] [stdout] 424 + debug_assert!(std::ptr::eq(raw_utf8, &*bytes as *const [u8])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1e5eb54b75c06f62af4fa01a464738a6d2cb6602e9c0f0cbbfa044d1afc9ed59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e5eb54b75c06f62af4fa01a464738a6d2cb6602e9c0f0cbbfa044d1afc9ed59", kill_on_drop: false }` [INFO] [stdout] 1e5eb54b75c06f62af4fa01a464738a6d2cb6602e9c0f0cbbfa044d1afc9ed59