[INFO] fetching crate senor_borroso 0.1.0... [INFO] building senor_borroso-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate senor_borroso 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate senor_borroso 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate senor_borroso 0.1.0 [INFO] finished tweaking crates.io crate senor_borroso 0.1.0 [INFO] tweaked toml for crates.io crate senor_borroso 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate senor_borroso 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded space v0.12.0 [INFO] [stderr] Downloaded hnsw v0.8.0 [INFO] [stderr] Downloaded unidecode v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf36c0bb3027c8cdc7747e9df878a917fc8c03e48fd13b026ab5c035f5fa0d95 [INFO] running `Command { std: "docker" "start" "-a" "cf36c0bb3027c8cdc7747e9df878a917fc8c03e48fd13b026ab5c035f5fa0d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf36c0bb3027c8cdc7747e9df878a917fc8c03e48fd13b026ab5c035f5fa0d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf36c0bb3027c8cdc7747e9df878a917fc8c03e48fd13b026ab5c035f5fa0d95", kill_on_drop: false }` [INFO] [stdout] cf36c0bb3027c8cdc7747e9df878a917fc8c03e48fd13b026ab5c035f5fa0d95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3407899fd6f1271bc73c2121dade9e7614cb8e8eb4e8bf7f5e6ce4b4c67da971 [INFO] running `Command { std: "docker" "start" "-a" "3407899fd6f1271bc73c2121dade9e7614cb8e8eb4e8bf7f5e6ce4b4c67da971", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling space v0.12.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling rand_pcg v0.3.1 [INFO] [stderr] Compiling levenshtein v1.0.5 [INFO] [stderr] Compiling unidecode v0.3.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling hnsw v0.8.0 [INFO] [stderr] Compiling senor_borroso v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuzzyIndexTest`, `HnswTester`, `Testable`, and `TrainingAtom` [INFO] [stdout] --> src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use testing::{FuzzyIndexTest, HnswTester, Testable, TrainingAtom}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FxHasher32` [INFO] [stdout] --> src/feat.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use fxhash::{FxHasher32, FxHasher64}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::transmute` [INFO] [stdout] --> src/feat.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::mem::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/feat.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | (n as f64 / d as f64) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 175 - (n as f64 / d as f64) [INFO] [stdout] 175 + n as f64 / d as f64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_Id` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | G_Id: Fn(Origin) -> Id, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `GId` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | G_T: Fn(&Origin) -> Vec, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `GT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `U_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 473 | U_T: CanGram, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `UT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_Id` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:484:6 [INFO] [stdout] | [INFO] [stdout] 484 | impl Featurizer for AnonFtzr [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `GId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:484:12 [INFO] [stdout] | [INFO] [stdout] 484 | impl Featurizer for AnonFtzr [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `GT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `U_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:484:17 [INFO] [stdout] | [INFO] [stdout] 484 | impl Featurizer for AnonFtzr [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `UT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dualiter::*` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use dualiter::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CanGram`, `EmptyFtzr`, `MultiFtzr`, `book_ends`, `n_gram`, and `skipgram` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use ftzrs::{book_ends, n_gram, skipgram, CanGram, EmptyFtzr, MultiFtzr}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuildHasherDefault` and `Hasher` [INFO] [stdout] --> src/fuzzyindex.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::{BuildHasherDefault, Hash, Hasher}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuzzyIndex` and `SearchParams` [INFO] [stdout] --> src/main.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | use fuzzyindex::{FuzzyIndex, SearchParams}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Counted`, `FuzzyPoint`, `Hamming`, `Jaccard`, `Labeled`, `Metric`, `SimHash`, and `SimplePoint` [INFO] [stdout] --> src/main.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | use fuzzypoint::{Counted, FuzzyPoint, Hamming, Jaccard, Labeled, Metric, SimHash, SimplePoint}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fuzzypoint::*` [INFO] [stdout] --> src/hasfeatures.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::fuzzypoint::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuildHasherDefault` and `Hasher` [INFO] [stdout] --> src/hasfeatures.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::hash::{BuildHasherDefault, Hash, Hasher}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/hasfeatures.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HasFeatures` and `HasName` [INFO] [stdout] --> src/main.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | use hasfeatures::{HasFeatures, HasName}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entry`, `get_entry`, `open_lexicon`, `rec_rev_str`, and `shuffle` [INFO] [stdout] --> src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | use utils::{get_entry, open_lexicon, rec_rev_str, shuffle, Entry}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ta` [INFO] [stdout] --> src/testing.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_false_negative(&self, ta: &TrainingAtom, a: &Self::Item) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/testing.rs:22:64 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_false_negative(&self, ta: &TrainingAtom, a: &Self::Item) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/testing.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | fn average_comparisons(&mut self, data: Data) -> f32 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/testing.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let n = hn.nearest(&point, self.ef, &mut self.searcher, &mut neighbors)[0]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_a` [INFO] [stdout] --> src/feat.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let sim_a = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_b` [INFO] [stdout] --> src/feat.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let sim_b = 0; //simhash_stream(vbow.iter()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/feat.rs:398:70 [INFO] [stdout] | [INFO] [stdout] 398 | fn run (), T: Sized + Hash + fmt::Debug>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `push_feat` [INFO] [stdout] --> src/feat.rs:398:79 [INFO] [stdout] | [INFO] [stdout] 398 | fn run (), T: Sized + Hash + fmt::Debug>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_push_feat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ss` [INFO] [stdout] --> src/feat.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | let ss = SkipScheme { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ftzrs.rs:162:69 [INFO] [stdout] | [INFO] [stdout] 162 | fn run ()>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `push_feat` [INFO] [stdout] --> src/ftzrs.rs:162:78 [INFO] [stdout] | [INFO] [stdout] 162 | fn run ()>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_push_feat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut item_iter = self.to_sort.drain(..); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut points: Vec> = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut r = FuzzySearchIndex { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let mut sort_slate: &mut Vec = &mut Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let mut points = &mut e.entry; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_toks` [INFO] [stdout] --> src/fuzzyindex.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let n_toks = point.get_sorted_features().len() as f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_toks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tfidf` [INFO] [stdout] --> src/fuzzyindex.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | let tfidf: u32 = 512 / ((e.id as f64).log2() as u32 + 1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tfidf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `induce_typo` is never used [INFO] [stdout] --> src/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn induce_typo(word: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fix_error`, `is_false_negative`, `sim`, `run`, and `average_comparisons` are never used [INFO] [stdout] --> src/testing.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Testable { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 20 | type Item: Eq + Clone; [INFO] [stdout] 21 | fn fix_error(&mut self, typo: &Self::Item) -> Self::Item; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | fn is_false_negative(&self, ta: &TrainingAtom, a: &Self::Item) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn sim(&self, a: &Self::Item, b: &Self::Item) -> f64; [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | fn run(&mut self, data: Vec>) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn average_comparisons(&mut self, data: Data) -> f32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/testing.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 97 | impl> FuzzyIndexTest { [INFO] [stdout] | --------------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 98 | pub fn new(lookup: FuzzyIndex, params: SearchParams) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/testing.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 156 | / impl< [INFO] [stdout] 157 | | Ftzr: CanGram, [INFO] [stdout] 158 | | Mtrc: Clone + Metric, [INFO] [stdout] 159 | | Point: FuzzyPoint, [INFO] [stdout] 160 | | const M: usize, [INFO] [stdout] 161 | | const M0: usize, [INFO] [stdout] 162 | | > HnswTester [INFO] [stdout] | |__________________________________________- associated function in this implementation [INFO] [stdout] 163 | { [INFO] [stdout] 164 | pub fn new(ftzr: Ftzr, m: Mtrc, ef: usize, words: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FnvBuildHasher` is never used [INFO] [stdout] --> src/feat.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | type FnvBuildHasher = BuildHasherDefault; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_feature` is never used [INFO] [stdout] --> src/feat.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn hash_feature(t: &T) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simhash_stream` is never used [INFO] [stdout] --> src/feat.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn simhash_stream(words: W) -> u64 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simhash_stream_u128` is never used [INFO] [stdout] --> src/feat.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn simhash_stream_u128(words: W) -> u128 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FeatEntry` is never used [INFO] [stdout] --> src/feat.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_features` and `new` are never used [INFO] [stdout] --> src/feat.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub trait Featurizer { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 125 | fn push_features ()>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn new(&self, s: Self::Origin) -> FuzzyEntry { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sim` and `ham_dist` are never used [INFO] [stdout] --> src/feat.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl FuzzyEntry { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] 156 | #[inline(always)] [INFO] [stdout] 157 | pub fn sim(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn ham_dist(&self, other: &Self) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skipgram` is never used [INFO] [stdout] --> src/feat.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn skipgram(a: usize, gap: (usize, usize), b: usize) -> SkipScheme { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/feat.rs:522:12 [INFO] [stdout] | [INFO] [stdout] 521 | impl DocFtzr { [INFO] [stdout] | ----------------------------------------------- associated function in this implementation [INFO] [stdout] 522 | pub fn new(cg: Cg) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `n_gram` is never used [INFO] [stdout] --> src/ftzrs.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn n_gram(n: usize) -> SkipScheme { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skipgram` is never used [INFO] [stdout] --> src/ftzrs.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn skipgram(a: usize, gap: (usize, usize), b: usize) -> SkipScheme { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `book_ends` is never used [INFO] [stdout] --> src/ftzrs.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn book_ends(head_toe: (usize, usize), cg: Cg) -> BookEndsFtzr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `freq_of`, `compress_index`, and `compress_step` are never used [INFO] [stdout] --> src/fuzzyindex.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 130 | / impl FuzzySearchIndex [INFO] [stdout] 131 | | where [INFO] [stdout] 132 | | Tok: Sized + Hash + Debug, [INFO] [stdout] 133 | | Origin: HasFeatures + HasName + Eq + Hash, [INFO] [stdout] 134 | | Point: FuzzyPoint, [INFO] [stdout] 135 | | Ftzr: CanGram, [INFO] [stdout] 136 | | Id: Clone, [INFO] [stdout] | |______________- associated items in this implementation [INFO] [stdout] 137 | { [INFO] [stdout] 138 | pub fn new>(ftzr: Ftzr, sequences: W) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn freq_of(&self, f: &Feature) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn compress_index(&mut self, cuttoff: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn compress_step(&mut self, cuttoff: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_features_mut` is never used [INFO] [stdout] --> src/fuzzypoint.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait FuzzyPoint { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn get_features_mut<'a>(&'a mut self) -> &'a mut Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simhash_stream_u128` is never used [INFO] [stdout] --> src/fuzzypoint.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn simhash_stream_u128(words: W) -> u128 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/hasfeatures.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait HasName { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 15 | type Id: Eq + Clone + Hash; [INFO] [stdout] 16 | fn name(&self) -> Self::Id; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shuffle` is never used [INFO] [stdout] --> src/utils.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shuffle(items: &[T]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_rev_str` is never used [INFO] [stdout] --> src/utils.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn rec_rev_str(mut s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_lexicon` is never used [INFO] [stdout] --> src/utils.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn open_lexicon(path: &Path) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `palindrome_lexicon` is never used [INFO] [stdout] --> src/utils.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn palindrome_lexicon(lx: &mut HashSet) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters in type aliases are not enforced [INFO] [stdout] --> src/feat.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry; [INFO] [stdout] | ^^^^^^^^^^ will not be checked at usage sites of the type alias [INFO] [stdout] | [INFO] [stdout] = note: this is a known limitation of the type checker that may be lifted in a future edition. [INFO] [stdout] see issue #112792 for more information [INFO] [stdout] = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: remove this bound [INFO] [stdout] | [INFO] [stdout] 118 - pub type FeatEntry = FuzzyEntry; [INFO] [stdout] 118 + pub type FeatEntry = FuzzyEntry; [INFO] [stdout] | [INFO] [stdout] help: fully qualify this associated type [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry<::Feat, F::Id>; [INFO] [stdout] | + +++++++++++++++ [INFO] [stdout] help: fully qualify this associated type [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry::Id>; [INFO] [stdout] | + +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/feat.rs:312:25 [INFO] [stdout] | [INFO] [stdout] 312 | &s[x..y].hash(&mut hasher); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 312 | let _ = &s[x..y].hash(&mut hasher); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/ftzrs.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | &s[x..y].hash(&mut hasher); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = &s[x..y].hash(&mut hasher); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters in type aliases are not enforced [INFO] [stdout] --> src/fuzzyindex.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | pub type FuzzyIndex = [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ will not be checked at usage sites of the type alias [INFO] [stdout] | [INFO] [stdout] = note: this is a known limitation of the type checker that may be lifted in a future edition. [INFO] [stdout] see issue #112792 for more information [INFO] [stdout] = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics [INFO] [stdout] help: remove these bounds [INFO] [stdout] | [INFO] [stdout] 127 - pub type FuzzyIndex = [INFO] [stdout] 127 + pub type FuzzyIndex = [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.79s [INFO] running `Command { std: "docker" "inspect" "3407899fd6f1271bc73c2121dade9e7614cb8e8eb4e8bf7f5e6ce4b4c67da971", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3407899fd6f1271bc73c2121dade9e7614cb8e8eb4e8bf7f5e6ce4b4c67da971", kill_on_drop: false }` [INFO] [stdout] 3407899fd6f1271bc73c2121dade9e7614cb8e8eb4e8bf7f5e6ce4b4c67da971 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 191cb611f09631f93f7d70e74b94a46f6ce426d8a3ca33e9b7ffdc90485614c0 [INFO] running `Command { std: "docker" "start" "-a" "191cb611f09631f93f7d70e74b94a46f6ce426d8a3ca33e9b7ffdc90485614c0", kill_on_drop: false }` [INFO] [stderr] Compiling senor_borroso v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuzzyIndexTest`, `HnswTester`, `Testable`, and `TrainingAtom` [INFO] [stdout] --> src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use testing::{FuzzyIndexTest, HnswTester, Testable, TrainingAtom}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FxHasher32` [INFO] [stdout] --> src/feat.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use fxhash::{FxHasher32, FxHasher64}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::transmute` [INFO] [stdout] --> src/feat.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::mem::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/feat.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | (n as f64 / d as f64) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 175 - (n as f64 / d as f64) [INFO] [stdout] 175 + n as f64 / d as f64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_Id` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | G_Id: Fn(Origin) -> Id, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `GId` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | G_T: Fn(&Origin) -> Vec, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `GT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `U_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 473 | U_T: CanGram, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `UT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_Id` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:484:6 [INFO] [stdout] | [INFO] [stdout] 484 | impl Featurizer for AnonFtzr [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `GId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `G_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:484:12 [INFO] [stdout] | [INFO] [stdout] 484 | impl Featurizer for AnonFtzr [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `GT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `U_T` should have an upper camel case name [INFO] [stdout] --> src/feat.rs:484:17 [INFO] [stdout] | [INFO] [stdout] 484 | impl Featurizer for AnonFtzr [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `UT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dualiter::*` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use dualiter::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CanGram`, `EmptyFtzr`, `MultiFtzr`, `book_ends`, `n_gram`, and `skipgram` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use ftzrs::{book_ends, n_gram, skipgram, CanGram, EmptyFtzr, MultiFtzr}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuildHasherDefault` and `Hasher` [INFO] [stdout] --> src/fuzzyindex.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::{BuildHasherDefault, Hash, Hasher}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FuzzyIndex` and `SearchParams` [INFO] [stdout] --> src/main.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | use fuzzyindex::{FuzzyIndex, SearchParams}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Counted`, `FuzzyPoint`, `Hamming`, `Jaccard`, `Labeled`, `Metric`, `SimHash`, and `SimplePoint` [INFO] [stdout] --> src/main.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | use fuzzypoint::{Counted, FuzzyPoint, Hamming, Jaccard, Labeled, Metric, SimHash, SimplePoint}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fuzzypoint::*` [INFO] [stdout] --> src/hasfeatures.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::fuzzypoint::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BuildHasherDefault` and `Hasher` [INFO] [stdout] --> src/hasfeatures.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::hash::{BuildHasherDefault, Hash, Hasher}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/hasfeatures.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HasFeatures` and `HasName` [INFO] [stdout] --> src/main.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | use hasfeatures::{HasFeatures, HasName}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entry`, `get_entry`, `open_lexicon`, `rec_rev_str`, and `shuffle` [INFO] [stdout] --> src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | use utils::{get_entry, open_lexicon, rec_rev_str, shuffle, Entry}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ta` [INFO] [stdout] --> src/testing.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_false_negative(&self, ta: &TrainingAtom, a: &Self::Item) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/testing.rs:22:64 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_false_negative(&self, ta: &TrainingAtom, a: &Self::Item) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/testing.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | fn average_comparisons(&mut self, data: Data) -> f32 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/testing.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let n = hn.nearest(&point, self.ef, &mut self.searcher, &mut neighbors)[0]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_a` [INFO] [stdout] --> src/feat.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let sim_a = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_b` [INFO] [stdout] --> src/feat.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let sim_b = 0; //simhash_stream(vbow.iter()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/feat.rs:398:70 [INFO] [stdout] | [INFO] [stdout] 398 | fn run (), T: Sized + Hash + fmt::Debug>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `push_feat` [INFO] [stdout] --> src/feat.rs:398:79 [INFO] [stdout] | [INFO] [stdout] 398 | fn run (), T: Sized + Hash + fmt::Debug>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_push_feat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ss` [INFO] [stdout] --> src/feat.rs:449:13 [INFO] [stdout] | [INFO] [stdout] 449 | let ss = SkipScheme { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ss` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ftzrs.rs:162:69 [INFO] [stdout] | [INFO] [stdout] 162 | fn run ()>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `push_feat` [INFO] [stdout] --> src/ftzrs.rs:162:78 [INFO] [stdout] | [INFO] [stdout] 162 | fn run ()>(&self, s: &[T], push_feat: &mut F) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_push_feat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut item_iter = self.to_sort.drain(..); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut points: Vec> = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut r = FuzzySearchIndex { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let mut sort_slate: &mut Vec = &mut Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fuzzyindex.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let mut points = &mut e.entry; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_toks` [INFO] [stdout] --> src/fuzzyindex.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let n_toks = point.get_sorted_features().len() as f64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_toks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tfidf` [INFO] [stdout] --> src/fuzzyindex.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | let tfidf: u32 = 512 / ((e.id as f64).log2() as u32 + 1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tfidf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `induce_typo` is never used [INFO] [stdout] --> src/main.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn induce_typo(word: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fix_error`, `is_false_negative`, `sim`, `run`, and `average_comparisons` are never used [INFO] [stdout] --> src/testing.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Testable { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 20 | type Item: Eq + Clone; [INFO] [stdout] 21 | fn fix_error(&mut self, typo: &Self::Item) -> Self::Item; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | fn is_false_negative(&self, ta: &TrainingAtom, a: &Self::Item) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn sim(&self, a: &Self::Item, b: &Self::Item) -> f64; [INFO] [stdout] | ^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | fn run(&mut self, data: Vec>) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn average_comparisons(&mut self, data: Data) -> f32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/testing.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 97 | impl> FuzzyIndexTest { [INFO] [stdout] | --------------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 98 | pub fn new(lookup: FuzzyIndex, params: SearchParams) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/testing.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 156 | / impl< [INFO] [stdout] 157 | | Ftzr: CanGram, [INFO] [stdout] 158 | | Mtrc: Clone + Metric, [INFO] [stdout] 159 | | Point: FuzzyPoint, [INFO] [stdout] 160 | | const M: usize, [INFO] [stdout] 161 | | const M0: usize, [INFO] [stdout] 162 | | > HnswTester [INFO] [stdout] | |__________________________________________- associated function in this implementation [INFO] [stdout] 163 | { [INFO] [stdout] 164 | pub fn new(ftzr: Ftzr, m: Mtrc, ef: usize, words: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FnvBuildHasher` is never used [INFO] [stdout] --> src/feat.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | type FnvBuildHasher = BuildHasherDefault; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_feature` is never used [INFO] [stdout] --> src/feat.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn hash_feature(t: &T) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simhash_stream` is never used [INFO] [stdout] --> src/feat.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn simhash_stream(words: W) -> u64 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simhash_stream_u128` is never used [INFO] [stdout] --> src/feat.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn simhash_stream_u128(words: W) -> u128 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FeatEntry` is never used [INFO] [stdout] --> src/feat.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_features` and `new` are never used [INFO] [stdout] --> src/feat.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub trait Featurizer { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 125 | fn push_features ()>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn new(&self, s: Self::Origin) -> FuzzyEntry { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sim` and `ham_dist` are never used [INFO] [stdout] --> src/feat.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl FuzzyEntry { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] 156 | #[inline(always)] [INFO] [stdout] 157 | pub fn sim(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn ham_dist(&self, other: &Self) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skipgram` is never used [INFO] [stdout] --> src/feat.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn skipgram(a: usize, gap: (usize, usize), b: usize) -> SkipScheme { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/feat.rs:522:12 [INFO] [stdout] | [INFO] [stdout] 521 | impl DocFtzr { [INFO] [stdout] | ----------------------------------------------- associated function in this implementation [INFO] [stdout] 522 | pub fn new(cg: Cg) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `n_gram` is never used [INFO] [stdout] --> src/ftzrs.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn n_gram(n: usize) -> SkipScheme { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skipgram` is never used [INFO] [stdout] --> src/ftzrs.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn skipgram(a: usize, gap: (usize, usize), b: usize) -> SkipScheme { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `book_ends` is never used [INFO] [stdout] --> src/ftzrs.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn book_ends(head_toe: (usize, usize), cg: Cg) -> BookEndsFtzr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `freq_of`, `compress_index`, and `compress_step` are never used [INFO] [stdout] --> src/fuzzyindex.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 130 | / impl FuzzySearchIndex [INFO] [stdout] 131 | | where [INFO] [stdout] 132 | | Tok: Sized + Hash + Debug, [INFO] [stdout] 133 | | Origin: HasFeatures + HasName + Eq + Hash, [INFO] [stdout] 134 | | Point: FuzzyPoint, [INFO] [stdout] 135 | | Ftzr: CanGram, [INFO] [stdout] 136 | | Id: Clone, [INFO] [stdout] | |______________- associated items in this implementation [INFO] [stdout] 137 | { [INFO] [stdout] 138 | pub fn new>(ftzr: Ftzr, sequences: W) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn freq_of(&self, f: &Feature) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn compress_index(&mut self, cuttoff: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | fn compress_step(&mut self, cuttoff: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_features_mut` is never used [INFO] [stdout] --> src/fuzzypoint.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait FuzzyPoint { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn get_features_mut<'a>(&'a mut self) -> &'a mut Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simhash_stream_u128` is never used [INFO] [stdout] --> src/fuzzypoint.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn simhash_stream_u128(words: W) -> u128 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/hasfeatures.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait HasName { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 15 | type Id: Eq + Clone + Hash; [INFO] [stdout] 16 | fn name(&self) -> Self::Id; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shuffle` is never used [INFO] [stdout] --> src/utils.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn shuffle(items: &[T]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rec_rev_str` is never used [INFO] [stdout] --> src/utils.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn rec_rev_str(mut s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_lexicon` is never used [INFO] [stdout] --> src/utils.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn open_lexicon(path: &Path) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `palindrome_lexicon` is never used [INFO] [stdout] --> src/utils.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn palindrome_lexicon(lx: &mut HashSet) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters in type aliases are not enforced [INFO] [stdout] --> src/feat.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry; [INFO] [stdout] | ^^^^^^^^^^ will not be checked at usage sites of the type alias [INFO] [stdout] | [INFO] [stdout] = note: this is a known limitation of the type checker that may be lifted in a future edition. [INFO] [stdout] see issue #112792 for more information [INFO] [stdout] = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: remove this bound [INFO] [stdout] | [INFO] [stdout] 118 - pub type FeatEntry = FuzzyEntry; [INFO] [stdout] 118 + pub type FeatEntry = FuzzyEntry; [INFO] [stdout] | [INFO] [stdout] help: fully qualify this associated type [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry<::Feat, F::Id>; [INFO] [stdout] | + +++++++++++++++ [INFO] [stdout] help: fully qualify this associated type [INFO] [stdout] | [INFO] [stdout] 118 | pub type FeatEntry = FuzzyEntry::Id>; [INFO] [stdout] | + +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/feat.rs:312:25 [INFO] [stdout] | [INFO] [stdout] 312 | &s[x..y].hash(&mut hasher); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 312 | let _ = &s[x..y].hash(&mut hasher); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/ftzrs.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | &s[x..y].hash(&mut hasher); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | let _ = &s[x..y].hash(&mut hasher); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters in type aliases are not enforced [INFO] [stdout] --> src/fuzzyindex.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | pub type FuzzyIndex = [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ will not be checked at usage sites of the type alias [INFO] [stdout] | [INFO] [stdout] = note: this is a known limitation of the type checker that may be lifted in a future edition. [INFO] [stdout] see issue #112792 for more information [INFO] [stdout] = help: add `#![feature(lazy_type_alias)]` to the crate attributes to enable the desired semantics [INFO] [stdout] help: remove these bounds [INFO] [stdout] | [INFO] [stdout] 127 - pub type FuzzyIndex = [INFO] [stdout] 127 + pub type FuzzyIndex = [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "191cb611f09631f93f7d70e74b94a46f6ce426d8a3ca33e9b7ffdc90485614c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "191cb611f09631f93f7d70e74b94a46f6ce426d8a3ca33e9b7ffdc90485614c0", kill_on_drop: false }` [INFO] [stdout] 191cb611f09631f93f7d70e74b94a46f6ce426d8a3ca33e9b7ffdc90485614c0