[INFO] cloning repository https://github.com/monadplus/rust-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/monadplus/rust-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmonadplus%2Frust-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmonadplus%2Frust-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2fbdff8373380fbd50f7ee3a47ce43497e368181 [INFO] building monadplus/rust-playground against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmonadplus%2Frust-playground" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/monadplus/rust-playground [INFO] finished tweaking git repo https://github.com/monadplus/rust-playground [INFO] tweaked toml for git repo https://github.com/monadplus/rust-playground written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/monadplus/rust-playground on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/monadplus/rust-playground 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerofrom v0.1.3 [INFO] [stderr] Downloaded socket2 v0.5.6 [INFO] [stderr] Downloaded test-log v0.2.16 [INFO] [stderr] Downloaded tokio-stream v0.1.16 [INFO] [stderr] Downloaded once_cell v1.20.0 [INFO] [stderr] Downloaded toml_edit v0.22.21 [INFO] [stderr] Downloaded async-stream-impl v0.3.5 [INFO] [stderr] Downloaded inotify-sys v0.1.5 [INFO] [stderr] Downloaded prost v0.13.2 [INFO] [stderr] Downloaded borsh v1.4.0 [INFO] [stderr] Downloaded async-stream v0.3.5 [INFO] [stderr] Downloaded async-trait v0.1.82 [INFO] [stderr] Downloaded wait-timeout v0.2.0 [INFO] [stderr] Downloaded uuid v1.8.0 [INFO] [stderr] Downloaded proptest v1.5.0 [INFO] [stderr] Downloaded openssl v0.10.64 [INFO] [stderr] Downloaded hyper-util v0.1.8 [INFO] [stderr] Downloaded openssl-sys v0.9.102 [INFO] [stderr] Downloaded rustls v0.23.13 [INFO] [stderr] Downloaded derive_more-impl v1.0.0 [INFO] [stderr] Downloaded jsonschema v0.19.1 [INFO] [stderr] Downloaded fraction v0.15.3 [INFO] [stderr] Downloaded security-framework v2.10.0 [INFO] [stderr] Downloaded regex v1.10.4 [INFO] [stderr] Downloaded rkyv v0.7.44 [INFO] [stderr] Downloaded schemars v0.8.21 [INFO] [stderr] Downloaded ryu v1.0.17 [INFO] [stderr] Downloaded rkyv_derive v0.7.44 [INFO] [stderr] Downloaded humantime-serde v1.1.1 [INFO] [stderr] Downloaded iso8601 v0.6.1 [INFO] [stderr] Downloaded num-cmp v0.1.0 [INFO] [stderr] Downloaded uuid-simd v0.8.0 [INFO] [stderr] Downloaded borsh-derive v1.4.0 [INFO] [stderr] Downloaded serde_derive_internals v0.29.1 [INFO] [stderr] Downloaded signal-hook-tokio v0.3.1 [INFO] [stderr] Downloaded atomic-wait v1.1.0 [INFO] [stderr] Downloaded rustix v0.38.32 [INFO] [stderr] Downloaded derive_more v1.0.0 [INFO] [stderr] Downloaded indoc v2.0.5 [INFO] [stderr] Downloaded kqueue v1.0.8 [INFO] [stderr] Downloaded notify v6.1.1 [INFO] [stderr] Downloaded pretty_assertions v1.4.0 [INFO] [stderr] Downloaded rusty-fork v0.3.0 [INFO] [stderr] Downloaded prettyplease v0.2.17 [INFO] [stderr] Downloaded simdutf8 v0.1.4 [INFO] [stderr] Downloaded rust_decimal_macros v1.36.0 [INFO] [stderr] Downloaded schemars_derive v0.8.21 [INFO] [stderr] Downloaded test-log-macros v0.2.16 [INFO] [stderr] Downloaded zerocopy v0.8.5 [INFO] [stderr] Downloaded bytecount v0.6.7 [INFO] [stderr] Downloaded fsevent-sys v4.1.0 [INFO] [stderr] Downloaded inotify v0.9.6 [INFO] [stderr] Downloaded kqueue-sys v1.0.4 [INFO] [stderr] Downloaded yansi v0.5.1 [INFO] [stderr] Downloaded unarray v0.1.4 [INFO] [stderr] Downloaded anyhow v1.0.82 [INFO] [stderr] Downloaded prost-derive v0.13.2 [INFO] [stderr] Downloaded prost-types v0.13.2 [INFO] [stderr] Downloaded prost-build v0.13.2 [INFO] [stderr] Downloaded security-framework-sys v2.10.0 [INFO] [stderr] Downloaded fastrand v2.0.2 [INFO] [stderr] Downloaded tower v0.5.1 [INFO] [stderr] Downloaded zerocopy-derive v0.8.5 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f24f03f6d1dc480a653422afb0c6b4c64e03b7c4c1b5345cd22c99ad2dcc45ce [INFO] running `Command { std: "docker" "start" "-a" "f24f03f6d1dc480a653422afb0c6b4c64e03b7c4c1b5345cd22c99ad2dcc45ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f24f03f6d1dc480a653422afb0c6b4c64e03b7c4c1b5345cd22c99ad2dcc45ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f24f03f6d1dc480a653422afb0c6b4c64e03b7c4c1b5345cd22c99ad2dcc45ce", kill_on_drop: false }` [INFO] [stdout] f24f03f6d1dc480a653422afb0c6b4c64e03b7c4c1b5345cd22c99ad2dcc45ce [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3879ffae7f3a7d5258707f1f45d5302890a9e3421bc8d7c92212d260e51b91dd [INFO] running `Command { std: "docker" "start" "-a" "3879ffae7f3a7d5258707f1f45d5302890a9e3421bc8d7c92212d260e51b91dd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling once_cell v1.20.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling prettyplease v0.2.17 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling rustls-pki-types v1.8.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling rustls-pemfile v2.1.3 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling prost-derive v0.13.2 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling schemars v0.8.21 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling prost v0.13.2 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling prost-types v0.13.2 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling outref v0.5.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling zerocopy v0.8.5 [INFO] [stderr] Compiling uuid-simd v0.8.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling fraction v0.15.3 [INFO] [stderr] Compiling prost-build v0.13.2 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling schemars_derive v0.8.21 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling iso8601 v0.6.1 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling zerocopy-derive v0.8.5 [INFO] [stderr] Compiling num-cmp v0.1.0 [INFO] [stderr] Compiling bytecount v0.6.7 [INFO] [stderr] Compiling dyn-clone v1.0.17 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling rust_decimal_macros v1.36.0 [INFO] [stderr] Compiling async-trait v0.1.82 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tower v0.5.1 [INFO] [stderr] Compiling atomic-wait v1.1.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling humantime-serde v1.1.1 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling signal-hook-tokio v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.8 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.7 [INFO] [stderr] Compiling jsonschema v0.19.1 [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/cow.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [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: `rust_decimal_macros::dec` [INFO] [stdout] --> src/decimal.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/decimal.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/diy/channel/channel4.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `thread` [INFO] [stdout] --> src/diy/channel/channel5.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | }, [INFO] [stdout] 8 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `time::Duration` [INFO] [stdout] --> src/diy/channel/channel6.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::compiler_fence` [INFO] [stdout] --> src/experiment_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::compiler_fence; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::pin_mut` [INFO] [stdout] --> src/experiment_4.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::pin_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonschema::JSONSchema` [INFO] [stdout] --> src/json_schema.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use jsonschema::JSONSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `schema::RootSchema` and `schema_for` [INFO] [stdout] --> src/json_schema.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Value` and `json` [INFO] [stdout] --> src/json_schema.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/match_causes_deadlock.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> src/match_causes_deadlock.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt` and `stream::FuturesUnordered` [INFO] [stdout] --> src/unordered_futures.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::{stream::FuturesUnordered, StreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/stream.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let stream = stream::iter(1..100).map(|_| DB).flat_map(|mut db| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/from_str_radix.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut index = bytes.len() - 1; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lifetimes_1.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let x = if let Some(base) = self.base() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 46 | let _x = if let Some(base) = self.base() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 46 - let x = if let Some(base) = self.base() { [INFO] [stdout] 46 + let template::_ = if let Some(base) = self.base() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/stream.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(_db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named struct `DB` [INFO] [stdout] | [INFO] [stdout] 62 - fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] 62 + fn fetch<'a, 'e: 'a, T>(stream::DB: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci_compile_time` is never used [INFO] [stdout] --> src/compile_time.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | const fn fibonacci_compile_time(n: u32) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIB_100` is never used [INFO] [stdout] --> src/compile_time.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const FIB_100: u128 = fibonacci_compile_time(100); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/arc_swap.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_one` is never used [INFO] [stdout] --> src/arc_swap.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Counter { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 7 | fn add_one(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> src/async_trait.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | async fn foo() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hello` is never used [INFO] [stdout] --> src/async_trait.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Hello { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> src/async_trait.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Wrapper(A); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait` is never used [INFO] [stdout] --> src/async_trait.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait Trait { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nod` is never constructed [INFO] [stdout] --> src/box_dropping.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Nod { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ptr` is never constructed [INFO] [stdout] --> src/box_dropping.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Ptr { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/box_dropping.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Ptr { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 22 | fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime_ugly` is never used [INFO] [stdout] --> src/codewars/is_prime.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn is_prime_ugly(x: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/codewars/is_prime.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn is_prime(x: i64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_greater_eq` is never used [INFO] [stdout] --> src/compare_mixed_numeric_types.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_greater_eq(x: i64, y: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_less` is never used [INFO] [stdout] --> src/compare_mixed_numeric_types.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_less(x: i64, y: f64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COUNTER` is never used [INFO] [stdout] --> src/cow.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | static COUNTER: AtomicU8 = AtomicU8::new(0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cloned` is never constructed [INFO] [stdout] --> src/cow.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Cloned(T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> src/decimal.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Backend` is never used [INFO] [stdout] --> src/dispatch/dynamic.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Backend { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> src/dispatch/dynamic.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeBackend` is never constructed [INFO] [stdout] --> src/dispatch/dynamic.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct NegativeBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/dispatch/dynamic.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> src/dispatch/static_dispatch.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute` is never used [INFO] [stdout] --> src/dispatch/static_dispatch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl PositiveBackend { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 7 | #[inline(never)] [INFO] [stdout] 8 | fn compute(&self, number: u64) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/dispatch/static_dispatch.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/dyn_trait.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Foo` is never used [INFO] [stdout] --> src/enum_discriminant.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyA` is never constructed [INFO] [stdout] --> src/experiment_1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct MyA { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyB` is never constructed [INFO] [stdout] --> src/experiment_1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MyB; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_b` is never used [INFO] [stdout] --> src/experiment_1.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn to_b(_a: MyA) -> MyB { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyC` is never constructed [INFO] [stdout] --> src/experiment_1.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct MyC { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_c` is never used [INFO] [stdout] --> src/experiment_1.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn to_c(a: MyA) -> MyC { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Either` is never used [INFO] [stdout] --> src/experiment_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum Either { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Void` is never used [INFO] [stdout] --> src/experiment_2.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_left` is never used [INFO] [stdout] --> src/experiment_2.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn never_left(e: Either) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex` is never used [INFO] [stdout] --> src/experiment_3.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn from_hex(hex_string: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T1` is never constructed [INFO] [stdout] --> src/experiment_4.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct T1 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `a`, and `b` are never used [INFO] [stdout] --> src/experiment_4.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl T1 { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 12 | fn new(a: &str) -> Pin> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn a(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn b(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T2` is never constructed [INFO] [stdout] --> src/experiment_4.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct T2 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `a`, and `b` are never used [INFO] [stdout] --> src/experiment_4.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl T2 { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 49 | fn new(a: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn init(self: Pin<&mut Self>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn a(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn b(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseIntError` is never constructed [INFO] [stdout] --> src/from_str_radix.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct ParseIntError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntErrorKind` is never used [INFO] [stdout] --> src/from_str_radix.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum IntErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_str_radix` is never used [INFO] [stdout] --> src/from_str_radix.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn from_str_radix(input: &str, radix: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes_1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct A; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nothing` is never used [INFO] [stdout] --> src/lifetimes_1.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl A { [INFO] [stdout] | ------ method in this implementation [INFO] [stdout] 7 | fn nothing(&mut self) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Other` is never used [INFO] [stdout] --> src/lifetimes_1.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Other<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Base` is never used [INFO] [stdout] --> src/lifetimes_1.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | trait Base<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Super` is never used [INFO] [stdout] --> src/lifetimes_1.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Super<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unmovable` is never constructed [INFO] [stdout] --> src/pin.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Unmovable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pin.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Unmovable { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | fn new(data: String) -> Pin> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/serde.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BoolOrTime` is never used [INFO] [stdout] --> src/serde.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum BoolOrTime { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_disabled_field_2` is never used [INFO] [stdout] --> src/serde.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn deserialize_disabled_field_2<'de, D>(de: D) -> Result<(), D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_signals` is never used [INFO] [stdout] --> src/signal_hook.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | async fn handle_signals(mut signals: Signals) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_thread` is never used [INFO] [stdout] --> src/signal_hook.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | async fn main_thread() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DB` is never constructed [INFO] [stdout] --> src/stream.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct DB; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T` is never constructed [INFO] [stdout] --> src/stream.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct T; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch` is never used [INFO] [stdout] --> src/stream.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_value_ref` is never used [INFO] [stdout] --> src/stream.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | async fn stream_value_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_something` is never used [INFO] [stdout] --> src/unordered_futures.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | async fn do_something(i: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/channel/channel5.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn split(&mut self) -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 35 | pub fn split(&mut self) -> (Sender<'_, T>, Receiver<'_, T>) { [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/channel/channel6.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn split(&mut self) -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 39 | pub fn split(&mut self) -> (Sender<'_, T>, Receiver<'_, T>) { [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_1.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_2.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_3.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_1.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn read(&self) -> ReadGuard { [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] 23 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_1.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write(&self) -> WriteGuard { [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] 45 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_2.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read(&self) -> ReadGuard { [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] 26 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_2.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn write(&self) -> WriteGuard { [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] 48 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_3.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn read(&self) -> ReadGuard { [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] 30 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_3.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn write(&self) -> WriteGuard { [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] 54 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/spinlock.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lock(&self) -> LockGuard { [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] 24 | pub fn lock(&self) -> LockGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 28s [INFO] running `Command { std: "docker" "inspect" "3879ffae7f3a7d5258707f1f45d5302890a9e3421bc8d7c92212d260e51b91dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3879ffae7f3a7d5258707f1f45d5302890a9e3421bc8d7c92212d260e51b91dd", kill_on_drop: false }` [INFO] [stdout] 3879ffae7f3a7d5258707f1f45d5302890a9e3421bc8d7c92212d260e51b91dd [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2babc0fd2bdaeaa0bd4f4f6d40a00e2d070acad3d4cbfa9ab5cc0f750905e3e7 [INFO] running `Command { std: "docker" "start" "-a" "2babc0fd2bdaeaa0bd4f4f6d40a00e2d070acad3d4cbfa9ab5cc0f750905e3e7", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling fancy-regex v0.13.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling serde_spanned v0.6.7 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling winnow v0.6.18 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling prost-build v0.13.2 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling fraction v0.15.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling inotify v0.9.6 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling toml_edit v0.22.21 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling test-log-macros v0.2.16 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling zerofrom v0.1.3 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling pretty_assertions v1.4.0 [INFO] [stderr] Compiling proptest v1.5.0 [INFO] [stderr] Compiling notify v6.1.1 [INFO] [stderr] Compiling test-log v0.2.16 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling hyper-util v0.1.8 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.7 [INFO] [stderr] Compiling jsonschema v0.19.1 [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/cow.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [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: `rust_decimal_macros::dec` [INFO] [stdout] --> src/decimal.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/decimal.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/diy/channel/channel4.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `thread` [INFO] [stdout] --> src/diy/channel/channel5.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | }, [INFO] [stdout] 8 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `time::Duration` [INFO] [stdout] --> src/diy/channel/channel6.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::atomic::compiler_fence` [INFO] [stdout] --> src/experiment_1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::compiler_fence; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::pin_mut` [INFO] [stdout] --> src/experiment_4.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::pin_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonschema::JSONSchema` [INFO] [stdout] --> src/json_schema.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use jsonschema::JSONSchema; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `schema::RootSchema` and `schema_for` [INFO] [stdout] --> src/json_schema.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use schemars::{schema::RootSchema, schema_for, JsonSchema}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Value` and `json` [INFO] [stdout] --> src/json_schema.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/match_causes_deadlock.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> src/match_causes_deadlock.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt` and `stream::FuturesUnordered` [INFO] [stdout] --> src/unordered_futures.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::{stream::FuturesUnordered, StreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/stream.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let stream = stream::iter(1..100).map(|_| DB).flat_map(|mut db| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/from_str_radix.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut index = bytes.len() - 1; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lifetimes_1.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let x = if let Some(base) = self.base() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 46 | let _x = if let Some(base) = self.base() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 46 - let x = if let Some(base) = self.base() { [INFO] [stdout] 46 + let template::_ = if let Some(base) = self.base() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/stream.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(_db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named struct `DB` [INFO] [stdout] | [INFO] [stdout] 62 - fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] 62 + fn fetch<'a, 'e: 'a, T>(stream::DB: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci_compile_time` is never used [INFO] [stdout] --> src/compile_time.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | const fn fibonacci_compile_time(n: u32) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIB_100` is never used [INFO] [stdout] --> src/compile_time.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const FIB_100: u128 = fibonacci_compile_time(100); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/arc_swap.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_one` is never used [INFO] [stdout] --> src/arc_swap.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Counter { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 7 | fn add_one(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> src/async_trait.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | async fn foo() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hello` is never used [INFO] [stdout] --> src/async_trait.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Hello { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> src/async_trait.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Wrapper(A); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait` is never used [INFO] [stdout] --> src/async_trait.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait Trait { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nod` is never constructed [INFO] [stdout] --> src/box_dropping.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Nod { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ptr` is never constructed [INFO] [stdout] --> src/box_dropping.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Ptr { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/box_dropping.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Ptr { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 22 | fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime_ugly` is never used [INFO] [stdout] --> src/codewars/is_prime.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn is_prime_ugly(x: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime` is never used [INFO] [stdout] --> src/codewars/is_prime.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn is_prime(x: i64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_greater_eq` is never used [INFO] [stdout] --> src/compare_mixed_numeric_types.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_greater_eq(x: i64, y: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_less` is never used [INFO] [stdout] --> src/compare_mixed_numeric_types.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_less(x: i64, y: f64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COUNTER` is never used [INFO] [stdout] --> src/cow.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | static COUNTER: AtomicU8 = AtomicU8::new(0); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cloned` is never constructed [INFO] [stdout] --> src/cow.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Cloned(T); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> src/decimal.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Backend` is never used [INFO] [stdout] --> src/dispatch/dynamic.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Backend { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> src/dispatch/dynamic.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeBackend` is never constructed [INFO] [stdout] --> src/dispatch/dynamic.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct NegativeBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/dispatch/dynamic.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> src/dispatch/static_dispatch.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute` is never used [INFO] [stdout] --> src/dispatch/static_dispatch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl PositiveBackend { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 7 | #[inline(never)] [INFO] [stdout] 8 | fn compute(&self, number: u64) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/dispatch/static_dispatch.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/dyn_trait.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Foo` is never used [INFO] [stdout] --> src/enum_discriminant.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyA` is never constructed [INFO] [stdout] --> src/experiment_1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct MyA { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyB` is never constructed [INFO] [stdout] --> src/experiment_1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct MyB; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_b` is never used [INFO] [stdout] --> src/experiment_1.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn to_b(_a: MyA) -> MyB { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyC` is never constructed [INFO] [stdout] --> src/experiment_1.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct MyC { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_c` is never used [INFO] [stdout] --> src/experiment_1.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn to_c(a: MyA) -> MyC { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Either` is never used [INFO] [stdout] --> src/experiment_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum Either { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Void` is never used [INFO] [stdout] --> src/experiment_2.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_left` is never used [INFO] [stdout] --> src/experiment_2.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn never_left(e: Either) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex` is never used [INFO] [stdout] --> src/experiment_3.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn from_hex(hex_string: String) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T1` is never constructed [INFO] [stdout] --> src/experiment_4.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct T1 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `a`, and `b` are never used [INFO] [stdout] --> src/experiment_4.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl T1 { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 12 | fn new(a: &str) -> Pin> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn a(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn b(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T2` is never constructed [INFO] [stdout] --> src/experiment_4.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct T2 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `a`, and `b` are never used [INFO] [stdout] --> src/experiment_4.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl T2 { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 49 | fn new(a: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn init(self: Pin<&mut Self>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn a(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn b(self: Pin<&Self>) -> &str { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseIntError` is never constructed [INFO] [stdout] --> src/from_str_radix.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct ParseIntError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntErrorKind` is never used [INFO] [stdout] --> src/from_str_radix.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum IntErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_str_radix` is never used [INFO] [stdout] --> src/from_str_radix.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn from_str_radix(input: &str, radix: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes_1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct A; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nothing` is never used [INFO] [stdout] --> src/lifetimes_1.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl A { [INFO] [stdout] | ------ method in this implementation [INFO] [stdout] 7 | fn nothing(&mut self) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Other` is never used [INFO] [stdout] --> src/lifetimes_1.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Other<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Base` is never used [INFO] [stdout] --> src/lifetimes_1.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | trait Base<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Super` is never used [INFO] [stdout] --> src/lifetimes_1.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Super<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unmovable` is never constructed [INFO] [stdout] --> src/pin.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Unmovable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pin.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Unmovable { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 12 | fn new(data: String) -> Pin> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/serde.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BoolOrTime` is never used [INFO] [stdout] --> src/serde.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum BoolOrTime { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_disabled_field_2` is never used [INFO] [stdout] --> src/serde.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn deserialize_disabled_field_2<'de, D>(de: D) -> Result<(), D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_signals` is never used [INFO] [stdout] --> src/signal_hook.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | async fn handle_signals(mut signals: Signals) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_thread` is never used [INFO] [stdout] --> src/signal_hook.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | async fn main_thread() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DB` is never constructed [INFO] [stdout] --> src/stream.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct DB; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T` is never constructed [INFO] [stdout] --> src/stream.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct T; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch` is never used [INFO] [stdout] --> src/stream.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_value_ref` is never used [INFO] [stdout] --> src/stream.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | async fn stream_value_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_something` is never used [INFO] [stdout] --> src/unordered_futures.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | async fn do_something(i: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/channel/channel5.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn split(&mut self) -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 35 | pub fn split(&mut self) -> (Sender<'_, T>, Receiver<'_, T>) { [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/channel/channel6.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn split(&mut self) -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 39 | pub fn split(&mut self) -> (Sender<'_, T>, Receiver<'_, T>) { [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_1.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_2.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_3.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_1.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn read(&self) -> ReadGuard { [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] 23 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_1.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write(&self) -> WriteGuard { [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] 45 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_2.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read(&self) -> ReadGuard { [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] 26 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_2.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn write(&self) -> WriteGuard { [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] 48 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_3.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn read(&self) -> ReadGuard { [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] 30 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_3.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn write(&self) -> WriteGuard { [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] 54 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/spinlock.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lock(&self) -> LockGuard { [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] 24 | pub fn lock(&self) -> LockGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arc` [INFO] [stdout] --> src/diy/channel/channel5.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Arc, [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: `Arc` [INFO] [stdout] --> src/diy/channel/channel6.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> src/notify.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/stream.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let stream = stream::iter(1..100).map(|_| DB).flat_map(|mut db| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/decimal.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let p = Decimal::from_scientific("3.16912650057e+25").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/experiment_4.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut t = T1::new("hello"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/from_str_radix.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut index = bytes.len() - 1; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/lifetimes_1.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let x = if let Some(base) = self.base() { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 46 | let _x = if let Some(base) = self.base() { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 46 - let x = if let Some(base) = self.base() { [INFO] [stdout] 46 + let yaml::tests::_ = if let Some(base) = self.base() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/stream.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(_db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named struct `DB` [INFO] [stdout] | [INFO] [stdout] 62 - fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] 62 + fn fetch<'a, 'e: 'a, T>(stream::DB: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a`, `b`, and `c` are never read [INFO] [stdout] --> src/alignment.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | struct A1 { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 59 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 60 | b: u8, [INFO] [stdout] | ^ [INFO] [stdout] 61 | c: u16, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a`, `b`, and `c` are never read [INFO] [stdout] --> src/alignment.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | struct A2 { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 65 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 66 | b: u16, [INFO] [stdout] | ^ [INFO] [stdout] 67 | c: u8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a1` and `a2` are never read [INFO] [stdout] --> src/alignment.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 106 | struct A { [INFO] [stdout] | - fields in this struct [INFO] [stdout] 107 | a1: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 108 | a2: u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `b1` and `b2` are never read [INFO] [stdout] --> src/alignment.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 120 | struct C { [INFO] [stdout] | - fields in this struct [INFO] [stdout] 121 | b1: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 122 | b2: u16, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a1` and `a2` are never read [INFO] [stdout] --> src/alignment.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | struct A { [INFO] [stdout] | - fields in this struct [INFO] [stdout] 132 | a1: u16, [INFO] [stdout] | ^^ [INFO] [stdout] 133 | a2: u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `b1` and `b2` are never read [INFO] [stdout] --> src/alignment.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | struct B { [INFO] [stdout] | - fields in this struct [INFO] [stdout] 137 | b1: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 138 | b2: u8, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci_compile_time` is never used [INFO] [stdout] --> src/compile_time.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | const fn fibonacci_compile_time(n: u32) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FIB_100` is never used [INFO] [stdout] --> src/compile_time.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const FIB_100: u128 = fibonacci_compile_time(100); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> src/async_trait.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | async fn foo() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hello` is never used [INFO] [stdout] --> src/async_trait.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Hello { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> src/async_trait.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Wrapper(A); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait` is never used [INFO] [stdout] --> src/async_trait.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait Trait { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/box_dropping.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Nod { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Nod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_prime_ugly` is never used [INFO] [stdout] --> src/codewars/is_prime.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn is_prime_ugly(x: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_greater_eq` is never used [INFO] [stdout] --> src/compare_mixed_numeric_types.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn is_greater_eq(x: i64, y: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_less` is never used [INFO] [stdout] --> src/compare_mixed_numeric_types.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_less(x: i64, y: f64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Backend` is never used [INFO] [stdout] --> src/dispatch/dynamic.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Backend { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> src/dispatch/dynamic.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NegativeBackend` is never constructed [INFO] [stdout] --> src/dispatch/dynamic.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct NegativeBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/dispatch/dynamic.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> src/dispatch/static_dispatch.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute` is never used [INFO] [stdout] --> src/dispatch/static_dispatch.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl PositiveBackend { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 7 | #[inline(never)] [INFO] [stdout] 8 | fn compute(&self, number: u64) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/dispatch/static_dispatch.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `c` is never read [INFO] [stdout] --> src/dyn_trait.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | struct C<'a> { [INFO] [stdout] | - field in this struct [INFO] [stdout] 8 | c: Vec<&'a dyn Foo>, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `c` is never read [INFO] [stdout] --> src/dyn_trait.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | struct C { [INFO] [stdout] | - field in this struct [INFO] [stdout] 19 | c: Vec>, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `c` is never read [INFO] [stdout] --> src/experiment_1.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct MyC { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 25 | c: C, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MyC` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Either` is never used [INFO] [stdout] --> src/experiment_2.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum Either { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Void` is never used [INFO] [stdout] --> src/experiment_2.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Void {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_left` is never used [INFO] [stdout] --> src/experiment_2.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn never_left(e: Either) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParseIntError` is never constructed [INFO] [stdout] --> src/from_str_radix.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct ParseIntError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntErrorKind` is never used [INFO] [stdout] --> src/from_str_radix.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum IntErrorKind { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_str_radix` is never used [INFO] [stdout] --> src/from_str_radix.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn from_str_radix(input: &str, radix: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first` is never used [INFO] [stdout] --> src/gat.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn first<'i, T>(iterable: &'i impl Iterable = &'i T>) -> Option<&'i T> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sendable_items` is never used [INFO] [stdout] --> src/gat.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | fn sendable_items(_iterable: &I) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `COUNT` is never constructed [INFO] [stdout] --> src/lazy_static.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | static ref COUNT: usize = HASHMAP.len(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/lifetimes_1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct A; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `nothing` is never used [INFO] [stdout] --> src/lifetimes_1.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl A { [INFO] [stdout] | ------ method in this implementation [INFO] [stdout] 7 | fn nothing(&mut self) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Other` is never used [INFO] [stdout] --> src/lifetimes_1.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait Other<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Base` is never used [INFO] [stdout] --> src/lifetimes_1.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | trait Base<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Super` is never used [INFO] [stdout] --> src/lifetimes_1.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Super<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DB` is never constructed [INFO] [stdout] --> src/stream.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct DB; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `T` is never constructed [INFO] [stdout] --> src/stream.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct T; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch` is never used [INFO] [stdout] --> src/stream.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn fetch<'a, 'e: 'a, T>(db: &'e mut DB) -> BoxStream<'a, T> [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_value_ref` is never used [INFO] [stdout] --> src/stream.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | async fn stream_value_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/channel/channel5.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn split(&mut self) -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 35 | pub fn split(&mut self) -> (Sender<'_, T>, Receiver<'_, T>) { [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/channel/channel6.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn split(&mut self) -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [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] 39 | pub fn split(&mut self) -> (Sender<'_, T>, Receiver<'_, T>) { [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_1.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_2.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/mutex/mutex_3.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn lock(&self) -> MutexGuard { [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] 25 | pub fn lock(&self) -> MutexGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_1.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn read(&self) -> ReadGuard { [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] 23 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_1.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn write(&self) -> WriteGuard { [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] 45 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_2.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn read(&self) -> ReadGuard { [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] 26 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_2.rs:48:18 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn write(&self) -> WriteGuard { [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] 48 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_3.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn read(&self) -> ReadGuard { [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] 30 | pub fn read(&self) -> ReadGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/rwlock/rwlock_3.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn write(&self) -> WriteGuard { [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] 54 | pub fn write(&self) -> WriteGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/diy/spinlock.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lock(&self) -> LockGuard { [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] 24 | pub fn lock(&self) -> LockGuard<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u8` does not permit being left uninitialized [INFO] [stdout] --> src/maybe_uninit.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | let x: u8 = unsafe { mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 21s [INFO] running `Command { std: "docker" "inspect" "2babc0fd2bdaeaa0bd4f4f6d40a00e2d070acad3d4cbfa9ab5cc0f750905e3e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2babc0fd2bdaeaa0bd4f4f6d40a00e2d070acad3d4cbfa9ab5cc0f750905e3e7", kill_on_drop: false }` [INFO] [stdout] 2babc0fd2bdaeaa0bd4f4f6d40a00e2d070acad3d4cbfa9ab5cc0f750905e3e7