[INFO] fetching crate rust2vec 0.5.2... [INFO] testing rust2vec-0.5.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate rust2vec 0.5.2 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate rust2vec 0.5.2 [INFO] finished tweaking crates.io crate rust2vec 0.5.2 [INFO] tweaked toml for crates.io crate rust2vec 0.5.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust2vec 0.5.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 72 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.8.2 (available: v0.14.0) [INFO] [stderr] Adding ndarray v0.12.1 (available: v0.16.1) [INFO] [stderr] Adding ordered-float v1.1.1 (available: v5.0.0) [INFO] [stderr] Adding rand v0.6.5 (available: v0.9.1) [INFO] [stderr] Adding rand_xorshift v0.1.1 (available: v0.4.0) [INFO] [stderr] Adding reductive v0.2.0 (available: v0.9.0) [INFO] [stderr] Adding toml v0.4.10 (available: v0.8.23) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded reductive v0.2.0 [INFO] [stderr] Downloaded ndarray-parallel v0.9.1 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fbee220952390d5e5408b22475c0aed8789ade853962b737929a7476c0e99e32 [INFO] running `Command { std: "docker" "start" "-a" "fbee220952390d5e5408b22475c0aed8789ade853962b737929a7476c0e99e32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fbee220952390d5e5408b22475c0aed8789ade853962b737929a7476c0e99e32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbee220952390d5e5408b22475c0aed8789ade853962b737929a7476c0e99e32", kill_on_drop: false }` [INFO] [stdout] fbee220952390d5e5408b22475c0aed8789ade853962b737929a7476c0e99e32 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f457346fbfd096d6069740d650230e5c34e627e575c855e4605af462a8f033f1 [INFO] running `Command { std: "docker" "start" "-a" "f457346fbfd096d6069740d650230e5c34e627e575c855e4605af462a8f033f1", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling ndarray v0.12.1 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling rustc-demangle v0.1.25 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling ndarray-parallel v0.9.1 [INFO] [stderr] Compiling reductive v0.2.0 [INFO] [stderr] Compiling backtrace v0.3.75 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling rust2vec v0.5.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/prelude.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | impl Analogy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | impl AnalogyBy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | impl Similarity for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | impl SimilarityBy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:202:34 [INFO] [stdout] | [INFO] [stdout] 202 | impl SimilarityPrivate for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | impl ReadText for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | impl ReadTextDims for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | ) -> Result, Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(Embeddings::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:197:32 [INFO] [stdout] | [INFO] [stdout] 197 | impl WriteText for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:229:36 [INFO] [stdout] | [INFO] [stdout] 229 | impl WriteTextDims for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 49 | impl ReadWord2Vec for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:121:36 [INFO] [stdout] | [INFO] [stdout] 121 | impl WriteWord2Vec for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(Embeddings::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/embeddings.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | storage: &'a Storage, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | storage: &'a dyn Storage, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/word2vec.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | fn read_number(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 | fn read_number(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/word2vec.rs:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | fn read_string(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 | fn read_string(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | let embedding1 = self.embedding(word1)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:117:31 [INFO] [stdout] | [INFO] [stdout] 117 | let embedding2 = self.embedding(word2)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:118:31 [INFO] [stdout] | [INFO] [stdout] 118 | let embedding3 = self.embedding(word3)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:182:26 [INFO] [stdout] | [INFO] [stdout] 182 | let embed = self.embedding(word)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:220:52 [INFO] [stdout] | [INFO] [stdout] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | let word = &self.vocab().words()[idx]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(Embeddings::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:205:35 [INFO] [stdout] | [INFO] [stdout] 205 | for (word, embed) in self.iter() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:236:39 [INFO] [stdout] | [INFO] [stdout] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:236:59 [INFO] [stdout] | [INFO] [stdout] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(Embeddings::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:131:35 [INFO] [stdout] | [INFO] [stdout] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:131:55 [INFO] [stdout] | [INFO] [stdout] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:133:35 [INFO] [stdout] | [INFO] [stdout] 133 | for (word, embed) in self.iter() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/embeddings.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/embeddings.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 108 | pub fn iter(&self) -> Iter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 56 | ) -> Option>; [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 56 | ) -> Option>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 70 | ) -> Option> { [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Option>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 95 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 112 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>; [INFO] [stdout] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | fn similarity(&self, word: &str, limit: usize) -> Option> { [INFO] [stdout] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 145 | fn similarity(&self, word: &str, limit: usize) -> Option>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 163 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 178 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 178 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 197 | ) -> Vec [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 197 | ) -> Vec> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 213 | ) -> Vec [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 213 | ) -> Vec> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn as_view(&self) -> ArrayView { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | pub fn as_view(&self) -> ArrayView<'_, A, D> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | fn embedding(&self, idx: usize) -> CowArray1; [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 577 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:583:18 [INFO] [stdout] | [INFO] [stdout] 583 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 583 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:600:18 [INFO] [stdout] | [INFO] [stdout] 600 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 600 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:610:18 [INFO] [stdout] | [INFO] [stdout] 610 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 610 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:625:18 [INFO] [stdout] | [INFO] [stdout] 625 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 625 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:643:18 [INFO] [stdout] | [INFO] [stdout] 643 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 643 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:661:13 [INFO] [stdout] | [INFO] [stdout] 661 | fn view(&self) -> ArrayView2; [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 661 | fn view(&self) -> ArrayView2<'_, f32>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:665:13 [INFO] [stdout] | [INFO] [stdout] 665 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 665 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:671:13 [INFO] [stdout] | [INFO] [stdout] 671 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 671 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:682:13 [INFO] [stdout] | [INFO] [stdout] 682 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 682 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.78s [INFO] running `Command { std: "docker" "inspect" "f457346fbfd096d6069740d650230e5c34e627e575c855e4605af462a8f033f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f457346fbfd096d6069740d650230e5c34e627e575c855e4605af462a8f033f1", kill_on_drop: false }` [INFO] [stdout] f457346fbfd096d6069740d650230e5c34e627e575c855e4605af462a8f033f1 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5674c66f58a43d0b535f28d54dace8ee5d8c2b949368566243a3174c536650ee [INFO] running `Command { std: "docker" "start" "-a" "5674c66f58a43d0b535f28d54dace8ee5d8c2b949368566243a3174c536650ee", kill_on_drop: false }` [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/prelude.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | impl Analogy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | impl AnalogyBy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | impl Similarity for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | impl SimilarityBy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:202:34 [INFO] [stdout] | [INFO] [stdout] 202 | impl SimilarityPrivate for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | impl ReadText for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | impl ReadTextDims for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | ) -> Result, Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(Embeddings::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:197:32 [INFO] [stdout] | [INFO] [stdout] 197 | impl WriteText for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:229:36 [INFO] [stdout] | [INFO] [stdout] 229 | impl WriteTextDims for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 49 | impl ReadWord2Vec for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:121:36 [INFO] [stdout] | [INFO] [stdout] 121 | impl WriteWord2Vec for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(Embeddings::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/embeddings.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | storage: &'a Storage, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | storage: &'a dyn Storage, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/word2vec.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | fn read_number(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 | fn read_number(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/word2vec.rs:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | fn read_string(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 | fn read_string(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | let embedding1 = self.embedding(word1)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:117:31 [INFO] [stdout] | [INFO] [stdout] 117 | let embedding2 = self.embedding(word2)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:118:31 [INFO] [stdout] | [INFO] [stdout] 118 | let embedding3 = self.embedding(word3)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:182:26 [INFO] [stdout] | [INFO] [stdout] 182 | let embed = self.embedding(word)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:220:52 [INFO] [stdout] | [INFO] [stdout] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | let word = &self.vocab().words()[idx]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(Embeddings::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:205:35 [INFO] [stdout] | [INFO] [stdout] 205 | for (word, embed) in self.iter() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:236:39 [INFO] [stdout] | [INFO] [stdout] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:236:59 [INFO] [stdout] | [INFO] [stdout] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(Embeddings::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:131:35 [INFO] [stdout] | [INFO] [stdout] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:131:55 [INFO] [stdout] | [INFO] [stdout] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:133:35 [INFO] [stdout] | [INFO] [stdout] 133 | for (word, embed) in self.iter() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/embeddings.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/embeddings.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 108 | pub fn iter(&self) -> Iter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 56 | ) -> Option>; [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 56 | ) -> Option>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 70 | ) -> Option> { [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Option>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 95 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 112 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>; [INFO] [stdout] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | fn similarity(&self, word: &str, limit: usize) -> Option> { [INFO] [stdout] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 145 | fn similarity(&self, word: &str, limit: usize) -> Option>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 163 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 178 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 178 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 197 | ) -> Vec [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 197 | ) -> Vec> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 213 | ) -> Vec [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 213 | ) -> Vec> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn as_view(&self) -> ArrayView { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | pub fn as_view(&self) -> ArrayView<'_, A, D> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | fn embedding(&self, idx: usize) -> CowArray1; [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 577 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:583:18 [INFO] [stdout] | [INFO] [stdout] 583 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 583 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:600:18 [INFO] [stdout] | [INFO] [stdout] 600 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 600 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:610:18 [INFO] [stdout] | [INFO] [stdout] 610 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 610 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:625:18 [INFO] [stdout] | [INFO] [stdout] 625 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 625 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:643:18 [INFO] [stdout] | [INFO] [stdout] 643 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 643 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:661:13 [INFO] [stdout] | [INFO] [stdout] 661 | fn view(&self) -> ArrayView2; [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 661 | fn view(&self) -> ArrayView2<'_, f32>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:665:13 [INFO] [stdout] | [INFO] [stdout] 665 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 665 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:671:13 [INFO] [stdout] | [INFO] [stdout] 671 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 671 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:682:13 [INFO] [stdout] | [INFO] [stdout] 682 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 682 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust2vec v0.5.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `embeddings::tests::mmap`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/embeddings.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | / fn mmap() { [INFO] [stdout] 297 | | let check_embeds = test_embeddings(); [INFO] [stdout] 298 | | let mut reader = BufReader::new(File::open("testdata/similarity.fifu").unwrap()); [INFO] [stdout] 299 | | let embeds: Embeddings = [INFO] [stdout] ... | [INFO] [stdout] 302 | | assert_eq!(embeds.storage().view(), check_embeds.storage().view()); [INFO] [stdout] 303 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `embeddings::tests::write_read_simple_metadata_roundtrip`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/embeddings.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 318 | / fn write_read_simple_metadata_roundtrip() { [INFO] [stdout] 319 | | let mut check_embeds = test_embeddings(); [INFO] [stdout] 320 | | check_embeds.set_metadata(Some(test_metadata())); [INFO] [stdout] ... | [INFO] [stdout] 328 | | assert_eq!(embeds.vocab(), check_embeds.vocab()); [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `embeddings::tests::write_read_simple_roundtrip`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/embeddings.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 306 | / fn write_read_simple_roundtrip() { [INFO] [stdout] 307 | | let check_embeds = test_embeddings(); [INFO] [stdout] 308 | | let mut cursor = Cursor::new(Vec::new()); [INFO] [stdout] 309 | | check_embeds.write_embeddings(&mut cursor).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 314 | | assert_eq!(embeds.vocab(), check_embeds.vocab()); [INFO] [stdout] 315 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/prelude.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | pub use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | impl Analogy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | impl AnalogyBy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | impl Similarity for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | impl SimilarityBy for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:202:34 [INFO] [stdout] | [INFO] [stdout] 202 | impl SimilarityPrivate for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:258:28 [INFO] [stdout] | [INFO] [stdout] 258 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:365:26 [INFO] [stdout] | [INFO] [stdout] 365 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, true).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:392:26 [INFO] [stdout] | [INFO] [stdout] 392 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, true).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 410 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, true).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | impl ReadText for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | impl ReadTextDims for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | ) -> Result, Error> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(Embeddings::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:197:32 [INFO] [stdout] | [INFO] [stdout] 197 | impl WriteText for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:229:36 [INFO] [stdout] | [INFO] [stdout] 229 | impl WriteTextDims for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:246:28 [INFO] [stdout] | [INFO] [stdout] 246 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:253:27 [INFO] [stdout] | [INFO] [stdout] 253 | fn read_word2vec() -> Embeddings { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | Embeddings::read_word2vec_binary(&mut reader, false).unwrap() [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:263:31 [INFO] [stdout] | [INFO] [stdout] 263 | let text_embeddings = Embeddings::read_text(&mut reader, false).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:277:31 [INFO] [stdout] | [INFO] [stdout] 277 | let text_embeddings = Embeddings::read_text_dims(&mut reader, false).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:295:26 [INFO] [stdout] | [INFO] [stdout] 295 | let embeddings = Embeddings::read_text(&mut reader, false).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | let embeddings = Embeddings::read_text_dims(&mut reader, false).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:49:29 [INFO] [stdout] | [INFO] [stdout] 49 | impl ReadWord2Vec for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:121:36 [INFO] [stdout] | [INFO] [stdout] 121 | impl WriteWord2Vec for Embeddings [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(Embeddings::new( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/tests.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::embeddings::Embeddings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/tests.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, false).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/tests.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, false).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/embeddings.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | storage: &'a Storage, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | storage: &'a dyn Storage, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/word2vec.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | fn read_number(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 | fn read_number(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/word2vec.rs:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | fn read_string(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 | fn read_string(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:116:31 [INFO] [stdout] | [INFO] [stdout] 116 | let embedding1 = self.embedding(word1)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:117:31 [INFO] [stdout] | [INFO] [stdout] 117 | let embedding2 = self.embedding(word2)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:118:31 [INFO] [stdout] | [INFO] [stdout] 118 | let embedding3 = self.embedding(word3)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:182:26 [INFO] [stdout] | [INFO] [stdout] 182 | let embed = self.embedding(word)?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:220:18 [INFO] [stdout] | [INFO] [stdout] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:220:52 [INFO] [stdout] | [INFO] [stdout] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/similarity.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | let word = &self.vocab().words()[idx]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(Embeddings::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:205:35 [INFO] [stdout] | [INFO] [stdout] 205 | for (word, embed) in self.iter() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:236:39 [INFO] [stdout] | [INFO] [stdout] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:236:59 [INFO] [stdout] | [INFO] [stdout] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:266:36 [INFO] [stdout] | [INFO] [stdout] 266 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:266:64 [INFO] [stdout] | [INFO] [stdout] 266 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | text_embeddings.storage().view(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | embeddings.storage().view() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:280:36 [INFO] [stdout] | [INFO] [stdout] 280 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:280:64 [INFO] [stdout] | [INFO] [stdout] 280 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:282:29 [INFO] [stdout] | [INFO] [stdout] 282 | text_embeddings.storage().view(), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/text.rs:283:24 [INFO] [stdout] | [INFO] [stdout] 283 | embeddings.storage().view() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(Embeddings::new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:131:35 [INFO] [stdout] | [INFO] [stdout] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:131:55 [INFO] [stdout] | [INFO] [stdout] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/word2vec.rs:133:35 [INFO] [stdout] | [INFO] [stdout] 133 | for (word, embed) in self.iter() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/tests.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(41, embeddings.vocab().len()); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/tests.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(100, embeddings.dims()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/embeddings.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/embeddings.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 108 | pub fn iter(&self) -> Iter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 56 | ) -> Option>; [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 56 | ) -> Option>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 70 | ) -> Option> { [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Option>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 95 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 112 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>; [INFO] [stdout] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | fn similarity(&self, word: &str, limit: usize) -> Option> { [INFO] [stdout] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 145 | fn similarity(&self, word: &str, limit: usize) -> Option>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 163 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 178 | ) -> Option> [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 178 | ) -> Option>> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 197 | ) -> Vec [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 197 | ) -> Vec> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/similarity.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 213 | ) -> Vec [INFO] [stdout] | -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 213 | ) -> Vec> [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn as_view(&self) -> ArrayView { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 32 | pub fn as_view(&self) -> ArrayView<'_, A, D> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | fn embedding(&self, idx: usize) -> CowArray1; [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 577 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:583:18 [INFO] [stdout] | [INFO] [stdout] 583 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 583 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:600:18 [INFO] [stdout] | [INFO] [stdout] 600 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 600 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:610:18 [INFO] [stdout] | [INFO] [stdout] 610 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 610 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:625:18 [INFO] [stdout] | [INFO] [stdout] 625 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 625 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:643:18 [INFO] [stdout] | [INFO] [stdout] 643 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stdout] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 643 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:661:13 [INFO] [stdout] | [INFO] [stdout] 661 | fn view(&self) -> ArrayView2; [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 661 | fn view(&self) -> ArrayView2<'_, f32>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:665:13 [INFO] [stdout] | [INFO] [stdout] 665 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 665 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:671:13 [INFO] [stdout] | [INFO] [stdout] 671 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 671 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/storage.rs:682:13 [INFO] [stdout] | [INFO] [stdout] 682 | fn view(&self) -> ArrayView2 { [INFO] [stdout] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 682 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.44s [INFO] running `Command { std: "docker" "inspect" "5674c66f58a43d0b535f28d54dace8ee5d8c2b949368566243a3174c536650ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5674c66f58a43d0b535f28d54dace8ee5d8c2b949368566243a3174c536650ee", kill_on_drop: false }` [INFO] [stdout] 5674c66f58a43d0b535f28d54dace8ee5d8c2b949368566243a3174c536650ee [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8b456b0f6cb7491d12fcc9454aed3c7882068d2874b7daf01d1dbc1274569b2c [INFO] running `Command { std: "docker" "start" "-a" "8b456b0f6cb7491d12fcc9454aed3c7882068d2874b7daf01d1dbc1274569b2c", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/prelude.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | pub use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:59:24 [INFO] [stderr] | [INFO] [stderr] 59 | impl Analogy for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:100:26 [INFO] [stderr] | [INFO] [stderr] 100 | impl AnalogyBy for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:140:27 [INFO] [stderr] | [INFO] [stderr] 140 | impl Similarity for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:168:29 [INFO] [stderr] | [INFO] [stderr] 168 | impl SimilarityBy for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:202:34 [INFO] [stderr] | [INFO] [stderr] 202 | impl SimilarityPrivate for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:39:24 [INFO] [stderr] | [INFO] [stderr] 39 | use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:60:25 [INFO] [stderr] | [INFO] [stderr] 60 | impl ReadText for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:90:29 [INFO] [stderr] | [INFO] [stderr] 90 | impl ReadTextDims for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | ) -> Result, Error> [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:175:8 [INFO] [stderr] | [INFO] [stderr] 175 | Ok(Embeddings::new( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:197:32 [INFO] [stderr] | [INFO] [stderr] 197 | impl WriteText for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:229:36 [INFO] [stderr] | [INFO] [stderr] 229 | impl WriteTextDims for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:31:24 [INFO] [stderr] | [INFO] [stderr] 31 | use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:49:29 [INFO] [stderr] | [INFO] [stderr] 49 | impl ReadWord2Vec for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:121:36 [INFO] [stderr] | [INFO] [stderr] 121 | impl WriteWord2Vec for Embeddings [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:82:12 [INFO] [stderr] | [INFO] [stderr] 82 | Ok(Embeddings::new( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/embeddings.rs:250:18 [INFO] [stderr] | [INFO] [stderr] 250 | storage: &'a Storage, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 250 | storage: &'a dyn Storage, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/word2vec.rs:90:29 [INFO] [stderr] | [INFO] [stderr] 90 | fn read_number(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 90 | fn read_number(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/word2vec.rs:95:29 [INFO] [stderr] | [INFO] [stderr] 95 | fn read_string(reader: &mut BufRead, delim: u8) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 95 | fn read_string(reader: &mut dyn BufRead, delim: u8) -> Result { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:116:31 [INFO] [stderr] | [INFO] [stderr] 116 | let embedding1 = self.embedding(word1)?; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:117:31 [INFO] [stderr] | [INFO] [stderr] 117 | let embedding2 = self.embedding(word2)?; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:118:31 [INFO] [stderr] | [INFO] [stderr] 118 | let embedding3 = self.embedding(word3)?; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:182:26 [INFO] [stderr] | [INFO] [stderr] 182 | let embed = self.embedding(word)?; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:220:18 [INFO] [stderr] | [INFO] [stderr] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:220:52 [INFO] [stderr] | [INFO] [stderr] 220 | self.storage().view().slice(s![0..self.vocab().len(), ..]), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:226:30 [INFO] [stderr] | [INFO] [stderr] 226 | let word = &self.vocab().words()[idx]; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:175:20 [INFO] [stderr] | [INFO] [stderr] 175 | Ok(Embeddings::new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:205:35 [INFO] [stderr] | [INFO] [stderr] 205 | for (word, embed) in self.iter() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:236:39 [INFO] [stderr] | [INFO] [stderr] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:236:59 [INFO] [stderr] | [INFO] [stderr] 236 | writeln!(write, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:82:24 [INFO] [stderr] | [INFO] [stderr] 82 | Ok(Embeddings::new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:131:35 [INFO] [stderr] | [INFO] [stderr] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:131:55 [INFO] [stderr] | [INFO] [stderr] 131 | writeln!(w, "{} {}", self.vocab().len(), self.dims())?; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::iter`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/word2vec.rs:133:35 [INFO] [stderr] | [INFO] [stderr] 133 | for (word, embed) in self.iter() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/embeddings.rs:91:22 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 91 | pub fn embedding(&self, word: &str) -> Option> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/embeddings.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | pub fn iter(&self) -> Iter { [INFO] [stderr] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 108 | pub fn iter(&self) -> Iter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 56 | ) -> Option>; [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 56 | ) -> Option>>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:65:9 [INFO] [stderr] | [INFO] [stderr] 65 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 70 | ) -> Option> { [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 70 | ) -> Option>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:89:9 [INFO] [stderr] | [INFO] [stderr] 89 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 95 | ) -> Option> [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 95 | ) -> Option>> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:106:9 [INFO] [stderr] | [INFO] [stderr] 106 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 112 | ) -> Option> [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 112 | ) -> Option>> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:137:19 [INFO] [stderr] | [INFO] [stderr] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>; [INFO] [stderr] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 137 | fn similarity(&self, word: &str, limit: usize) -> Option>>; [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:145:19 [INFO] [stderr] | [INFO] [stderr] 145 | fn similarity(&self, word: &str, limit: usize) -> Option> { [INFO] [stderr] | ^^^^^ this lifetime flows to the output -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 145 | fn similarity(&self, word: &str, limit: usize) -> Option>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:159:9 [INFO] [stderr] | [INFO] [stderr] 159 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 163 | ) -> Option> [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 163 | ) -> Option>> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 178 | ) -> Option> [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 178 | ) -> Option>> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:192:9 [INFO] [stderr] | [INFO] [stderr] 192 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 197 | ) -> Vec [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 197 | ) -> Vec> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/similarity.rs:208:9 [INFO] [stderr] | [INFO] [stderr] 208 | &self, [INFO] [stderr] | ^^^^^ this lifetime flows to the output [INFO] [stderr] ... [INFO] [stderr] 213 | ) -> Vec [INFO] [stderr] | -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 213 | ) -> Vec> [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:32:20 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn as_view(&self) -> ArrayView { [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 32 | pub fn as_view(&self) -> ArrayView<'_, A, D> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:577:18 [INFO] [stderr] | [INFO] [stderr] 577 | fn embedding(&self, idx: usize) -> CowArray1; [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 577 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:583:18 [INFO] [stderr] | [INFO] [stderr] 583 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 583 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:600:18 [INFO] [stderr] | [INFO] [stderr] 600 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 600 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:610:18 [INFO] [stderr] | [INFO] [stderr] 610 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 610 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:625:18 [INFO] [stderr] | [INFO] [stderr] 625 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 625 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:643:18 [INFO] [stderr] | [INFO] [stderr] 643 | fn embedding(&self, idx: usize) -> CowArray1 { [INFO] [stderr] | ^^^^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 643 | fn embedding(&self, idx: usize) -> CowArray1<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:661:13 [INFO] [stderr] | [INFO] [stderr] 661 | fn view(&self) -> ArrayView2; [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 661 | fn view(&self) -> ArrayView2<'_, f32>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:665:13 [INFO] [stderr] | [INFO] [stderr] 665 | fn view(&self) -> ArrayView2 { [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 665 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:671:13 [INFO] [stderr] | [INFO] [stderr] 671 | fn view(&self) -> ArrayView2 { [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 671 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/storage.rs:682:13 [INFO] [stderr] | [INFO] [stderr] 682 | fn view(&self) -> ArrayView2 { [INFO] [stderr] | ^^^^^ --------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 682 | fn view(&self) -> ArrayView2<'_, f32> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `embeddings::tests::mmap`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/embeddings.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 296 | / fn mmap() { [INFO] [stderr] 297 | | let check_embeds = test_embeddings(); [INFO] [stderr] 298 | | let mut reader = BufReader::new(File::open("testdata/similarity.fifu").unwrap()); [INFO] [stderr] 299 | | let embeds: Embeddings = [INFO] [stderr] ... | [INFO] [stderr] 302 | | assert_eq!(embeds.storage().view(), check_embeds.storage().view()); [INFO] [stderr] 303 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `embeddings::tests::write_read_simple_metadata_roundtrip`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/embeddings.rs:318:5 [INFO] [stderr] | [INFO] [stderr] 318 | / fn write_read_simple_metadata_roundtrip() { [INFO] [stderr] 319 | | let mut check_embeds = test_embeddings(); [INFO] [stderr] 320 | | check_embeds.set_metadata(Some(test_metadata())); [INFO] [stderr] ... | [INFO] [stderr] 328 | | assert_eq!(embeds.vocab(), check_embeds.vocab()); [INFO] [stderr] 329 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `embeddings::tests::write_read_simple_roundtrip`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/embeddings.rs:306:5 [INFO] [stderr] | [INFO] [stderr] 306 | / fn write_read_simple_roundtrip() { [INFO] [stderr] 307 | | let check_embeds = test_embeddings(); [INFO] [stderr] 308 | | let mut cursor = Cursor::new(Vec::new()); [INFO] [stderr] 309 | | check_embeds.write_embeddings(&mut cursor).unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 314 | | assert_eq!(embeds.vocab(), check_embeds.vocab()); [INFO] [stderr] 315 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/prelude.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | pub use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:258:28 [INFO] [stderr] | [INFO] [stderr] 258 | use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:365:26 [INFO] [stderr] | [INFO] [stderr] 365 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, true).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:392:26 [INFO] [stderr] | [INFO] [stderr] 392 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, true).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/similarity.rs:410:26 [INFO] [stderr] | [INFO] [stderr] 410 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, true).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:246:28 [INFO] [stderr] | [INFO] [stderr] 246 | use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:253:27 [INFO] [stderr] | [INFO] [stderr] 253 | fn read_word2vec() -> Embeddings { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:256:9 [INFO] [stderr] | [INFO] [stderr] 256 | Embeddings::read_word2vec_binary(&mut reader, false).unwrap() [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:263:31 [INFO] [stderr] | [INFO] [stderr] 263 | let text_embeddings = Embeddings::read_text(&mut reader, false).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:277:31 [INFO] [stderr] | [INFO] [stderr] 277 | let text_embeddings = Embeddings::read_text_dims(&mut reader, false).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:295:26 [INFO] [stderr] | [INFO] [stderr] 295 | let embeddings = Embeddings::read_text(&mut reader, false).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:312:26 [INFO] [stderr] | [INFO] [stderr] 312 | let embeddings = Embeddings::read_text_dims(&mut reader, false).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/tests.rs:4:24 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::embeddings::Embeddings; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/tests.rs:12:22 [INFO] [stderr] | [INFO] [stderr] 12 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, false).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/tests.rs:25:22 [INFO] [stderr] | [INFO] [stderr] 25 | let embeddings = Embeddings::read_word2vec_binary(&mut reader, false).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:266:36 [INFO] [stderr] | [INFO] [stderr] 266 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:266:64 [INFO] [stderr] | [INFO] [stderr] 266 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:268:29 [INFO] [stderr] | [INFO] [stderr] 268 | text_embeddings.storage().view(), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:269:24 [INFO] [stderr] | [INFO] [stderr] 269 | embeddings.storage().view() [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:280:36 [INFO] [stderr] | [INFO] [stderr] 280 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:280:64 [INFO] [stderr] | [INFO] [stderr] 280 | assert_eq!(text_embeddings.vocab().words(), embeddings.vocab().words()); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:282:29 [INFO] [stderr] | [INFO] [stderr] 282 | text_embeddings.storage().view(), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::storage`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/text.rs:283:24 [INFO] [stderr] | [INFO] [stderr] 283 | embeddings.storage().view() [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::vocab`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/tests.rs:13:31 [INFO] [stderr] | [INFO] [stderr] 13 | assert_eq!(41, embeddings.vocab().len()); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stderr] --> src/tests.rs:14:32 [INFO] [stderr] | [INFO] [stderr] 14 | assert_eq!(100, embeddings.dims()); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust2vec` (lib) generated 59 warnings (run `cargo fix --lib -p rust2vec` to apply 26 suggestions) [INFO] [stderr] warning: `rust2vec` (lib test) generated 86 warnings (58 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rust2vec-356c056625f0e92e) [INFO] [stdout] [INFO] [stdout] running 31 tests [INFO] [stdout] test io::tests::header_write_read_roundtrip ... ok [INFO] [stdout] test metadata::tests::metadata_correct_chunk_size ... ok [INFO] [stdout] test metadata::tests::metadata_write_read_roundtrip ... ok [INFO] [stdout] test subword::tests::empty_ngram_test ... ok [INFO] [stdout] test subword::tests::ngrams_23_test ... ok [INFO] [stdout] test subword::tests::ngrams_test ... ok [INFO] [stdout] test similarity::tests::test_similarity_limit ... ok [INFO] [stdout] test similarity::tests::test_analogy ... ok [INFO] [stdout] test similarity::tests::test_similarity ... ok [INFO] [stdout] test subword::tests::subword_indices_2m_test ... ok [INFO] [stdout] test storage::tests::ndarray_write_read_roundtrip ... ok [INFO] [stdout] test subword::tests::subword_indices_4_test ... ok [INFO] [stdout] test storage::tests::ndarray_correct_chunk_size ... ok [INFO] [stdout] test embeddings::tests::mmap ... ok [INFO] [stdout] test embeddings::tests::write_read_simple_roundtrip ... ok [INFO] [stdout] test embeddings::tests::write_read_simple_metadata_roundtrip ... ok [INFO] [stdout] test tests::test_read_word2vec_binary ... ok [INFO] [stdout] test vocab::tests::simple_vocab_correct_chunk_size ... ok [INFO] [stdout] test vocab::tests::simple_vocab_write_read_roundtrip ... ok [INFO] [stdout] test vocab::tests::subword_vocab_correct_chunk_size ... ok [INFO] [stdout] test vocab::tests::subword_vocab_write_read_roundtrip ... ok [INFO] [stdout] test tests::test_word2vec_binary_roundtrip ... ok [INFO] [stdout] test text::tests::read_text_dims ... ok [INFO] [stdout] test text::tests::read_text ... ok [INFO] [stdout] test text::tests::test_word2vec_text_dims_roundtrip ... ok [INFO] [stdout] test text::tests::test_word2vec_text_roundtrip ... ok [INFO] [stdout] test storage::tests::quantized_array_norms_correct_chunk_size ... ok [INFO] [stdout] test storage::tests::quantized_array_correct_chunk_size ... ok [INFO] [stdout] test storage::tests::quantized_array_read_write_roundtrip ... ok [INFO] [stdout] test subword::tests::incorrect_max_n_test - should panic ... ok [INFO] [stdout] test subword::tests::incorrect_min_n_test - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8b456b0f6cb7491d12fcc9454aed3c7882068d2874b7daf01d1dbc1274569b2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b456b0f6cb7491d12fcc9454aed3c7882068d2874b7daf01d1dbc1274569b2c", kill_on_drop: false }` [INFO] [stdout] 8b456b0f6cb7491d12fcc9454aed3c7882068d2874b7daf01d1dbc1274569b2c