[INFO] fetching crate amadeus-streaming 0.4.3... [INFO] linting amadeus-streaming-0.4.3 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate amadeus-streaming 0.4.3 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate amadeus-streaming 0.4.3 [INFO] finished tweaking crates.io crate amadeus-streaming 0.4.3 [INFO] tweaked toml for crates.io crate amadeus-streaming 0.4.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate amadeus-streaming 0.4.3 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 36 packages to latest compatible versions [INFO] [stderr] Adding protobuf v2.28.0 (available: v3.7.2) [INFO] [stderr] Adding rand v0.7.3 (available: v0.10.0) [INFO] [stderr] Adding twox-hash v1.6.3 (available: v2.1.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_closure v0.3.3 [INFO] [stderr] Downloaded serde_closure_derive v0.3.3 [INFO] [stderr] Downloaded protobuf v2.28.0 [INFO] [stderr] Downloaded packed_simd v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f30a2c9c731b5c7fde33835a45a3ae9be3f5aea2ddbb696dd42decbd43ca74c8 [INFO] running `Command { std: "docker" "start" "-a" "f30a2c9c731b5c7fde33835a45a3ae9be3f5aea2ddbb696dd42decbd43ca74c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f30a2c9c731b5c7fde33835a45a3ae9be3f5aea2ddbb696dd42decbd43ca74c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f30a2c9c731b5c7fde33835a45a3ae9be3f5aea2ddbb696dd42decbd43ca74c8", kill_on_drop: false }` [INFO] [stdout] f30a2c9c731b5c7fde33835a45a3ae9be3f5aea2ddbb696dd42decbd43ca74c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96a66974e1c681922368fca5c2dfccddaa954438c00da2b90f857f551b54b5f8 [INFO] running `Command { std: "docker" "start" "-a" "96a66974e1c681922368fca5c2dfccddaa954438c00da2b90f857f551b54b5f8", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Compiling serde_closure v0.3.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling amadeus-streaming v0.4.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Compiling serde_closure_derive v0.3.3 [INFO] [stdout] warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop` [INFO] [stdout] --> src/lib.rs:58:2 [INFO] [stdout] | [INFO] [stdout] 58 | clippy::let_underscore_drop [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | #![cfg_attr(nightly, feature(map_first_last))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | #![cfg_attr(nightly, feature(unboxed_closures))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn push(&mut self, key: &Q, value: &V) -> C [INFO] [stdout] | ^ [INFO] [stdout] 76 | where [INFO] [stdout] 77 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: `#[warn(clippy::multiple_bound_locations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:119:22 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn union_assign(&mut self, key: &Q, value: &C) [INFO] [stdout] | ^ [INFO] [stdout] 120 | where [INFO] [stdout] 121 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get(&self, key: &Q) -> C [INFO] [stdout] | ^ [INFO] [stdout] 135 | where [INFO] [stdout] 136 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | fn offsets(&self, key: &Q) -> impl Iterator [INFO] [stdout] | ^ [INFO] [stdout] 189 | where [INFO] [stdout] 190 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:198:11 [INFO] [stdout] | [INFO] [stdout] 198 | fn hashes(key: &Q) -> impl Iterator [INFO] [stdout] | ^ [INFO] [stdout] 199 | where [INFO] [stdout] 200 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[ignore]` without reason [INFO] [stdout] --> src/count_min.rs:243:2 [INFO] [stdout] | [INFO] [stdout] 243 | #[ignore] // release mode stops panic [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add a reason with `= ".."` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignore_without_reason [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:42:2 [INFO] [stdout] | [INFO] [stdout] 42 | clippy::pedantic [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(clippy::ignore_without_reason)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: #[should_panic] attribute without a reason [INFO] [stdout] --> src/count_min.rs:245:2 [INFO] [stdout] | [INFO] [stdout] 245 | #[should_panic] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: consider specifying the expected panic: `#[should_panic(expected = /* panic message */)]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_panic_without_expect [INFO] [stdout] = note: `#[warn(clippy::should_panic_without_expect)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop` [INFO] [stdout] --> src/lib.rs:58:2 [INFO] [stdout] | [INFO] [stdout] 58 | clippy::let_underscore_drop [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `assert` [INFO] [stdout] --> src/linked_list.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | if !cfg!(feature = "assert") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `nightly`, `packed_simd`, and `protobuf` [INFO] [stdout] = help: consider adding `assert` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | #![cfg_attr(nightly, feature(map_first_last))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | #![cfg_attr(nightly, feature(unboxed_closures))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `assert` [INFO] [stdout] --> src/ordered_linked_list.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | if !cfg!(feature = "assert") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `nightly`, `packed_simd`, and `protobuf` [INFO] [stdout] = help: consider adding `assert` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | #[cfg_attr(not(nightly), serde_closure::desugar)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | fn into_iter(self) -> std::vec::IntoIter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:40:2 [INFO] [stdout] | [INFO] [stdout] 40 | unused_qualifications, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 67 - fn into_iter(self) -> std::vec::IntoIter { [INFO] [stdout] 67 + fn into_iter(self) -> vec::IntoIter { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | impl std::ops::Index for FixedCapVec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 71 - impl std::ops::Index for FixedCapVec [INFO] [stdout] 71 + impl ops::Index for FixedCapVec [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:75:16 [INFO] [stdout] | [INFO] [stdout] 75 | type Output = as std::ops::Index>::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 75 - type Output = as std::ops::Index>::Output; [INFO] [stdout] 75 + type Output = as ops::Index>::Output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | std::ops::Index::index(&self.0, index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 77 - std::ops::Index::index(&self.0, index) [INFO] [stdout] 77 + ops::Index::index(&self.0, index) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | impl std::ops::IndexMut for FixedCapVec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 80 - impl std::ops::IndexMut for FixedCapVec [INFO] [stdout] 80 + impl ops::IndexMut for FixedCapVec [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | std::ops::IndexMut::index_mut(&mut self.0, index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 85 - std::ops::IndexMut::index_mut(&mut self.0, index) [INFO] [stdout] 85 + ops::IndexMut::index_mut(&mut self.0, index) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:75:14 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn push(&mut self, key: &Q, value: &V) -> C [INFO] [stdout] | ^ [INFO] [stdout] 76 | where [INFO] [stdout] 77 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: `#[warn(clippy::multiple_bound_locations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:119:22 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn union_assign(&mut self, key: &Q, value: &C) [INFO] [stdout] | ^ [INFO] [stdout] 120 | where [INFO] [stdout] 121 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get(&self, key: &Q) -> C [INFO] [stdout] | ^ [INFO] [stdout] 135 | where [INFO] [stdout] 136 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | fn offsets(&self, key: &Q) -> impl Iterator [INFO] [stdout] | ^ [INFO] [stdout] 189 | where [INFO] [stdout] 190 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/count_min.rs:198:11 [INFO] [stdout] | [INFO] [stdout] 198 | fn hashes(key: &Q) -> impl Iterator [INFO] [stdout] | ^ [INFO] [stdout] 199 | where [INFO] [stdout] 200 | Q: Hash, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | #[cfg(nightly)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:192:14 [INFO] [stdout] | [INFO] [stdout] 192 | #[cfg(not(nightly))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sort.rs:284:7 [INFO] [stdout] | [INFO] [stdout] 284 | if mem::size_of_val(f) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 284 - if mem::size_of_val(f) != 0 { [INFO] [stdout] 284 + if size_of_val(f) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `assert` [INFO] [stdout] --> src/top.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if !cfg!(feature = "assert") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `nightly`, `packed_simd`, and `protobuf` [INFO] [stdout] = help: consider adding `assert` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[ignore]` without reason [INFO] [stdout] --> src/top.rs:369:2 [INFO] [stdout] | [INFO] [stdout] 369 | #[ignore] // takes too long on CI [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add a reason with `= ".."` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignore_without_reason [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `map_first_last` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | #![cfg_attr(nightly, feature(map_first_last))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `assert` [INFO] [stdout] --> src/linked_list.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | if !cfg!(feature = "assert") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `nightly`, `packed_simd`, and `protobuf` [INFO] [stdout] = help: consider adding `assert` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `assert` [INFO] [stdout] --> src/ordered_linked_list.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | if !cfg!(feature = "assert") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `nightly`, `packed_simd`, and `protobuf` [INFO] [stdout] = help: consider adding `assert` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | fn into_iter(self) -> std::vec::IntoIter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:40:2 [INFO] [stdout] | [INFO] [stdout] 40 | unused_qualifications, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 67 - fn into_iter(self) -> std::vec::IntoIter { [INFO] [stdout] 67 + fn into_iter(self) -> vec::IntoIter { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | impl std::ops::Index for FixedCapVec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 71 - impl std::ops::Index for FixedCapVec [INFO] [stdout] 71 + impl ops::Index for FixedCapVec [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:75:16 [INFO] [stdout] | [INFO] [stdout] 75 | type Output = as std::ops::Index>::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 75 - type Output = as std::ops::Index>::Output; [INFO] [stdout] 75 + type Output = as ops::Index>::Output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | std::ops::Index::index(&self.0, index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 77 - std::ops::Index::index(&self.0, index) [INFO] [stdout] 77 + ops::Index::index(&self.0, index) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | impl std::ops::IndexMut for FixedCapVec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 80 - impl std::ops::IndexMut for FixedCapVec [INFO] [stdout] 80 + impl ops::IndexMut for FixedCapVec [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sample.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | std::ops::IndexMut::index_mut(&mut self.0, index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 85 - std::ops::IndexMut::index_mut(&mut self.0, index) [INFO] [stdout] 85 + ops::IndexMut::index_mut(&mut self.0, index) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | #[cfg(nightly)] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/sort.rs:192:14 [INFO] [stdout] | [INFO] [stdout] 192 | #[cfg(not(nightly))] [INFO] [stdout] | ^^^^^^^ help: found config with similar value: `feature = "nightly"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/sort.rs:284:7 [INFO] [stdout] | [INFO] [stdout] 284 | if mem::size_of_val(f) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 284 - if mem::size_of_val(f) != 0 { [INFO] [stdout] 284 + if size_of_val(f) != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `assert` [INFO] [stdout] --> src/top.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if !cfg!(feature = "assert") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `nightly`, `packed_simd`, and `protobuf` [INFO] [stdout] = help: consider adding `assert` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `map_first_last` has been stable since 1.66.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | #![cfg_attr(nightly, feature(map_first_last))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/count_min.rs:125:3 [INFO] [stdout] | [INFO] [stdout] 125 | / self.counters [INFO] [stdout] 126 | | .iter_mut() [INFO] [stdout] 127 | | .zip(offsets) [INFO] [stdout] 128 | | .for_each(|(counters, offset)| { [INFO] [stdout] 129 | | counters[offset].union_assign(value); [INFO] [stdout] 130 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] = note: `#[warn(clippy::semicolon_if_nothing_returned)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: add a `;` here [INFO] [stdout] | [INFO] [stdout] 125 | self.counters [INFO] [stdout] ... [INFO] [stdout] 129 | counters[offset].union_assign(value); [INFO] [stdout] 130 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/count_min.rs:159:3 [INFO] [stdout] | [INFO] [stdout] 159 | / self.counters [INFO] [stdout] 160 | | .iter_mut() [INFO] [stdout] 161 | | .flat_map(|x| x.iter_mut()) [INFO] [stdout] 162 | | .for_each(|counter| { [INFO] [stdout] 163 | | *counter = C::new(config); [INFO] [stdout] 164 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] help: add a `;` here [INFO] [stdout] | [INFO] [stdout] 159 | self.counters [INFO] [stdout] ... [INFO] [stdout] 163 | *counter = C::new(config); [INFO] [stdout] 164 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/count_min.rs:125:3 [INFO] [stdout] | [INFO] [stdout] 125 | / self.counters [INFO] [stdout] 126 | | .iter_mut() [INFO] [stdout] 127 | | .zip(offsets) [INFO] [stdout] 128 | | .for_each(|(counters, offset)| { [INFO] [stdout] 129 | | counters[offset].union_assign(value); [INFO] [stdout] 130 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:42:2 [INFO] [stdout] | [INFO] [stdout] 42 | clippy::pedantic [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(clippy::semicolon_if_nothing_returned)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: add a `;` here [INFO] [stdout] | [INFO] [stdout] 125 | self.counters [INFO] [stdout] ... [INFO] [stdout] 129 | counters[offset].union_assign(value); [INFO] [stdout] 130 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/count_min.rs:159:3 [INFO] [stdout] | [INFO] [stdout] 159 | / self.counters [INFO] [stdout] 160 | | .iter_mut() [INFO] [stdout] 161 | | .flat_map(|x| x.iter_mut()) [INFO] [stdout] 162 | | .for_each(|counter| { [INFO] [stdout] 163 | | *counter = C::new(config); [INFO] [stdout] 164 | | }) [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] help: add a `;` here [INFO] [stdout] | [INFO] [stdout] 159 | self.counters [INFO] [stdout] ... [INFO] [stdout] 163 | *counter = C::new(config); [INFO] [stdout] 164 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/distinct.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | / impl PartialOrd for HyperLogLogMagnitude { [INFO] [stdout] 78 | | #[inline(always)] [INFO] [stdout] 79 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 80 | | self.0.len().partial_cmp(&other.0.len()) [INFO] [stdout] 81 | | } [INFO] [stdout] 82 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 79 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 80 - self.0.len().partial_cmp(&other.0.len()) [INFO] [stdout] 81 - } [INFO] [stdout] 79 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 111 | self.0.union_assign(&rhs.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.union_assign(&rhs.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:116:3 [INFO] [stdout] | [INFO] [stdout] 116 | self.0.add_assign(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.add_assign(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:121:3 [INFO] [stdout] | [INFO] [stdout] 121 | self.0.add_assign(&rhs.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.add_assign(&rhs.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: boolean to int conversion using if [INFO] [stdout] --> src/distinct.rs:191:16 [INFO] [stdout] | [INFO] [stdout] 191 | self.zero -= if old == 0 { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(old == 0)` [INFO] [stdout] | [INFO] [stdout] = note: `(old == 0) as usize` or `(old == 0).into()` can also be valid options [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if [INFO] [stdout] = note: `#[warn(clippy::bool_to_int_with_if)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:194:30 [INFO] [stdout] | [INFO] [stdout] 194 | self.sum -= f64::from_bits(u64::max_value().wrapping_sub(u64::from(old)) << 54 >> 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 194 - self.sum -= f64::from_bits(u64::max_value().wrapping_sub(u64::from(old)) << 54 >> 2) [INFO] [stdout] 194 + self.sum -= f64::from_bits(u64::MAX.wrapping_sub(u64::from(old)) << 54 >> 2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | - f64::from_bits(u64::max_value().wrapping_sub(u64::from(new)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 195 - - f64::from_bits(u64::max_value().wrapping_sub(u64::from(new)) << 54 >> 2); [INFO] [stdout] 195 + - f64::from_bits(u64::MAX.wrapping_sub(u64::from(new)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: boolean to int conversion using if [INFO] [stdout] --> src/distinct.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | zero += if *to == 0 { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(*to == 0)` [INFO] [stdout] | [INFO] [stdout] = note: `(*to == 0) as usize` or `(*to == 0).into()` can also be valid options [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:270:27 [INFO] [stdout] | [INFO] [stdout] 270 | sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 270 - sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] 270 + sum += f64::from_bits(u64::MAX.wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: boolean to int conversion using if [INFO] [stdout] --> src/distinct.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | zero += if *to == 0 { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(*to == 0)` [INFO] [stdout] | [INFO] [stdout] = note: `(*to == 0) as usize` or `(*to == 0).into()` can also be valid options [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/distinct.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | / impl PartialOrd for HyperLogLogMagnitude { [INFO] [stdout] 78 | | #[inline(always)] [INFO] [stdout] 79 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 80 | | self.0.len().partial_cmp(&other.0.len()) [INFO] [stdout] 81 | | } [INFO] [stdout] 82 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 79 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 80 - self.0.len().partial_cmp(&other.0.len()) [INFO] [stdout] 81 - } [INFO] [stdout] 79 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:327:27 [INFO] [stdout] | [INFO] [stdout] 327 | sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 327 - sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] 327 + sum += f64::from_bits(u64::MAX.wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 111 | self.0.union_assign(&rhs.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.union_assign(&rhs.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:116:3 [INFO] [stdout] | [INFO] [stdout] 116 | self.0.add_assign(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.add_assign(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:121:3 [INFO] [stdout] | [INFO] [stdout] 121 | self.0.add_assign(&rhs.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.add_assign(&rhs.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/distinct.rs:453:17 [INFO] [stdout] | [INFO] [stdout] 453 | let mut min = if index > 6 { index - 6 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `index.saturating_sub(6)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] = note: `#[warn(clippy::implicit_saturating_sub)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:535:3 [INFO] [stdout] | [INFO] [stdout] 535 | self.union(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: add a `;` here: `self.union(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:543:3 [INFO] [stdout] | [INFO] [stdout] 543 | self.push(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: add a `;` here: `self.push(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:551:3 [INFO] [stdout] | [INFO] [stdout] 551 | self.union(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: add a `;` here: `self.union(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:681:27 [INFO] [stdout] | [INFO] [stdout] 681 | let b = f64::from_bits(u64::max_value().wrapping_sub(u64::from(x)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 681 - let b = f64::from_bits(u64::max_value().wrapping_sub(u64::from(x)) << 54 >> 2); [INFO] [stdout] 681 + let b = f64::from_bits(u64::MAX.wrapping_sub(u64::from(x)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:682:27 [INFO] [stdout] | [INFO] [stdout] 682 | let c = f32::from_bits(u32::max_value().wrapping_sub(u32::from(x)) << 25 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 682 - let c = f32::from_bits(u32::max_value().wrapping_sub(u32::from(x)) << 25 >> 2); [INFO] [stdout] 682 + let c = f32::from_bits(u32::MAX.wrapping_sub(u32::from(x)) << 25 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/linked_list.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl<'a> LinkedListIndex<'a> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] = note: `#[warn(clippy::elidable_lifetime_names)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 6 - impl<'a> LinkedListIndex<'a> { [INFO] [stdout] 6 + impl LinkedListIndex<'_> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: boolean to int conversion using if [INFO] [stdout] --> src/distinct.rs:191:16 [INFO] [stdout] | [INFO] [stdout] 191 | self.zero -= if old == 0 { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(old == 0)` [INFO] [stdout] | [INFO] [stdout] = note: `(old == 0) as usize` or `(old == 0).into()` can also be valid options [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if [INFO] [stdout] = note: `#[warn(clippy::bool_to_int_with_if)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:194:30 [INFO] [stdout] | [INFO] [stdout] 194 | self.sum -= f64::from_bits(u64::max_value().wrapping_sub(u64::from(old)) << 54 >> 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 194 - self.sum -= f64::from_bits(u64::max_value().wrapping_sub(u64::from(old)) << 54 >> 2) [INFO] [stdout] 194 + self.sum -= f64::from_bits(u64::MAX.wrapping_sub(u64::from(old)) << 54 >> 2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | - f64::from_bits(u64::max_value().wrapping_sub(u64::from(new)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 195 - - f64::from_bits(u64::max_value().wrapping_sub(u64::from(new)) << 54 >> 2); [INFO] [stdout] 195 + - f64::from_bits(u64::MAX.wrapping_sub(u64::from(new)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: boolean to int conversion using if [INFO] [stdout] --> src/distinct.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | zero += if *to == 0 { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(*to == 0)` [INFO] [stdout] | [INFO] [stdout] = note: `(*to == 0) as usize` or `(*to == 0).into()` can also be valid options [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:270:27 [INFO] [stdout] | [INFO] [stdout] 270 | sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 270 - sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] 270 + sum += f64::from_bits(u64::MAX.wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: boolean to int conversion using if [INFO] [stdout] --> src/distinct.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | zero += if *to == 0 { 1 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(*to == 0)` [INFO] [stdout] | [INFO] [stdout] = note: `(*to == 0) as usize` or `(*to == 0).into()` can also be valid options [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/distinct.rs:327:27 [INFO] [stdout] | [INFO] [stdout] 327 | sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 327 - sum += f64::from_bits(u64::max_value().wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] 327 + sum += f64::from_bits(u64::MAX.wrapping_sub(u64::from(*to)) << 54 >> 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/distinct.rs:453:17 [INFO] [stdout] | [INFO] [stdout] 453 | let mut min = if index > 6 { index - 6 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `index.saturating_sub(6)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] = note: `#[warn(clippy::implicit_saturating_sub)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | iter::once((usize::max_value(), 1, None)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 24 - iter::once((usize::max_value(), 1, None)) [INFO] [stdout] 24 + iter::once((usize::MAX, 1, None)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | .chain(iter::once((cap - 2, usize::max_value(), None))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 26 - .chain(iter::once((cap - 2, usize::max_value(), None))) [INFO] [stdout] 26 + .chain(iter::once((cap - 2, usize::MAX, None))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 30 - .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] 30 + .map(|_| (usize::MAX, usize::max_value(), None)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:30:35 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 30 - .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] 30 + .map(|_| (usize::max_value(), usize::MAX, None)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | head: usize::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 36 - head: usize::max_value(), [INFO] [stdout] 36 + head: usize::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | tail: usize::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 37 - tail: usize::max_value(), [INFO] [stdout] 37 + tail: usize::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:535:3 [INFO] [stdout] | [INFO] [stdout] 535 | self.union(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: add a `;` here: `self.union(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:543:3 [INFO] [stdout] | [INFO] [stdout] 543 | self.push(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: add a `;` here: `self.push(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/distinct.rs:551:3 [INFO] [stdout] | [INFO] [stdout] 551 | self.union(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: add a `;` here: `self.union(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/linked_list.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | assert!(!self.vec[cur].2.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.vec[cur].2.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | while cur != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 51 - while cur != usize::max_value() { [INFO] [stdout] 51 + while cur != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 54 - if next != usize::max_value() { [INFO] [stdout] 54 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | while cur != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 67 - while cur != usize::max_value() { [INFO] [stdout] 67 + while cur != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 70 - if next != usize::max_value() { [INFO] [stdout] 70 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | assert_ne!(free, usize::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 82 - assert_ne!(free, usize::max_value()); [INFO] [stdout] 82 + assert_ne!(free, usize::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/linked_list.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl<'a> LinkedListIndex<'a> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] = note: `#[warn(clippy::elidable_lifetime_names)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 6 - impl<'a> LinkedListIndex<'a> { [INFO] [stdout] 6 + impl LinkedListIndex<'_> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | if self.free != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 84 - if self.free != usize::max_value() { [INFO] [stdout] 84 + if self.free != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | self.vec[self.free].0 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 85 - self.vec[self.free].0 = usize::max_value(); [INFO] [stdout] 85 + self.vec[self.free].0 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | if self.free != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - if self.free != usize::max_value() { [INFO] [stdout] 91 + if self.free != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | self.vec[idx].0 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 94 - self.vec[idx].0 = usize::max_value(); [INFO] [stdout] 94 + self.vec[idx].0 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | if self.head != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 100 - if self.head != usize::max_value() { [INFO] [stdout] 100 + if self.head != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | if self.tail != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 108 - if self.tail != usize::max_value() { [INFO] [stdout] 108 + if self.tail != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | self.vec[idx] = (self.tail, usize::max_value(), Some(t)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 124 - self.vec[idx] = (self.tail, usize::max_value(), Some(t)); [INFO] [stdout] 124 + self.vec[idx] = (self.tail, usize::MAX, Some(t)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | if self.tail != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 125 - if self.tail != usize::max_value() { [INFO] [stdout] 125 + if self.tail != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | self.vec[idx] = (usize::max_value(), self.head, Some(t)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 137 - self.vec[idx] = (usize::max_value(), self.head, Some(t)); [INFO] [stdout] 137 + self.vec[idx] = (usize::MAX, self.head, Some(t)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:138:19 [INFO] [stdout] | [INFO] [stdout] 138 | if self.head != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 138 - if self.head != usize::max_value() { [INFO] [stdout] 138 + if self.head != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:153:19 [INFO] [stdout] | [INFO] [stdout] 153 | if self.tail != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 153 - if self.tail != usize::max_value() { [INFO] [stdout] 153 + if self.tail != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | self.vec[self.tail].1 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 154 - self.vec[self.tail].1 = usize::max_value(); [INFO] [stdout] 154 + self.vec[self.tail].1 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 156 | self.head = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 156 - self.head = usize::max_value(); [INFO] [stdout] 156 + self.head = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:168:19 [INFO] [stdout] | [INFO] [stdout] 168 | if self.head != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 168 - if self.head != usize::max_value() { [INFO] [stdout] 168 + if self.head != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | self.vec[self.head].0 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 169 - self.vec[self.head].0 = usize::max_value(); [INFO] [stdout] 169 + self.vec[self.head].0 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:171:16 [INFO] [stdout] | [INFO] [stdout] 171 | self.tail = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 171 - self.tail = usize::max_value(); [INFO] [stdout] 171 + self.tail = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 183 - if next != usize::max_value() { [INFO] [stdout] 183 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 197 - if prev != usize::max_value() { [INFO] [stdout] 197 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 209 - if prev != usize::max_value() { [INFO] [stdout] 209 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | iter::once((usize::max_value(), 1, None)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 24 - iter::once((usize::max_value(), 1, None)) [INFO] [stdout] 24 + iter::once((usize::MAX, 1, None)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 214 - if next != usize::max_value() { [INFO] [stdout] 214 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | .chain(iter::once((cap - 2, usize::max_value(), None))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 26 - .chain(iter::once((cap - 2, usize::max_value(), None))) [INFO] [stdout] 26 + .chain(iter::once((cap - 2, usize::MAX, None))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 30 - .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] 30 + .map(|_| (usize::MAX, usize::max_value(), None)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:30:35 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 30 - .map(|_| (usize::max_value(), usize::max_value(), None)) [INFO] [stdout] 30 + .map(|_| (usize::max_value(), usize::MAX, None)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 229 - if prev != usize::max_value() { [INFO] [stdout] 229 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | head: usize::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 36 - head: usize::max_value(), [INFO] [stdout] 36 + head: usize::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:234:14 [INFO] [stdout] | [INFO] [stdout] 234 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 234 - if next != usize::max_value() { [INFO] [stdout] 234 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | tail: usize::max_value(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 37 - tail: usize::max_value(), [INFO] [stdout] 37 + tail: usize::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/linked_list.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | assert!(!self.vec[cur].2.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.vec[cur].2.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:244:15 [INFO] [stdout] | [INFO] [stdout] 244 | if next2 != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 244 - if next2 != usize::max_value() { [INFO] [stdout] 244 + if next2 != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | while cur != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 51 - while cur != usize::max_value() { [INFO] [stdout] 51 + while cur != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 54 - if next != usize::max_value() { [INFO] [stdout] 54 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:255:14 [INFO] [stdout] | [INFO] [stdout] 255 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 255 - if prev != usize::max_value() { [INFO] [stdout] 255 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 260 - if next != usize::max_value() { [INFO] [stdout] 260 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:270:15 [INFO] [stdout] | [INFO] [stdout] 270 | if prev2 != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 270 - if prev2 != usize::max_value() { [INFO] [stdout] 270 + if prev2 != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | while cur != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 67 - while cur != usize::max_value() { [INFO] [stdout] 67 + while cur != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:280:23 [INFO] [stdout] | [INFO] [stdout] 280 | assert_ne!(index.0, usize::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 280 - assert_ne!(index.0, usize::max_value()); [INFO] [stdout] 280 + assert_ne!(index.0, usize::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:285:23 [INFO] [stdout] | [INFO] [stdout] 285 | assert_ne!(index.0, usize::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 285 - assert_ne!(index.0, usize::max_value()); [INFO] [stdout] 285 + assert_ne!(index.0, usize::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/linked_list.rs:293:6 [INFO] [stdout] | [INFO] [stdout] 293 | impl<'a, T> ops::Index> for LinkedList { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 293 - impl<'a, T> ops::Index> for LinkedList { [INFO] [stdout] 293 + impl ops::Index> for LinkedList { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/linked_list.rs:300:6 [INFO] [stdout] | [INFO] [stdout] 300 | impl<'a, T> ops::IndexMut> for LinkedList { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 300 - impl<'a, T> ops::IndexMut> for LinkedList { [INFO] [stdout] 300 + impl ops::IndexMut> for LinkedList { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 70 - if next != usize::max_value() { [INFO] [stdout] 70 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | assert_ne!(free, usize::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 82 - assert_ne!(free, usize::max_value()); [INFO] [stdout] 82 + assert_ne!(free, usize::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | if self.free != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 84 - if self.free != usize::max_value() { [INFO] [stdout] 84 + if self.free != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | self.vec[self.free].0 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 85 - self.vec[self.free].0 = usize::max_value(); [INFO] [stdout] 85 + self.vec[self.free].0 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | if self.free != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - if self.free != usize::max_value() { [INFO] [stdout] 91 + if self.free != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/ordered_linked_list.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> OrderedLinkedListIndex<'a> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 8 - impl<'a> OrderedLinkedListIndex<'a> { [INFO] [stdout] 8 + impl OrderedLinkedListIndex<'_> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | self.vec[idx].0 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 94 - self.vec[idx].0 = usize::max_value(); [INFO] [stdout] 94 + self.vec[idx].0 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | if self.head != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 100 - if self.head != usize::max_value() { [INFO] [stdout] 100 + if self.head != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | if self.tail != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 108 - if self.tail != usize::max_value() { [INFO] [stdout] 108 + if self.tail != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | self.vec[idx] = (self.tail, usize::max_value(), Some(t)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 124 - self.vec[idx] = (self.tail, usize::max_value(), Some(t)); [INFO] [stdout] 124 + self.vec[idx] = (self.tail, usize::MAX, Some(t)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | if self.tail != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 125 - if self.tail != usize::max_value() { [INFO] [stdout] 125 + if self.tail != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | self.vec[idx] = (usize::max_value(), self.head, Some(t)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 137 - self.vec[idx] = (usize::max_value(), self.head, Some(t)); [INFO] [stdout] 137 + self.vec[idx] = (usize::MAX, self.head, Some(t)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:138:19 [INFO] [stdout] | [INFO] [stdout] 138 | if self.head != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 138 - if self.head != usize::max_value() { [INFO] [stdout] 138 + if self.head != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:153:19 [INFO] [stdout] | [INFO] [stdout] 153 | if self.tail != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 153 - if self.tail != usize::max_value() { [INFO] [stdout] 153 + if self.tail != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | self.vec[self.tail].1 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 154 - self.vec[self.tail].1 = usize::max_value(); [INFO] [stdout] 154 + self.vec[self.tail].1 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 156 | self.head = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 156 - self.head = usize::max_value(); [INFO] [stdout] 156 + self.head = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:168:19 [INFO] [stdout] | [INFO] [stdout] 168 | if self.head != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 168 - if self.head != usize::max_value() { [INFO] [stdout] 168 + if self.head != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | self.vec[self.head].0 = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 169 - self.vec[self.head].0 = usize::max_value(); [INFO] [stdout] 169 + self.vec[self.head].0 = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:171:16 [INFO] [stdout] | [INFO] [stdout] 171 | self.tail = usize::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 171 - self.tail = usize::max_value(); [INFO] [stdout] 171 + self.tail = usize::MAX; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:183:14 [INFO] [stdout] | [INFO] [stdout] 183 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 183 - if next != usize::max_value() { [INFO] [stdout] 183 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/ordered_linked_list.rs:167:3 [INFO] [stdout] | [INFO] [stdout] 167 | self.0.increment(&mut index.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.increment(&mut index.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/ordered_linked_list.rs:171:3 [INFO] [stdout] | [INFO] [stdout] 171 | self.0.decrement(&mut index.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.decrement(&mut index.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 197 - if prev != usize::max_value() { [INFO] [stdout] 197 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/ordered_linked_list.rs:174:3 [INFO] [stdout] | [INFO] [stdout] 174 | self.0.clear() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: add a `;` here: `self.0.clear();` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/ordered_linked_list.rs:183:6 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a, T: Ord> ops::Index> for OrderedLinkedList { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 183 - impl<'a, T: Ord> ops::Index> for OrderedLinkedList { [INFO] [stdout] 183 + impl ops::Index> for OrderedLinkedList { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/ordered_linked_list.rs:208:6 [INFO] [stdout] | [INFO] [stdout] 208 | impl<'a, T: Ord> Clone for OrderedLinkedListIter<'a, T> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 208 - impl<'a, T: Ord> Clone for OrderedLinkedListIter<'a, T> { [INFO] [stdout] 208 + impl Clone for OrderedLinkedListIter<'_, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 209 - if prev != usize::max_value() { [INFO] [stdout] 209 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 214 - if next != usize::max_value() { [INFO] [stdout] 214 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 229 - if prev != usize::max_value() { [INFO] [stdout] 229 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:234:14 [INFO] [stdout] | [INFO] [stdout] 234 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 234 - if next != usize::max_value() { [INFO] [stdout] 234 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:244:15 [INFO] [stdout] | [INFO] [stdout] 244 | if next2 != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 244 - if next2 != usize::max_value() { [INFO] [stdout] 244 + if next2 != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:255:14 [INFO] [stdout] | [INFO] [stdout] 255 | if prev != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 255 - if prev != usize::max_value() { [INFO] [stdout] 255 + if prev != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | if next != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 260 - if next != usize::max_value() { [INFO] [stdout] 260 + if next != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:270:15 [INFO] [stdout] | [INFO] [stdout] 270 | if prev2 != usize::max_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 270 - if prev2 != usize::max_value() { [INFO] [stdout] 270 + if prev2 != usize::MAX { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:280:23 [INFO] [stdout] | [INFO] [stdout] 280 | assert_ne!(index.0, usize::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 280 - assert_ne!(index.0, usize::max_value()); [INFO] [stdout] 280 + assert_ne!(index.0, usize::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/linked_list.rs:285:23 [INFO] [stdout] | [INFO] [stdout] 285 | assert_ne!(index.0, usize::max_value()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 285 - assert_ne!(index.0, usize::max_value()); [INFO] [stdout] 285 + assert_ne!(index.0, usize::MAX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/linked_list.rs:293:6 [INFO] [stdout] | [INFO] [stdout] 293 | impl<'a, T> ops::Index> for LinkedList { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 293 - impl<'a, T> ops::Index> for LinkedList { [INFO] [stdout] 293 + impl ops::Index> for LinkedList { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/linked_list.rs:300:6 [INFO] [stdout] | [INFO] [stdout] 300 | impl<'a, T> ops::IndexMut> for LinkedList { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 300 - impl<'a, T> ops::IndexMut> for LinkedList { [INFO] [stdout] 300 + impl ops::IndexMut> for LinkedList { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/ordered_linked_list.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> OrderedLinkedListIndex<'a> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 8 - impl<'a> OrderedLinkedListIndex<'a> { [INFO] [stdout] 8 + impl OrderedLinkedListIndex<'_> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/ordered_linked_list.rs:167:3 [INFO] [stdout] | [INFO] [stdout] 167 | self.0.increment(&mut index.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.increment(&mut index.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/ordered_linked_list.rs:171:3 [INFO] [stdout] | [INFO] [stdout] 171 | self.0.decrement(&mut index.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.decrement(&mut index.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/ordered_linked_list.rs:174:3 [INFO] [stdout] | [INFO] [stdout] 174 | self.0.clear() [INFO] [stdout] | ^^^^^^^^^^^^^^ help: add a `;` here: `self.0.clear();` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/ordered_linked_list.rs:183:6 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a, T: Ord> ops::Index> for OrderedLinkedList { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 183 - impl<'a, T: Ord> ops::Index> for OrderedLinkedList { [INFO] [stdout] 183 + impl ops::Index> for OrderedLinkedList { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/ordered_linked_list.rs:208:6 [INFO] [stdout] | [INFO] [stdout] 208 | impl<'a, T: Ord> Clone for OrderedLinkedListIter<'a, T> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 208 - impl<'a, T: Ord> Clone for OrderedLinkedListIter<'a, T> { [INFO] [stdout] 208 + impl Clone for OrderedLinkedListIter<'_, T> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/sample.rs:242:3 [INFO] [stdout] | [INFO] [stdout] 242 | println!("{:#?}", hash); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 242 - println!("{:#?}", hash); [INFO] [stdout] 242 + println!("{hash:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/sample.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 259 | println!("{:#?}", hash); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 259 - println!("{:#?}", hash); [INFO] [stdout] 259 + println!("{hash:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `iter` method without an `IntoIterator` impl for `&Sort` [INFO] [stdout] --> src/sort.rs:58:2 [INFO] [stdout] | [INFO] [stdout] 58 | / pub fn iter(&self) -> std::collections::btree_set::Iter<'_, T> { [INFO] [stdout] 59 | | self.top.iter() [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_without_into_iter [INFO] [stdout] = note: `#[warn(clippy::iter_without_into_iter)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: consider implementing `IntoIterator` for `&Sort` [INFO] [stdout] | [INFO] [stdout] 28 + [INFO] [stdout] 29 + impl IntoIterator for &Sort { [INFO] [stdout] 30 + type Item = &T; [INFO] [stdout] 31 + type IntoIter = std::collections::btree_set::Iter<'_, T>; [INFO] [stdout] 32 + fn into_iter(self) -> Self::IntoIter { [INFO] [stdout] 33 + self.iter() [INFO] [stdout] 34 + } [INFO] [stdout] 35 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: implicit borrow as raw pointer [INFO] [stdout] --> src/sort.rs:196:59 [INFO] [stdout] | [INFO] [stdout] 196 | let set: *mut std::collections::BTreeSet> = &mut self.set; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr [INFO] [stdout] = note: `#[warn(clippy::borrow_as_ptr)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: use a raw pointer instead [INFO] [stdout] | [INFO] [stdout] 196 | let set: *mut std::collections::BTreeSet> = &raw mut self.set; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/sort.rs:266:2 [INFO] [stdout] | [INFO] [stdout] 266 | / impl PartialOrd for TrivialOrd { [INFO] [stdout] 267 | | fn partial_cmp(&self, _other: &Self) -> Option { [INFO] [stdout] 268 | | unreachable!() [INFO] [stdout] 269 | | } [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 267 - fn partial_cmp(&self, _other: &Self) -> Option { [INFO] [stdout] 268 - unreachable!() [INFO] [stdout] 269 - } [INFO] [stdout] 267 + fn partial_cmp(&self, _other: &Self) -> Option { Some(self.cmp(_other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: only a `panic!` in `if`-then statement [INFO] [stdout] --> src/sort.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | / if mem::size_of_val(f) != 0 { [INFO] [stdout] 285 | | panic!("Closures with nonzero size not supported"); [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert [INFO] [stdout] = note: `#[warn(clippy::manual_assert)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: replace `if`-then-`panic!` with `assert!` [INFO] [stdout] | [INFO] [stdout] 284 - if mem::size_of_val(f) != 0 { [INFO] [stdout] 285 - panic!("Closures with nonzero size not supported"); [INFO] [stdout] 286 - } [INFO] [stdout] 284 + assert!(mem::size_of_val(f) == 0, "Closures with nonzero size not supported"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: implicit borrow as raw pointer [INFO] [stdout] --> src/sort.rs:300:26 [INFO] [stdout] | [INFO] [stdout] 300 | let self_: *const T = &self.t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr [INFO] [stdout] help: use a raw pointer instead [INFO] [stdout] | [INFO] [stdout] 300 | let self_: *const T = &raw const self.t; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `iter` method without an `IntoIterator` impl for `&Sort` [INFO] [stdout] --> src/sort.rs:58:2 [INFO] [stdout] | [INFO] [stdout] 58 | / pub fn iter(&self) -> std::collections::btree_set::Iter<'_, T> { [INFO] [stdout] 59 | | self.top.iter() [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_without_into_iter [INFO] [stdout] = note: `#[warn(clippy::iter_without_into_iter)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: consider implementing `IntoIterator` for `&Sort` [INFO] [stdout] | [INFO] [stdout] 28 + [INFO] [stdout] 29 + impl IntoIterator for &Sort { [INFO] [stdout] 30 + type Item = &T; [INFO] [stdout] 31 + type IntoIter = std::collections::btree_set::Iter<'_, T>; [INFO] [stdout] 32 + fn into_iter(self) -> Self::IntoIter { [INFO] [stdout] 33 + self.iter() [INFO] [stdout] 34 + } [INFO] [stdout] 35 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/top.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | for &Node(_, ref count) in self.list.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 64 - for &Node(_, ref count) in self.list.iter() { [INFO] [stdout] 64 + for Node(_, count) in self.list.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: implicit borrow as raw pointer [INFO] [stdout] --> src/sort.rs:196:59 [INFO] [stdout] | [INFO] [stdout] 196 | let set: *mut std::collections::BTreeSet> = &mut self.set; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr [INFO] [stdout] = note: `#[warn(clippy::borrow_as_ptr)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: use a raw pointer instead [INFO] [stdout] | [INFO] [stdout] 196 | let set: *mut std::collections::BTreeSet> = &raw mut self.set; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `iter` method without an `IntoIterator` impl for `&Top` [INFO] [stdout] --> src/top.rs:115:2 [INFO] [stdout] | [INFO] [stdout] 115 | / pub fn iter(&self) -> TopIter<'_, A, C> { [INFO] [stdout] 116 | | TopIter { [INFO] [stdout] 117 | | list_iter: self.list.iter(), [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_without_into_iter [INFO] [stdout] help: consider implementing `IntoIterator` for `&Top` [INFO] [stdout] | [INFO] [stdout] 46 + [INFO] [stdout] 47 + impl IntoIterator for &Top { [INFO] [stdout] 48 + type Item = (&A, &C); [INFO] [stdout] 49 + type IntoIter = top::TopIter<'_, A, C>; [INFO] [stdout] 50 + fn into_iter(self) -> Self::IntoIter { [INFO] [stdout] 51 + self.iter() [INFO] [stdout] 52 + } [INFO] [stdout] 53 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/sort.rs:266:2 [INFO] [stdout] | [INFO] [stdout] 266 | / impl PartialOrd for TrivialOrd { [INFO] [stdout] 267 | | fn partial_cmp(&self, _other: &Self) -> Option { [INFO] [stdout] 268 | | unreachable!() [INFO] [stdout] 269 | | } [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 267 - fn partial_cmp(&self, _other: &Self) -> Option { [INFO] [stdout] 268 - unreachable!() [INFO] [stdout] 269 - } [INFO] [stdout] 267 + fn partial_cmp(&self, _other: &Self) -> Option { Some(self.cmp(_other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: only a `panic!` in `if`-then statement [INFO] [stdout] --> src/sort.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | / if mem::size_of_val(f) != 0 { [INFO] [stdout] 285 | | panic!("Closures with nonzero size not supported"); [INFO] [stdout] 286 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert [INFO] [stdout] = note: `#[warn(clippy::manual_assert)]` implied by `#[warn(clippy::pedantic)]` [INFO] [stdout] help: replace `if`-then-`panic!` with `assert!` [INFO] [stdout] | [INFO] [stdout] 284 - if mem::size_of_val(f) != 0 { [INFO] [stdout] 285 - panic!("Closures with nonzero size not supported"); [INFO] [stdout] 286 - } [INFO] [stdout] 284 + assert!(mem::size_of_val(f) == 0, "Closures with nonzero size not supported"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: implicit borrow as raw pointer [INFO] [stdout] --> src/sort.rs:300:26 [INFO] [stdout] | [INFO] [stdout] 300 | let self_: *const T = &self.t; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr [INFO] [stdout] help: use a raw pointer instead [INFO] [stdout] | [INFO] [stdout] 300 | let self_: *const T = &raw const self.t; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:269:18 [INFO] [stdout] | [INFO] [stdout] 269 | (true, _) => format!("a{}", c), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 269 - (true, _) => format!("a{}", c), [INFO] [stdout] 269 + (true, _) => format!("a{c}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:270:22 [INFO] [stdout] | [INFO] [stdout] 270 | (false, true) => format!("b{}", c), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 270 - (false, true) => format!("b{}", c), [INFO] [stdout] 270 + (false, true) => format!("b{c}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:271:23 [INFO] [stdout] | [INFO] [stdout] 271 | (false, false) => format!("c{}", c), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 271 - (false, false) => format!("c{}", c), [INFO] [stdout] 271 + (false, false) => format!("c{c}"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:276:3 [INFO] [stdout] | [INFO] [stdout] 276 | println!("{:#?}", top); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 276 - println!("{:#?}", top); [INFO] [stdout] 276 + println!("{top:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:279:3 [INFO] [stdout] | [INFO] [stdout] 279 | println!("{:#?}", x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 279 - println!("{:#?}", x); [INFO] [stdout] 279 + println!("{x:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/top.rs:291:2 [INFO] [stdout] | [INFO] [stdout] 291 | / impl PartialOrd for Hll { [INFO] [stdout] 292 | | #[inline(always)] [INFO] [stdout] 293 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 294 | | self.0.len().partial_cmp(&other.0.len()) [INFO] [stdout] 295 | | } [INFO] [stdout] 296 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 293 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 294 - self.0.len().partial_cmp(&other.0.len()) [INFO] [stdout] 295 - } [INFO] [stdout] 293 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/top.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | self.0.union_assign(&rhs.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.union_assign(&rhs.0);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/top.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | for &Node(_, ref count) in self.list.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 64 - for &Node(_, ref count) in self.list.iter() { [INFO] [stdout] 64 + for Node(_, count) in self.list.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider adding a `;` to the last statement for consistent formatting [INFO] [stdout] --> src/top.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | self.0.add_assign(rhs) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.0.add_assign(rhs);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:353:19 [INFO] [stdout] | [INFO] [stdout] 353 | (true, _) => (format!("a{}", c), format!("{}", rng.gen_range(0, 500))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 353 - (true, _) => (format!("a{}", c), format!("{}", rng.gen_range(0, 500))), [INFO] [stdout] 353 + (true, _) => (format!("a{c}"), format!("{}", rng.gen_range(0, 500))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `iter` method without an `IntoIterator` impl for `&Top` [INFO] [stdout] --> src/top.rs:115:2 [INFO] [stdout] | [INFO] [stdout] 115 | / pub fn iter(&self) -> TopIter<'_, A, C> { [INFO] [stdout] 116 | | TopIter { [INFO] [stdout] 117 | | list_iter: self.list.iter(), [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_without_into_iter [INFO] [stdout] help: consider implementing `IntoIterator` for `&Top` [INFO] [stdout] | [INFO] [stdout] 46 + [INFO] [stdout] 47 + impl IntoIterator for &Top { [INFO] [stdout] 48 + type Item = (&A, &C); [INFO] [stdout] 49 + type IntoIter = top::TopIter<'_, A, C>; [INFO] [stdout] 50 + fn into_iter(self) -> Self::IntoIter { [INFO] [stdout] 51 + self.iter() [INFO] [stdout] 52 + } [INFO] [stdout] 53 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:354:23 [INFO] [stdout] | [INFO] [stdout] 354 | (false, true) => (format!("b{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 354 - (false, true) => (format!("b{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] 354 + (false, true) => (format!("b{c}"), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:355:24 [INFO] [stdout] | [INFO] [stdout] 355 | (false, false) => (format!("c{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 355 - (false, false) => (format!("c{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] 355 + (false, false) => (format!("c{c}"), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:363:3 [INFO] [stdout] | [INFO] [stdout] 363 | println!("{:#?}", top); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 363 - println!("{:#?}", top); [INFO] [stdout] 363 + println!("{top:#?}"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:382:19 [INFO] [stdout] | [INFO] [stdout] 382 | (true, _) => (format!("a{}", c), format!("{}", rng.gen_range(0, 500))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 382 - (true, _) => (format!("a{}", c), format!("{}", rng.gen_range(0, 500))), [INFO] [stdout] 382 + (true, _) => (format!("a{c}"), format!("{}", rng.gen_range(0, 500))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:383:23 [INFO] [stdout] | [INFO] [stdout] 383 | (false, true) => (format!("b{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 383 - (false, true) => (format!("b{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] 383 + (false, true) => (format!("b{c}"), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variables can be used directly in the `format!` string [INFO] [stdout] --> src/top.rs:384:24 [INFO] [stdout] | [INFO] [stdout] 384 | (false, false) => (format!("c{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 384 - (false, false) => (format!("c{}", c), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] 384 + (false, false) => (format!("c{c}"), format!("{}", rng.gen_range(0, 200))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/lib.rs:88:39 [INFO] [stdout] | [INFO] [stdout] 88 | assert!(a.is_sign_positive() && a <= usize::max_value() as f64 && a.fract() == 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 88 - assert!(a.is_sign_positive() && a <= usize::max_value() as f64 && a.fract() == 0.0); [INFO] [stdout] 88 + assert!(a.is_sign_positive() && a <= usize::MAX as f64 && a.fract() == 0.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/lib.rs:98:49 [INFO] [stdout] | [INFO] [stdout] 98 | assert!(a.is_sign_positive() && a <= f64::from(u8::max_value()) && a.fract() == 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 98 - assert!(a.is_sign_positive() && a <= f64::from(u8::max_value()) && a.fract() == 0.0); [INFO] [stdout] 98 + assert!(a.is_sign_positive() && a <= f64::from(u8::MAX) && a.fract() == 0.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/lib.rs:88:39 [INFO] [stdout] | [INFO] [stdout] 88 | assert!(a.is_sign_positive() && a <= usize::max_value() as f64 && a.fract() == 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 88 - assert!(a.is_sign_positive() && a <= usize::max_value() as f64 && a.fract() == 0.0); [INFO] [stdout] 88 + assert!(a.is_sign_positive() && a <= usize::MAX as f64 && a.fract() == 0.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/lib.rs:98:49 [INFO] [stdout] | [INFO] [stdout] 98 | assert!(a.is_sign_positive() && a <= f64::from(u8::max_value()) && a.fract() == 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 98 - assert!(a.is_sign_positive() && a <= f64::from(u8::max_value()) && a.fract() == 0.0); [INFO] [stdout] 98 + assert!(a.is_sign_positive() && a <= f64::from(u8::MAX) && a.fract() == 0.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn head(&self) -> Option { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 99 | pub fn head(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn head(&self) -> Option { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 99 | pub fn head(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn tail(&self) -> Option { [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] 107 | pub fn tail(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn push_back(&mut self, t: T) -> LinkedListIndex { [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] 122 | pub fn push_back(&mut self, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn push_front(&mut self, t: T) -> LinkedListIndex { [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] 135 | pub fn push_front(&mut self, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:178:22 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn insert_after(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 178 | pub fn insert_after(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:192:23 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn insert_before(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 192 | pub fn insert_before(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn head(&self) -> Option { [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] 44 | pub fn head(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn tail(&self) -> Option { [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 tail(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn push_back(&mut self, t: T) -> OrderedLinkedListIndex { [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] 59 | pub fn push_back(&mut self, t: T) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn push_front(&mut self, t: T) -> OrderedLinkedListIndex { [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] 77 | pub fn push_front(&mut self, t: T) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:146:3 [INFO] [stdout] | [INFO] [stdout] 146 | &mut self, _index: OrderedLinkedListIndex, _t: T, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] 147 | ) -> OrderedLinkedListIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 147 | ) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:151:3 [INFO] [stdout] | [INFO] [stdout] 151 | &mut self, _index: OrderedLinkedListIndex, _t: T, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] 152 | ) -> OrderedLinkedListIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 152 | ) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn tail(&self) -> Option { [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] 107 | pub fn tail(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn push_back(&mut self, t: T) -> LinkedListIndex { [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] 122 | pub fn push_back(&mut self, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn push_front(&mut self, t: T) -> LinkedListIndex { [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] 135 | pub fn push_front(&mut self, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:178:22 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn insert_after(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 178 | pub fn insert_after(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/linked_list.rs:192:23 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn insert_before(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 192 | pub fn insert_before(&mut self, index: LinkedListIndex, t: T) -> LinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn head(&self) -> Option { [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] 44 | pub fn head(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn tail(&self) -> Option { [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 tail(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn push_back(&mut self, t: T) -> OrderedLinkedListIndex { [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] 59 | pub fn push_back(&mut self, t: T) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn push_front(&mut self, t: T) -> OrderedLinkedListIndex { [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] 77 | pub fn push_front(&mut self, t: T) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:146:3 [INFO] [stdout] | [INFO] [stdout] 146 | &mut self, _index: OrderedLinkedListIndex, _t: T, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] 147 | ) -> OrderedLinkedListIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 147 | ) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ordered_linked_list.rs:151:3 [INFO] [stdout] | [INFO] [stdout] 151 | &mut self, _index: OrderedLinkedListIndex, _t: T, [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here [INFO] [stdout] 152 | ) -> OrderedLinkedListIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden 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] 152 | ) -> OrderedLinkedListIndex<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.46s [INFO] running `Command { std: "docker" "inspect" "96a66974e1c681922368fca5c2dfccddaa954438c00da2b90f857f551b54b5f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96a66974e1c681922368fca5c2dfccddaa954438c00da2b90f857f551b54b5f8", kill_on_drop: false }` [INFO] [stdout] 96a66974e1c681922368fca5c2dfccddaa954438c00da2b90f857f551b54b5f8