[INFO] fetching crate socks-router 0.2.2... [INFO] testing socks-router-0.2.2 against 1.91.0 for beta-1.92-2 [INFO] extracting crate socks-router 0.2.2 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate socks-router 0.2.2 [INFO] finished tweaking crates.io crate socks-router 0.2.2 [INFO] tweaked toml for crates.io crate socks-router 0.2.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate socks-router 0.2.2 on toolchain 1.91.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate socks-router 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded futures-sink v0.3.26 [INFO] [stderr] Downloaded futures-task v0.3.26 [INFO] [stderr] Downloaded rustls-pemfile v0.2.1 [INFO] [stderr] Downloaded multipart v0.18.0 [INFO] [stderr] Downloaded kqueue-sys v1.0.3 [INFO] [stderr] Downloaded is-terminal v0.4.3 [INFO] [stderr] Downloaded async-trait v0.1.64 [INFO] [stderr] Downloaded filetime v0.2.20 [INFO] [stderr] Downloaded kqueue v1.0.7 [INFO] [stderr] Downloaded notify v5.1.0 [INFO] [stderr] Downloaded headers v0.3.8 [INFO] [stderr] Downloaded tokio-util v0.7.7 [INFO] [stderr] Downloaded warp v0.3.3 [INFO] [stderr] Downloaded futures-util v0.3.26 [INFO] [stderr] Downloaded sha1 v0.10.5 [INFO] [stderr] Downloaded hyper v0.14.24 [INFO] [stderr] Downloaded clap v4.1.4 [INFO] [stderr] Downloaded futures-channel v0.3.26 [INFO] [stderr] Downloaded clap_lex v0.3.1 [INFO] [stderr] Downloaded futures-core v0.3.26 [INFO] [stderr] Downloaded tokio v1.25.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7df1817c9320fa7cf80cab1abe243ceb0f2d5e3f6df268348bcab6b5ffb45684 [INFO] running `Command { std: "docker" "start" "-a" "7df1817c9320fa7cf80cab1abe243ceb0f2d5e3f6df268348bcab6b5ffb45684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7df1817c9320fa7cf80cab1abe243ceb0f2d5e3f6df268348bcab6b5ffb45684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7df1817c9320fa7cf80cab1abe243ceb0f2d5e3f6df268348bcab6b5ffb45684", kill_on_drop: false }` [INFO] [stdout] 7df1817c9320fa7cf80cab1abe243ceb0f2d5e3f6df268348bcab6b5ffb45684 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6df56c952d52bc0f7916e0bf7e2976b3632009d40824a278a2021bd4074b94b3 [INFO] running `Command { std: "docker" "start" "-a" "6df56c952d52bc0f7916e0bf7e2976b3632009d40824a278a2021bd4074b94b3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.51 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling io-lifetimes v1.0.5 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rustix v0.36.8 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling anyhow v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.64 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling clap_lex v0.3.1 [INFO] [stderr] Compiling inotify v0.9.6 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling filetime v0.2.20 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling notify v5.1.0 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling tracing-subscriber v0.3.16 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling headers v0.3.8 [INFO] [stderr] Compiling is-terminal v0.4.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling clap_derive v4.1.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tungstenite v0.17.3 [INFO] [stderr] Compiling clap v4.1.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling tokio-util v0.7.7 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling tokio-tungstenite v0.17.2 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling hyper v0.14.24 [INFO] [stderr] Compiling warp v0.3.3 [INFO] [stderr] Compiling socks-router v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `info_span` [INFO] [stdout] --> src/main.rs:13:47 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{debug, debug_span, error, info, info_span, trace, Instrument}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/pkts/mod.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{self, write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse::IResult` [INFO] [stdout] --> src/pkts/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use parse::IResult; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/server/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_tcp_connect_client` is never used [INFO] [stdout] --> src/client.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn make_tcp_connect_client( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_u8` is never used [INFO] [stdout] --> src/pkts/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl AuthMethod { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn as_u8(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pkts/mod.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl AuthMethodProposal { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 81 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `address_port_into_socket_addr` is never used [INFO] [stdout] --> src/pkts/mod.rs:240:10 [INFO] [stdout] | [INFO] [stdout] 240 | async fn address_port_into_socket_addr>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_socketaddr`, `bind`, and `udp_associate` are never used [INFO] [stdout] --> src/pkts/mod.rs:281:18 [INFO] [stdout] | [INFO] [stdout] 280 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 281 | pub async fn as_socketaddr(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn bind(address: Address, port: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn udp_associate(address: Address, port: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_socketaddr` is never used [INFO] [stdout] --> src/pkts/mod.rs:395:18 [INFO] [stdout] | [INFO] [stdout] 394 | impl Reply { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 395 | pub async fn as_socketaddr(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotUtf8Domain` is never constructed [INFO] [stdout] --> src/pkts/parse.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | NotUtf8Domain(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `authenticator` and `router` are never read [INFO] [stdout] --> src/server/mod.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct Server { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | authenticator: A, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 86 | router: R, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Server` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_debounced` is never used [INFO] [stdout] --> src/watcher.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl AsyncWatcher { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn next_debounced(&mut self, interval: Duration) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:262:32 [INFO] [stdout] | [INFO] [stdout] 262 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Command` [INFO] [stdout] 263 | #[repr(u8)] [INFO] [stdout] 264 | pub enum Command { [INFO] [stdout] | ------- `Command` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:262:47 [INFO] [stdout] | [INFO] [stdout] 262 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Command` [INFO] [stdout] 263 | #[repr(u8)] [INFO] [stdout] 264 | pub enum Command { [INFO] [stdout] | ------- `Command` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:341:32 [INFO] [stdout] | [INFO] [stdout] 341 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ReplyCode` [INFO] [stdout] 342 | #[repr(u8)] [INFO] [stdout] 343 | pub enum ReplyCode { [INFO] [stdout] | --------- `ReplyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:341:47 [INFO] [stdout] | [INFO] [stdout] 341 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ReplyCode` [INFO] [stdout] 342 | #[repr(u8)] [INFO] [stdout] 343 | pub enum ReplyCode { [INFO] [stdout] | --------- `ReplyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn read(&self) -> OnceRwLockReadGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 156 | pub fn read(&self) -> OnceRwLockReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn write(&self) -> OnceRwLockWriteGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 162 | pub fn write(&self) -> OnceRwLockWriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 54.15s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "6df56c952d52bc0f7916e0bf7e2976b3632009d40824a278a2021bd4074b94b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6df56c952d52bc0f7916e0bf7e2976b3632009d40824a278a2021bd4074b94b3", kill_on_drop: false }` [INFO] [stdout] 6df56c952d52bc0f7916e0bf7e2976b3632009d40824a278a2021bd4074b94b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a5a44ff90542adcabfb94ad3811726ed4adbf7c8740b4f4d71dfa485452466f [INFO] running `Command { std: "docker" "start" "-a" "8a5a44ff90542adcabfb94ad3811726ed4adbf7c8740b4f4d71dfa485452466f", kill_on_drop: false }` [INFO] [stderr] Compiling socks-router v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `info_span` [INFO] [stdout] --> src/main.rs:13:47 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{debug, debug_span, error, info, info_span, trace, Instrument}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/pkts/mod.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::{self, write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse::IResult` [INFO] [stdout] --> src/pkts/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use parse::IResult; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/server/mod.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_tcp_connect_client` is never used [INFO] [stdout] --> src/client.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn make_tcp_connect_client( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_u8` is never used [INFO] [stdout] --> src/pkts/mod.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl AuthMethod { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn as_u8(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pkts/mod.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl AuthMethodProposal { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 81 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `address_port_into_socket_addr` is never used [INFO] [stdout] --> src/pkts/mod.rs:240:10 [INFO] [stdout] | [INFO] [stdout] 240 | async fn address_port_into_socket_addr>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_socketaddr`, `bind`, and `udp_associate` are never used [INFO] [stdout] --> src/pkts/mod.rs:281:18 [INFO] [stdout] | [INFO] [stdout] 280 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 281 | pub async fn as_socketaddr(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | pub fn bind(address: Address, port: u16) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub fn udp_associate(address: Address, port: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_socketaddr` is never used [INFO] [stdout] --> src/pkts/mod.rs:395:18 [INFO] [stdout] | [INFO] [stdout] 394 | impl Reply { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 395 | pub async fn as_socketaddr(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotUtf8Domain` is never constructed [INFO] [stdout] --> src/pkts/parse.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | NotUtf8Domain(Vec), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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 `authenticator` and `router` are never read [INFO] [stdout] --> src/server/mod.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct Server { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 85 | authenticator: A, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 86 | router: R, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Server` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_debounced` is never used [INFO] [stdout] --> src/watcher.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl AsyncWatcher { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn next_debounced(&mut self, interval: Duration) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:262:32 [INFO] [stdout] | [INFO] [stdout] 262 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Command` [INFO] [stdout] 263 | #[repr(u8)] [INFO] [stdout] 264 | pub enum Command { [INFO] [stdout] | ------- `Command` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:262:47 [INFO] [stdout] | [INFO] [stdout] 262 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Command` [INFO] [stdout] 263 | #[repr(u8)] [INFO] [stdout] 264 | pub enum Command { [INFO] [stdout] | ------- `Command` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:341:32 [INFO] [stdout] | [INFO] [stdout] 341 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ReplyCode` [INFO] [stdout] 342 | #[repr(u8)] [INFO] [stdout] 343 | pub enum ReplyCode { [INFO] [stdout] | --------- `ReplyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/pkts/mod.rs:341:47 [INFO] [stdout] | [INFO] [stdout] 341 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ReplyCode` [INFO] [stdout] 342 | #[repr(u8)] [INFO] [stdout] 343 | pub enum ReplyCode { [INFO] [stdout] | --------- `ReplyCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn read(&self) -> OnceRwLockReadGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 156 | pub fn read(&self) -> OnceRwLockReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn write(&self) -> OnceRwLockWriteGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 162 | pub fn write(&self) -> OnceRwLockWriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.32s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "8a5a44ff90542adcabfb94ad3811726ed4adbf7c8740b4f4d71dfa485452466f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a5a44ff90542adcabfb94ad3811726ed4adbf7c8740b4f4d71dfa485452466f", kill_on_drop: false }` [INFO] [stdout] 8a5a44ff90542adcabfb94ad3811726ed4adbf7c8740b4f4d71dfa485452466f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 42ec7c21c072dc69d0cc55acee1f17c2ecfb98f7b4f5a5b081d44fdfe3c778f4 [INFO] running `Command { std: "docker" "start" "-a" "42ec7c21c072dc69d0cc55acee1f17c2ecfb98f7b4f5a5b081d44fdfe3c778f4", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `info_span` [INFO] [stderr] --> src/main.rs:13:47 [INFO] [stderr] | [INFO] [stderr] 13 | use tracing::{debug, debug_span, error, info, info_span, trace, Instrument}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `write` [INFO] [stderr] --> src/pkts/mod.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | fmt::{self, write}, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `parse::IResult` [INFO] [stderr] --> src/pkts/mod.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub use parse::IResult; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stderr] --> src/server/mod.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | use tracing::{debug, error, info, trace, warn}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `make_tcp_connect_client` is never used [INFO] [stderr] --> src/client.rs:29:14 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn make_tcp_connect_client( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `as_u8` is never used [INFO] [stderr] --> src/pkts/mod.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 47 | impl AuthMethod { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 70 | pub fn as_u8(&self) -> u8 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/pkts/mod.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 80 | impl AuthMethodProposal { [INFO] [stderr] | ----------------------- associated function in this implementation [INFO] [stderr] 81 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `address_port_into_socket_addr` is never used [INFO] [stderr] --> src/pkts/mod.rs:240:10 [INFO] [stderr] | [INFO] [stderr] 240 | async fn address_port_into_socket_addr>( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `as_socketaddr`, `bind`, and `udp_associate` are never used [INFO] [stderr] --> src/pkts/mod.rs:281:18 [INFO] [stderr] | [INFO] [stderr] 280 | impl Request { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] 281 | pub async fn as_socketaddr(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 294 | pub fn bind(address: Address, port: u16) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 302 | pub fn udp_associate(address: Address, port: u16) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_socketaddr` is never used [INFO] [stderr] --> src/pkts/mod.rs:395:18 [INFO] [stderr] | [INFO] [stderr] 394 | impl Reply { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 395 | pub async fn as_socketaddr(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `NotUtf8Domain` is never constructed [INFO] [stderr] --> src/pkts/parse.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 12 | pub enum Error { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 26 | NotUtf8Domain(Vec), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `authenticator` and `router` are never read [INFO] [stderr] --> src/server/mod.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 82 | pub struct Server { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 85 | authenticator: A, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 86 | router: R, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Server` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `next_debounced` is never used [INFO] [stderr] --> src/watcher.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 13 | impl AsyncWatcher { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 39 | pub async fn next_debounced(&mut self, interval: Duration) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pkts/mod.rs:262:32 [INFO] [stderr] | [INFO] [stderr] 262 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Command` [INFO] [stderr] 263 | #[repr(u8)] [INFO] [stderr] 264 | pub enum Command { [INFO] [stderr] | ------- `Command` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pkts/mod.rs:262:47 [INFO] [stderr] | [INFO] [stderr] 262 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Command` [INFO] [stderr] 263 | #[repr(u8)] [INFO] [stderr] 264 | pub enum Command { [INFO] [stderr] | ------- `Command` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pkts/mod.rs:341:32 [INFO] [stderr] | [INFO] [stderr] 341 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ReplyCode` [INFO] [stderr] 342 | #[repr(u8)] [INFO] [stderr] 343 | pub enum ReplyCode { [INFO] [stderr] | --------- `ReplyCode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/pkts/mod.rs:341:47 [INFO] [stderr] | [INFO] [stderr] 341 | #[derive(Debug, PartialEq, Eq, FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ReplyCode` [INFO] [stderr] 342 | #[repr(u8)] [INFO] [stderr] 343 | pub enum ReplyCode { [INFO] [stderr] | --------- `ReplyCode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/utils.rs:156:17 [INFO] [stderr] | [INFO] [stderr] 156 | pub fn read(&self) -> OnceRwLockReadGuard { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 156 | pub fn read(&self) -> OnceRwLockReadGuard<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/utils.rs:162:18 [INFO] [stderr] | [INFO] [stderr] 162 | pub fn write(&self) -> OnceRwLockWriteGuard { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 162 | pub fn write(&self) -> OnceRwLockWriteGuard<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `socks-router` (bin "socks-router" test) generated 19 warnings (run `cargo fix --bin "socks-router" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/socks_router-ca41d8a247a1cc4b) [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test domain::tests::empty_domain_component ... ok [INFO] [stdout] test domain::tests::domain_length ... ok [INFO] [stdout] test pkts::tests::pack_request_bind_ipv6 ... ok [INFO] [stdout] test pkts::tests::pack_request_connect_domain ... ok [INFO] [stdout] test pkts::tests::pack_request_udpassoc_zeros ... ok [INFO] [stdout] test domain::tests::single_domain_components ... ok [INFO] [stdout] test pkts::tests::parse_reply_packet ... ok [INFO] [stdout] test pkts::tests::parse_auth_method_proposal ... ok [INFO] [stdout] test pkts::tests::parse_request_packet ... ok [INFO] [stdout] test pkts::tests::parse_version ... ok [INFO] [stdout] test utils::tests::test_static_once_rwlock ... ok [INFO] [stdout] test utils::tests::test_recv_pkt ... ok [INFO] [stdout] test utils::tests::test_recv_pkt_buf ... ok [INFO] [stdout] test utils::tests::test_send_pkt ... ok [INFO] [stdout] test domain::tests::full_domains ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "42ec7c21c072dc69d0cc55acee1f17c2ecfb98f7b4f5a5b081d44fdfe3c778f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42ec7c21c072dc69d0cc55acee1f17c2ecfb98f7b4f5a5b081d44fdfe3c778f4", kill_on_drop: false }` [INFO] [stdout] 42ec7c21c072dc69d0cc55acee1f17c2ecfb98f7b4f5a5b081d44fdfe3c778f4