[INFO] fetching crate fast-router 0.1.1... [INFO] testing fast-router-0.1.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate fast-router 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate fast-router 0.1.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate fast-router 0.1.1 [INFO] tweaked toml for crates.io crate fast-router 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate fast-router 0.1.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate fast-router 0.1.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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ae2d6e3b3d058f3acadf06c243ee5238c6bfca242323249b171769bbd26bb1e [INFO] running `Command { std: "docker" "start" "-a" "5ae2d6e3b3d058f3acadf06c243ee5238c6bfca242323249b171769bbd26bb1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ae2d6e3b3d058f3acadf06c243ee5238c6bfca242323249b171769bbd26bb1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ae2d6e3b3d058f3acadf06c243ee5238c6bfca242323249b171769bbd26bb1e", kill_on_drop: false }` [INFO] [stdout] 5ae2d6e3b3d058f3acadf06c243ee5238c6bfca242323249b171769bbd26bb1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 7faa00fa5306faf16c6c1a722ce001fd8925efdf563110bf2f816ef1af4e453e [INFO] running `Command { std: "docker" "start" "-a" "7faa00fa5306faf16c6c1a722ce001fd8925efdf563110bf2f816ef1af4e453e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.104 [INFO] [stderr] Compiling proc-macro2 v1.0.30 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling tokio v1.12.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling urlencoding v2.1.0 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling tokio-macros v1.5.0 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling h2 v0.3.6 [INFO] [stderr] Compiling hyper v0.14.13 [INFO] [stderr] Compiling fast-router v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/router.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | addr: SocketAddr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/router.rs:96:23 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/router.rs:96:35 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uri` [INFO] [stdout] --> src/router.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/router.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> src/router.rs:177:20 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pem` [INFO] [stdout] --> src/router.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/router.rs:177:43 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `queries` is never read [INFO] [stdout] --> src/router.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 56 | params: HashMap, [INFO] [stdout] 57 | queries: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `before`, `after`, and `params` are never read [INFO] [stdout] --> src/router.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 332 | struct MatchedRoute<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 333 | before: Vec<&'a Route>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 334 | route: Option<&'a Route>, [INFO] [stdout] 335 | after: Vec<&'a Route>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 336 | // 地址参数 [INFO] [stdout] 337 | params: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MatchedRoute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `path`, and `has_slash` are never read [INFO] [stdout] --> src/router.rs:452:5 [INFO] [stdout] | [INFO] [stdout] 447 | struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 452 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 464 | has_slash: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/router.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn group(&mut self, path: &str) -> RouterGroup { [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] 185 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/router.rs:202:20 [INFO] [stdout] | [INFO] [stdout] 202 | fn match_route(&self, method: Method, path: &str) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ------------ 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] 202 | fn match_route(&self, method: Method, path: &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/router.rs:388:18 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn group(&mut self, path: &str) -> RouterGroup { [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] 388 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.45s [INFO] running `Command { std: "docker" "inspect" "7faa00fa5306faf16c6c1a722ce001fd8925efdf563110bf2f816ef1af4e453e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7faa00fa5306faf16c6c1a722ce001fd8925efdf563110bf2f816ef1af4e453e", kill_on_drop: false }` [INFO] [stdout] 7faa00fa5306faf16c6c1a722ce001fd8925efdf563110bf2f816ef1af4e453e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c1c5bbce3b536382d4aa5dde2aeefdcb7997289ae1b0c4564c695a4e575527f9 [INFO] running `Command { std: "docker" "start" "-a" "c1c5bbce3b536382d4aa5dde2aeefdcb7997289ae1b0c4564c695a4e575527f9", kill_on_drop: false }` [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/router.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | addr: SocketAddr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/router.rs:96:23 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/router.rs:96:35 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uri` [INFO] [stdout] --> src/router.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/router.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> src/router.rs:177:20 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pem` [INFO] [stdout] --> src/router.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/router.rs:177:43 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `queries` is never read [INFO] [stdout] --> src/router.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 56 | params: HashMap, [INFO] [stdout] 57 | queries: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `before`, `after`, and `params` are never read [INFO] [stdout] --> src/router.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 332 | struct MatchedRoute<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 333 | before: Vec<&'a Route>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 334 | route: Option<&'a Route>, [INFO] [stdout] 335 | after: Vec<&'a Route>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 336 | // 地址参数 [INFO] [stdout] 337 | params: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MatchedRoute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `path`, and `has_slash` are never read [INFO] [stdout] --> src/router.rs:452:5 [INFO] [stdout] | [INFO] [stdout] 447 | struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 452 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 464 | has_slash: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/router.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn group(&mut self, path: &str) -> RouterGroup { [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] 185 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/router.rs:202:20 [INFO] [stdout] | [INFO] [stdout] 202 | fn match_route(&self, method: Method, path: &str) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ------------ 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] 202 | fn match_route(&self, method: Method, path: &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/router.rs:388:18 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn group(&mut self, path: &str) -> RouterGroup { [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] 388 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling fast-router v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/router.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | addr: SocketAddr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/router.rs:96:23 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/router.rs:96:35 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uri` [INFO] [stdout] --> src/router.rs:99:24 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/router.rs:99:35 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> src/router.rs:177:20 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pem` [INFO] [stdout] --> src/router.rs:177:32 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/router.rs:177:43 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:671:31 [INFO] [stdout] | [INFO] [stdout] 671 | r.post("/:user/:id", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:675:43 [INFO] [stdout] | [INFO] [stdout] 675 | g.get("admin/:name:i32", |mut c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:676:36 [INFO] [stdout] | [INFO] [stdout] 676 | g.post("/admin/u32/", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:680:41 [INFO] [stdout] | [INFO] [stdout] 680 | g1.put("admin/login/", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:681:46 [INFO] [stdout] | [INFO] [stdout] 681 | g1.delete("/admin/login1/", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:687:49 [INFO] [stdout] | [INFO] [stdout] 687 | g.add(Method::GET, "/admin/login", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:688:53 [INFO] [stdout] | [INFO] [stdout] 688 | g.add(Method::DELETE, "/admin/login1", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:692:58 [INFO] [stdout] | [INFO] [stdout] 692 | g1.add(Method::OPTIONS, "/admin/login", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:693:55 [INFO] [stdout] | [INFO] [stdout] 693 | g1.add(Method::ANY, "/admin/login1", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/router.rs:675:39 [INFO] [stdout] | [INFO] [stdout] 675 | g.get("admin/:name:i32", |mut c| {}); [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: unused variable: `route` [INFO] [stdout] --> src/router.rs:751:13 [INFO] [stdout] | [INFO] [stdout] 751 | let route = r.match_route(Method::GET, "/v1/admin/zhang山/23423"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_route` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:742:51 [INFO] [stdout] | [INFO] [stdout] 742 | g.before(Method::ANY, "admin/:name", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:743:50 [INFO] [stdout] | [INFO] [stdout] 743 | g.after(Method::ANY, "admin/:name", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:745:39 [INFO] [stdout] | [INFO] [stdout] 745 | g.any("admin/:name:i32", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:746:35 [INFO] [stdout] | [INFO] [stdout] 746 | g.any("admin/:name", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:747:43 [INFO] [stdout] | [INFO] [stdout] 747 | g.any("admin/:name/:id:u32", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/router.rs:748:39 [INFO] [stdout] | [INFO] [stdout] 748 | g.post("/admin/login1/", |c| {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `queries` is never read [INFO] [stdout] --> src/router.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 56 | params: HashMap, [INFO] [stdout] 57 | queries: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `before`, `after`, and `params` are never read [INFO] [stdout] --> src/router.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 332 | struct MatchedRoute<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 333 | before: Vec<&'a Route>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 334 | route: Option<&'a Route>, [INFO] [stdout] 335 | after: Vec<&'a Route>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 336 | // 地址参数 [INFO] [stdout] 337 | params: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MatchedRoute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `path`, and `has_slash` are never read [INFO] [stdout] --> src/router.rs:452:5 [INFO] [stdout] | [INFO] [stdout] 447 | struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 452 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 464 | has_slash: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/router.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn group(&mut self, path: &str) -> RouterGroup { [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] 185 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/router.rs:202:20 [INFO] [stdout] | [INFO] [stdout] 202 | fn match_route(&self, method: Method, path: &str) -> Option { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ------------ 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] 202 | fn match_route(&self, method: Method, path: &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/router.rs:388:18 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn group(&mut self, path: &str) -> RouterGroup { [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] 388 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.40s [INFO] running `Command { std: "docker" "inspect" "c1c5bbce3b536382d4aa5dde2aeefdcb7997289ae1b0c4564c695a4e575527f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1c5bbce3b536382d4aa5dde2aeefdcb7997289ae1b0c4564c695a4e575527f9", kill_on_drop: false }` [INFO] [stdout] c1c5bbce3b536382d4aa5dde2aeefdcb7997289ae1b0c4564c695a4e575527f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a4603d178a4b04d5ae669d1a11a497999ddd419fb8f0da22af04d02d0e5e4c6e [INFO] running `Command { std: "docker" "start" "-a" "a4603d178a4b04d5ae669d1a11a497999ddd419fb8f0da22af04d02d0e5e4c6e", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `addr` [INFO] [stderr] --> src/router.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | addr: SocketAddr, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/router.rs:96:23 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dir` [INFO] [stderr] --> src/router.rs:96:35 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn static_dir(path: &str, dir: &str) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `uri` [INFO] [stderr] --> src/router.rs:99:24 [INFO] [stderr] | [INFO] [stderr] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_uri` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filepath` [INFO] [stderr] --> src/router.rs:99:35 [INFO] [stderr] | [INFO] [stderr] 99 | pub fn static_file(uri: &str, filepath: &str) {} [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `host` [INFO] [stderr] --> src/router.rs:177:20 [INFO] [stderr] | [INFO] [stderr] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pem` [INFO] [stderr] --> src/router.rs:177:32 [INFO] [stderr] | [INFO] [stderr] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pem` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/router.rs:177:43 [INFO] [stderr] | [INFO] [stderr] 177 | pub fn run_tls(host: &str, pem: &str, key: &str) {} [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] [INFO] [stderr] warning: field `queries` is never read [INFO] [stderr] --> src/router.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 55 | pub struct Context { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 56 | params: HashMap, [INFO] [stderr] 57 | queries: HashMap, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `before`, `after`, and `params` are never read [INFO] [stderr] --> src/router.rs:333:5 [INFO] [stderr] | [INFO] [stderr] 332 | struct MatchedRoute<'a> { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 333 | before: Vec<&'a Route>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 334 | route: Option<&'a Route>, [INFO] [stderr] 335 | after: Vec<&'a Route>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 336 | // 地址参数 [INFO] [stderr] 337 | params: Option>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MatchedRoute` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `name`, `path`, and `has_slash` are never read [INFO] [stderr] --> src/router.rs:452:5 [INFO] [stderr] | [INFO] [stderr] 447 | struct Route { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 452 | name: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 455 | path: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 464 | has_slash: bool, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/router.rs:185:18 [INFO] [stderr] | [INFO] [stderr] 185 | pub fn group(&mut self, path: &str) -> RouterGroup { [INFO] [stderr] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 185 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/router.rs:202:20 [INFO] [stderr] | [INFO] [stderr] 202 | fn match_route(&self, method: Method, path: &str) -> Option { [INFO] [stderr] | ^^^^^ this lifetime flows to the output ------------ the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 202 | fn match_route(&self, method: Method, path: &str) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/router.rs:388:18 [INFO] [stderr] | [INFO] [stderr] 388 | pub fn group(&mut self, path: &str) -> RouterGroup { [INFO] [stderr] | ^^^^^^^^^ ----------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 388 | pub fn group(&mut self, path: &str) -> RouterGroup<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:671:31 [INFO] [stderr] | [INFO] [stderr] 671 | r.post("/:user/:id", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:675:43 [INFO] [stderr] | [INFO] [stderr] 675 | g.get("admin/:name:i32", |mut c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:676:36 [INFO] [stderr] | [INFO] [stderr] 676 | g.post("/admin/u32/", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:680:41 [INFO] [stderr] | [INFO] [stderr] 680 | g1.put("admin/login/", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:681:46 [INFO] [stderr] | [INFO] [stderr] 681 | g1.delete("/admin/login1/", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:687:49 [INFO] [stderr] | [INFO] [stderr] 687 | g.add(Method::GET, "/admin/login", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:688:53 [INFO] [stderr] | [INFO] [stderr] 688 | g.add(Method::DELETE, "/admin/login1", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:692:58 [INFO] [stderr] | [INFO] [stderr] 692 | g1.add(Method::OPTIONS, "/admin/login", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:693:55 [INFO] [stderr] | [INFO] [stderr] 693 | g1.add(Method::ANY, "/admin/login1", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/router.rs:675:39 [INFO] [stderr] | [INFO] [stderr] 675 | g.get("admin/:name:i32", |mut c| {}); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `route` [INFO] [stderr] --> src/router.rs:751:13 [INFO] [stderr] | [INFO] [stderr] 751 | let route = r.match_route(Method::GET, "/v1/admin/zhang山/23423"); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_route` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:742:51 [INFO] [stderr] | [INFO] [stderr] 742 | g.before(Method::ANY, "admin/:name", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:743:50 [INFO] [stderr] | [INFO] [stderr] 743 | g.after(Method::ANY, "admin/:name", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:745:39 [INFO] [stderr] | [INFO] [stderr] 745 | g.any("admin/:name:i32", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:746:35 [INFO] [stderr] | [INFO] [stderr] 746 | g.any("admin/:name", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:747:43 [INFO] [stderr] | [INFO] [stderr] 747 | g.any("admin/:name/:id:u32", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/router.rs:748:39 [INFO] [stderr] | [INFO] [stderr] 748 | g.post("/admin/login1/", |c| {}); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: `fast-router` (lib) generated 14 warnings (run `cargo fix --lib -p fast-router` to apply 3 suggestions) [INFO] [stderr] warning: `fast-router` (lib test) generated 31 warnings (14 duplicates) (run `cargo fix --lib -p fast-router --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/fast_router-d63a90e3ee1a5034) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test router::tests::test_filters ... ok [INFO] [stdout] test router::tests::test_concat ... ok [INFO] [stdout] test router::tests::test_path2regex ... ok [INFO] [stdout] test router::tests::test_path_param_to_regex ... ok [INFO] [stdout] test router::tests::test_regex ... ok [INFO] [stdout] test router::tests::test_router_match ... ok [INFO] [stdout] test router::tests::test_router ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a4603d178a4b04d5ae669d1a11a497999ddd419fb8f0da22af04d02d0e5e4c6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4603d178a4b04d5ae669d1a11a497999ddd419fb8f0da22af04d02d0e5e4c6e", kill_on_drop: false }` [INFO] [stdout] a4603d178a4b04d5ae669d1a11a497999ddd419fb8f0da22af04d02d0e5e4c6e