[INFO] fetching crate async_http_router 0.0.4... [INFO] checking async_http_router-0.0.4 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate async_http_router 0.0.4 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate async_http_router 0.0.4 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate async_http_router 0.0.4 [INFO] finished tweaking crates.io crate async_http_router 0.0.4 [INFO] tweaked toml for crates.io crate async_http_router 0.0.4 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate crates.io crate async_http_router 0.0.4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-7/source/tests/test.rs [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro-nested v0.1.5 [INFO] [stderr] Downloaded serde_derive v1.0.78 [INFO] [stderr] Downloaded pin-project-internal v0.4.16 [INFO] [stderr] Downloaded serde_json v1.0.27 [INFO] [stderr] Downloaded http v0.1.12 [INFO] [stderr] Downloaded pin-project v0.4.16 [INFO] [stderr] Downloaded syn v1.0.21 [INFO] [stderr] Downloaded openssl v0.10.11 [INFO] [stderr] Downloaded quote v1.0.5 [INFO] [stderr] Downloaded tempfile v3.0.3 [INFO] [stderr] Downloaded syn v0.15.3 [INFO] [stderr] Downloaded cc v1.0.24 [INFO] [stderr] Downloaded mylogger v0.2.0 [INFO] [stderr] Downloaded serde v1.0.78 [INFO] [stderr] Downloaded openssl-sys v0.9.35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e5cfc8f8a51dbfa3da4306b229b67d43a951924621854147e2cd44f18aeec8e6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e5cfc8f8a51dbfa3da4306b229b67d43a951924621854147e2cd44f18aeec8e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5cfc8f8a51dbfa3da4306b229b67d43a951924621854147e2cd44f18aeec8e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5cfc8f8a51dbfa3da4306b229b67d43a951924621854147e2cd44f18aeec8e6", kill_on_drop: false }` [INFO] [stdout] e5cfc8f8a51dbfa3da4306b229b67d43a951924621854147e2cd44f18aeec8e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffd14be2e57eec3c43c33fc59b74871e5029a8c111f8acdeadffcd6618cfe23d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ffd14be2e57eec3c43c33fc59b74871e5029a8c111f8acdeadffcd6618cfe23d", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/tests/test.rs [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Checking futures v0.1.24 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking byteorder v1.2.6 [INFO] [stderr] Checking rand_core v0.2.1 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking crossbeam-utils v0.5.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking itoa v0.4.3 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling cc v1.0.24 [INFO] [stderr] Checking nodrop v0.1.12 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling proc-macro-nested v0.1.5 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking pin-project-lite v0.1.5 [INFO] [stderr] Compiling proc-macro2 v0.4.19 [INFO] [stderr] Compiling httparse v1.3.2 [INFO] [stderr] Checking indexmap v1.0.1 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling openssl v0.10.11 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Compiling serde v1.0.78 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling native-tls v0.2.1 [INFO] [stderr] Checking string v0.1.1 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Compiling regex v1.0.5 [INFO] [stderr] Checking utf8-ranges v1.0.1 [INFO] [stderr] Checking base64 v0.12.1 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking owning_ref v0.3.3 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking regex-syntax v0.6.2 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Checking smallvec v0.6.5 [INFO] [stderr] Checking lock_api v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking aho-corasick v0.6.8 [INFO] [stderr] Checking tokio-executor v0.1.4 [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Checking crossbeam-epoch v0.5.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking tokio-current-thread v0.1.1 [INFO] [stderr] Checking tokio-timer v0.2.6 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Checking crossbeam-deque v0.6.1 [INFO] [stderr] Checking crossbeam-queue v0.2.2 [INFO] [stderr] Checking crossbeam-channel v0.4.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.35 [INFO] [stderr] Compiling syn v0.15.3 [INFO] [stderr] Checking bytes v0.4.10 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking crossbeam v0.7.3 [INFO] [stderr] Checking tokio-io v0.1.8 [INFO] [stderr] Checking http v0.1.12 [INFO] [stderr] Checking tokio-codec v0.1.0 [INFO] [stderr] Checking tokio-threadpool v0.1.6 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking tokio-fs v0.1.3 [INFO] [stderr] Checking tokio-reactor v0.1.5 [INFO] [stderr] Checking tokio-uds v0.2.1 [INFO] [stderr] Checking tokio-tcp v0.1.1 [INFO] [stderr] Checking tokio-udp v0.1.2 [INFO] [stderr] Checking tokio v0.1.8 [INFO] [stderr] Checking serde_json v1.0.27 [INFO] [stderr] Checking h2 v0.1.12 [INFO] [stderr] Compiling serde_derive v1.0.78 [INFO] [stderr] Checking hyper v0.12.9 [INFO] [stderr] Compiling pin-project-internal v0.4.16 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.31 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking hyper-tls v0.3.0 [INFO] [stderr] Checking pin-project v0.4.16 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking mylogger v0.2.0 [INFO] [stderr] Checking h2 v0.2.5 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking hyper v0.13.5 [INFO] [stderr] Checking async_http_router v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `INDEX` [INFO] [stdout] --> src/class_view.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::constraint::{INDEX, NOTFOUND}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `future` [INFO] [stdout] --> src/class_view.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::{future, Future}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_tls` [INFO] [stdout] --> src/class_view.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper_tls; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLockReadGuard`, `RwLock` [INFO] [stdout] --> src/router.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::{RwLock, RwLockReadGuard}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `INDEX` [INFO] [stdout] --> src/class_view.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::constraint::{INDEX, NOTFOUND}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `future` [INFO] [stdout] --> src/class_view.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::{future, Future}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_tls` [INFO] [stdout] --> src/class_view.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use hyper_tls; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RwLockReadGuard`, `RwLock` [INFO] [stdout] --> src/router.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::{RwLock, RwLockReadGuard}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(where_clauses_object_safety)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ ...because method `post` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `post` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] ... [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ ...because method `get` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `get` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] ... [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ ...because method `default` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `default` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] ... [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ ...because method `dispatch` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `dispatch` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/class_view.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> src/class_view.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/class_view.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> src/class_view.rs:17:45 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router` [INFO] [stdout] --> src/router.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn handle_url<'a>(router: Arc, req: Request) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(where_clauses_object_safety)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ ...because method `post` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `post` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] ... [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ ...because method `get` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `get` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] ... [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ ...because method `default` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `default` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait HttpWays { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] ... [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ ...because method `dispatch` references the `Self` type in its `where` clause [INFO] [stdout] = help: consider moving `dispatch` to another trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/router.rs:17:50 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn handle_url<'a>(router: Arc, req: Request) -> Result> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req_info` [INFO] [stdout] --> src/router.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let req_info = router.parse_url(url, matched_pattern); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> src/router.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let aa = req.extensions_mut().get_mut::().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/class_view.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> src/class_view.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/class_view.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> src/class_view.rs:17:45 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router` [INFO] [stdout] --> src/router.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn handle_url<'a>(router: Arc, req: Request) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/router.rs:17:50 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn handle_url<'a>(router: Arc, req: Request) -> Result> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req_info` [INFO] [stdout] --> src/router.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | let req_info = router.parse_url(url, matched_pattern); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> src/router.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let aa = req.extensions_mut().get_mut::().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INDEX`, `NOTFOUND` [INFO] [stdout] --> tests/view.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use async_http_router::constraint::{INDEX, NOTFOUND}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/view.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::client::HttpConnector` [INFO] [stdout] --> tests/view.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::client::HttpConnector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Method`, `Server`, `StatusCode` [INFO] [stdout] --> tests/view.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{http::Result, Body, Client, Method, Request, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> tests/view.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> tests/view.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `MutexGuard`, `Mutex` [INFO] [stdout] --> tests/view.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::{Arc, Mutex, MutexGuard}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INDEX`, `NOTFOUND` [INFO] [stdout] --> tests/view.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use async_http_router::constraint::{INDEX, NOTFOUND}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/view.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::client::HttpConnector` [INFO] [stdout] --> tests/view.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::client::HttpConnector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Method`, `Server`, `StatusCode` [INFO] [stdout] --> tests/view.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{http::Result, Body, Client, Method, Request, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> tests/view.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> tests/view.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `MutexGuard`, `Mutex` [INFO] [stdout] --> tests/view.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::{Arc, Mutex, MutexGuard}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono` [INFO] [stdout] --> tests/test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_tls` [INFO] [stdout] --> tests/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper_tls; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/test.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> tests/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_http_router::class_view::HttpWays` [INFO] [stdout] --> tests/test.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use async_http_router::class_view::HttpWays; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_url` [INFO] [stdout] --> tests/test.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use async_http_router::router::{handle_url, Router}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Method`, `Request`, `Response`, `Result`, `StatusCode` [INFO] [stdout] --> tests/test.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use hyper::{Body, Method, Request, Response, Result, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> tests/test.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> tests/test.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> tests/test.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> tests/test.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> tests/test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude::*` [INFO] [stdout] --> tests/test.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Runtime` [INFO] [stdout] --> tests/test.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_http_router::constraint::NOTFOUND` [INFO] [stdout] --> tests/test.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use async_http_router::constraint::NOTFOUND; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INDEX`, `NOTFOUND` [INFO] [stdout] --> tests/view.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use async_http_router::constraint::{INDEX, NOTFOUND}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/view.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::client::HttpConnector` [INFO] [stdout] --> tests/view.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::client::HttpConnector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Method`, `Server`, `StatusCode` [INFO] [stdout] --> tests/view.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{http::Result, Body, Client, Method, Request, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> tests/view.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> tests/view.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `MutexGuard`, `Mutex` [INFO] [stdout] --> tests/view.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::{Arc, Mutex, MutexGuard}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono` [INFO] [stdout] --> tests/test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_tls` [INFO] [stdout] --> tests/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper_tls; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/test.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> tests/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_http_router::class_view::HttpWays` [INFO] [stdout] --> tests/test.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use async_http_router::class_view::HttpWays; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_url` [INFO] [stdout] --> tests/test.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use async_http_router::router::{handle_url, Router}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Method`, `Request`, `Response`, `Result`, `StatusCode` [INFO] [stdout] --> tests/test.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use hyper::{Body, Method, Request, Response, Result, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> tests/test.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> tests/test.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> tests/test.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> tests/test.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> tests/test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude::*` [INFO] [stdout] --> tests/test.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Runtime` [INFO] [stdout] --> tests/test.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_http_router::constraint::NOTFOUND` [INFO] [stdout] --> tests/test.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use async_http_router::constraint::NOTFOUND; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INDEX`, `NOTFOUND` [INFO] [stdout] --> tests/view.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use async_http_router::constraint::{INDEX, NOTFOUND}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/view.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::client::HttpConnector` [INFO] [stdout] --> tests/view.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::client::HttpConnector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Method`, `Server`, `StatusCode` [INFO] [stdout] --> tests/view.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{http::Result, Body, Client, Method, Request, Response, Server, StatusCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> tests/view.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [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 import: `serde_json` [INFO] [stdout] --> tests/view.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `MutexGuard`, `Mutex` [INFO] [stdout] --> tests/view.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::{Arc, Mutex, MutexGuard}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono` [INFO] [stdout] --> tests/test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper_tls` [INFO] [stdout] --> tests/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper_tls; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Future`, `Stream`, `future` [INFO] [stdout] --> tests/test.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{future, Future, Stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> tests/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_http_router::class_view::HttpWays` [INFO] [stdout] --> tests/test.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use async_http_router::class_view::HttpWays; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handle_url` [INFO] [stdout] --> tests/test.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use async_http_router::router::{handle_url, Router}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Body`, `Method`, `Request`, `Response`, `Result`, `StatusCode` [INFO] [stdout] --> tests/test.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use hyper::{Body, Method, Request, Response, Result, Server, StatusCode}; [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/test.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> tests/test.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> tests/test.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> tests/test.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> tests/test.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> tests/test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::prelude::*` [INFO] [stdout] --> tests/test.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Runtime` [INFO] [stdout] --> tests/test.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_http_router::constraint::NOTFOUND` [INFO] [stdout] --> tests/test.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use async_http_router::constraint::NOTFOUND; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [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: `re_url_matched` [INFO] [stdout] --> tests/view.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [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: variable does not need to be mutable [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [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: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(where_clauses_object_safety)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ the trait cannot be made into an object because method `post` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ the trait cannot be made into an object because method `get` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ the trait cannot be made into an object because method `default` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because method `dispatch` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> tests/view.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(where_clauses_object_safety)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ the trait cannot be made into an object because method `post` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ the trait cannot be made into an object because method `get` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ the trait cannot be made into an object because method `default` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because method `dispatch` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MyResult` [INFO] [stdout] --> tests/test.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | type MyResult = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(where_clauses_object_safety)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | async fn post(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^ the trait cannot be made into an object because method `post` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^ the trait cannot be made into an object because method `get` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | async fn default(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ the trait cannot be made into an object because method `default` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the trait `HttpWays` cannot be made into an object [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #51443 [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> /opt/rustwide/workdir/src/class_view.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | async fn dispatch(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^ the trait cannot be made into an object because method `dispatch` references the `Self` type in its `where` clause [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> tests/view.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MyResult` [INFO] [stdout] --> tests/test.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | type MyResult = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNIT_AK` [INFO] [stdout] --> tests/test.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | const UNIT_AK: &str = "sss"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNIT_SK` [INFO] [stdout] --> tests/test.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | const UNIT_SK: &str = "sss"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `re_url_matched` [INFO] [stdout] --> tests/view.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | async fn get(&self, req: Request, re_url_matched: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_re_url_matched` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> tests/view.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut response = Response::new(Body::empty()); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MyResult` [INFO] [stdout] --> tests/test.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | type MyResult = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "ffd14be2e57eec3c43c33fc59b74871e5029a8c111f8acdeadffcd6618cfe23d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffd14be2e57eec3c43c33fc59b74871e5029a8c111f8acdeadffcd6618cfe23d", kill_on_drop: false }` [INFO] [stdout] ffd14be2e57eec3c43c33fc59b74871e5029a8c111f8acdeadffcd6618cfe23d