[INFO] cloning repository https://github.com/Bogda165/AzureApi-Embeddings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Bogda165/AzureApi-Embeddings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBogda165%2FAzureApi-Embeddings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBogda165%2FAzureApi-Embeddings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 64071a7a4b9373300ac8b87416b93719c46baa0f [INFO] building Bogda165/AzureApi-Embeddings against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBogda165%2FAzureApi-Embeddings" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Bogda165/AzureApi-Embeddings [INFO] finished tweaking git repo https://github.com/Bogda165/AzureApi-Embeddings [INFO] tweaked toml for git repo https://github.com/Bogda165/AzureApi-Embeddings written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Bogda165/AzureApi-Embeddings on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Bogda165/AzureApi-Embeddings already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded to_method v1.1.0 [INFO] [stderr] Downloaded async-channel v2.2.1 [INFO] [stderr] Downloaded itertools v0.7.11 [INFO] [stderr] Downloaded matrixmultiply v0.1.15 [INFO] [stderr] Downloaded event-listener-strategy v0.5.1 [INFO] [stderr] Downloaded toml v0.4.10 [INFO] [stderr] Downloaded event-listener v5.3.0 [INFO] [stderr] Downloaded reqwest v0.12.3 [INFO] [stderr] Downloaded ndarray v0.12.1 [INFO] [stderr] Downloaded interprocess v1.2.1 [INFO] [stderr] Downloaded async-task v4.7.0 [INFO] [stderr] Downloaded blocking v1.5.1 [INFO] [stderr] Downloaded piper v0.2.1 [INFO] [stderr] Downloaded spinning v0.1.0 [INFO] [stderr] Downloaded intmap v0.7.1 [INFO] [stderr] Downloaded ndarray-parallel v0.9.1 [INFO] [stderr] Downloaded reductive v0.2.0 [INFO] [stderr] Downloaded rust2vec v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 965bb179932176d8578a64a51372219c8116cc54bf4ef4acd0182e81c14a2d1c [INFO] running `Command { std: "docker" "start" "-a" "965bb179932176d8578a64a51372219c8116cc54bf4ef4acd0182e81c14a2d1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "965bb179932176d8578a64a51372219c8116cc54bf4ef4acd0182e81c14a2d1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "965bb179932176d8578a64a51372219c8116cc54bf4ef4acd0182e81c14a2d1c", kill_on_drop: false }` [INFO] [stdout] 965bb179932176d8578a64a51372219c8116cc54bf4ef4acd0182e81c14a2d1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 701e8febf0edd1e4ddc91634dc03db398ef1b7807b66feb89f34f48f3e23bcca [INFO] running `Command { std: "docker" "start" "-a" "701e8febf0edd1e4ddc91634dc03db398ef1b7807b66feb89f34f48f3e23bcca", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling concurrent-queue v2.4.0 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Compiling ndarray v0.12.1 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling event-listener v5.3.0 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling rustls-pki-types v1.4.1 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling interprocess v1.2.1 [INFO] [stderr] Compiling piper v0.2.1 [INFO] [stderr] Compiling async-channel v2.2.1 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling num-complex v0.4.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling async-task v4.7.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling blocking v1.5.1 [INFO] [stderr] Compiling spinning v0.1.0 [INFO] [stderr] Compiling intmap v0.7.1 [INFO] [stderr] Compiling to_method v1.1.0 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling rand v0.8.5 [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 tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling rust2vec v0.5.2 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling Embeddings v0.1.0 (/opt/rustwide/workdir/src/Embeddings) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/Embeddings/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Array1` [INFO] [stdout] --> src/Embeddings/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::Array1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `rust2vec::embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | 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 `rust2vec::embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | Embeddings: Embeddings::new(None, SimpleVocab::new(vec!["".to_owned()]), NdArray(Default::default()), ) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `rust2vec::embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | self.Embeddings = Embeddings::read_text(&mut reader, true).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rust2vec::embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | Embeddings: Embeddings::new(None, SimpleVocab::new(vec!["".to_owned()]), NdArray(Default::default()), ) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rust2vec::embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | let mut vector = vec![0.0; self.Embeddings.dims()]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rust2vec::embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:53:54 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(embedding) = self.Embeddings.embedding(word.as_str()) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rust2vec::embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:83:56 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum_vector = vec![0.0; self.Embeddings.dims()]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caption` [INFO] [stdout] --> src/Embeddings/src/lib.rs:109:32 [INFO] [stdout] | [INFO] [stdout] 109 | RequestType::Full {caption, labels } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `caption: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Embeddings` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `embeddings` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Embeddings` should have a snake case name [INFO] [stdout] --> src/Embeddings/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Embeddings: Embeddings, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `embeddings` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling h2 v0.4.4 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling hyper v1.2.0 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.3 [INFO] [stderr] Compiling AzureApi v0.1.0 (/opt/rustwide/workdir/src/AzureApi) [INFO] [stdout] warning: field `score` is never read [INFO] [stdout] --> src/AzureApi/src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct MyLabel { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 53 | pub name: String, [INFO] [stdout] 54 | score: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyLabel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AzureApi` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `azure_api` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling AzureApi0_2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ErrorKind` and `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `from_str` and `json` [INFO] [stdout] --> src/main.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::{from_str, json, to_string, Value}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 135 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 88 | Command::Add(path) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 99 | Command::FromSentence(sentence) => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 107 | Command::AddToDb(path) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 135 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 115 | ... let mut response_struct: Result = MyResponse::try_from(response_copy.clone()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut task_list = task_list.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | let mut task_list_clone = task_list.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "701e8febf0edd1e4ddc91634dc03db398ef1b7807b66feb89f34f48f3e23bcca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "701e8febf0edd1e4ddc91634dc03db398ef1b7807b66feb89f34f48f3e23bcca", kill_on_drop: false }` [INFO] [stdout] 701e8febf0edd1e4ddc91634dc03db398ef1b7807b66feb89f34f48f3e23bcca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 844ea01ccd04efd51d84ed6deeffe8ecf24c062a300823d51d2c931f24fb50a5 [INFO] running `Command { std: "docker" "start" "-a" "844ea01ccd04efd51d84ed6deeffe8ecf24c062a300823d51d2c931f24fb50a5", kill_on_drop: false }` [INFO] [stderr] Compiling AzureApi0_2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/Embeddings/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Array1` [INFO] [stdout] --> src/Embeddings/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ndarray::Array1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `rust2vec::embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | 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 `rust2vec::embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | Embeddings: Embeddings::new(None, SimpleVocab::new(vec!["".to_owned()]), NdArray(Default::default()), ) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `rust2vec::embeddings::Embeddings`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | self.Embeddings = Embeddings::read_text(&mut reader, true).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rust2vec::embeddings::Embeddings::::new`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | Embeddings: Embeddings::new(None, SimpleVocab::new(vec!["".to_owned()]), NdArray(Default::default()), ) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rust2vec::embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | let mut vector = vec![0.0; self.Embeddings.dims()]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rust2vec::embeddings::Embeddings::::embedding`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:53:54 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(embedding) = self.Embeddings.embedding(word.as_str()) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rust2vec::embeddings::Embeddings::::dims`: rust2vec is superseded by the finalfusion crate [INFO] [stdout] --> src/Embeddings/src/lib.rs:83:56 [INFO] [stdout] | [INFO] [stdout] 83 | let mut sum_vector = vec![0.0; self.Embeddings.dims()]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caption` [INFO] [stdout] --> src/Embeddings/src/lib.rs:109:32 [INFO] [stdout] | [INFO] [stdout] 109 | RequestType::Full {caption, labels } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `caption: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Embeddings` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `embeddings` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Embeddings` should have a snake case name [INFO] [stdout] --> src/Embeddings/src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Embeddings: Embeddings, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `embeddings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `score` is never read [INFO] [stdout] --> src/AzureApi/src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct MyLabel { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 53 | pub name: String, [INFO] [stdout] 54 | score: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyLabel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AzureApi` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `azure_api` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `Read` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `from_str` and `json` [INFO] [stdout] --> src/main.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::{from_str, json, to_string, Value}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{ErrorKind, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 135 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 88 | Command::Add(path) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 99 | Command::FromSentence(sentence) => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 107 | Command::AddToDb(path) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 135 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 115 | ... let mut response_struct: Result = MyResponse::try_from(response_copy.clone()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut task_list = task_list.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | let mut task_list_clone = task_list.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.99s [INFO] running `Command { std: "docker" "inspect" "844ea01ccd04efd51d84ed6deeffe8ecf24c062a300823d51d2c931f24fb50a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "844ea01ccd04efd51d84ed6deeffe8ecf24c062a300823d51d2c931f24fb50a5", kill_on_drop: false }` [INFO] [stdout] 844ea01ccd04efd51d84ed6deeffe8ecf24c062a300823d51d2c931f24fb50a5